1 OpenAPI Spec → 12 Languages
ScrapeBadger SDKs
Official client libraries for every major language, generated straight from the ScrapeBadger OpenAPI spec — so every SDK covers the full API and never drifts out of sync. Python and Node.js additionally ship as handwritten, fully backward-compatible typed clients.
One Spec, 12 Languages
Generated from the ScrapeBadger OpenAPI spec — always in sync with the API
Type Safe
Full type definitions for IDE autocompletion in every language
Auto Pagination
Iterate through large datasets seamlessly
Python & Node: Handwritten
Typed clients with full backward compatibility on top of the generated core
Python SDK
Python 3.10+ · Handwritten typed client
Install
pip install scrapebadgeror: uv add scrapebadger
Features
- Async-first design with httpx & asyncio
- Full type hints with Pydantic models
- Automatic pagination with async iterators
- Smart rate limit handling & exponential backoff retries
- Every ScrapeBadger product: Twitter, Google, Amazon, eBay, Vinted, Reddit, TikTok, YouTube, web scraping & more
- Real-time WebSocket streaming with auto-reconnect
- Webhook signature verification
Quick Start
import asyncio
from scrapebadger import ScrapeBadger
async def main():
async with ScrapeBadger(api_key="your-api-key") as client:
user = await client.twitter.users.get_by_username("elonmusk")
print(f"{user.name} has {user.followers_count:,} followers")
async for tweet in client.twitter.tweets.search_all(
"python programming", max_items=100
):
print(f"@{tweet.username}: {tweet.text[:80]}...")
asyncio.run(main())Full Reference & Source
Every SDK, including the codegen pipeline, is open source under the ScrapeBadger GitHub organization.
Ready to Get Started?
Sign up for free and get 1,000 credits to start building.