Skip to content
socialtap 1.621.43

socialtap 1.621.43

Pypi • November 29, 2026

SocialTap is the social media scraper API for developers and AI agents. Send a public link, a handle or a and get live data back in one schema. Failed requests are free.

The Python SDK for the SocialTap API: a method for every endpoint, typed models and errors, retries and pagination. Generated from the SocialTap catalog (version 1.621.43). Docs: . Source: .

Zero dependencies (the standard library's urllib); Python 3.10+; fully typed ( py.typed , checked with mypy --strict ). Models are frozen dataclasses with the API's field names; None means unknown, lists are never None .

Nothing is invented: a required member that is missing or of the wrong type raises APIDecodeError , as does a 2xx that is not the API's envelope; with fields= the data is a dict of the selected members (typed overloads). Every result keeps raw (the decoded body), members this version doesn't model included. A retry-after longer than MAX_RETRY_AFTER_S raises RetryAfterExceededError instead of retrying early. Event.data is the model of its type; job items are TypedDicts per endpoint.

Async: AsyncSocialTap has the same methods as coroutines ( async for over iterate ). It runs the stdlib transport in a worker thread ( asyncio.to_thread ), which is plenty for API calls that take a second; pass transport= (anything with send(Request) -> Response ) to bring another HTTP stack.

The client reads your API key from SOCIALTAP_API_KEY , or takes it as an option. Requests send it in the x-api-key header. Get a key at : every account starts with 100 free credits.

TikTok Profile API ( tiktok.profile ). Exact follower and like counts, bio and country.

data is a Profile (example response, truncated):

Every result also carries the envelope meta (request ID, source, cache status, fetch time) and credits (charged by this request, and the balance after it when the API reports it). Failed requests and cache hits are free.

Endpoints newer than this package

A version has a method for every endpoint the API had when it was released. For a newer one, update the package, or send the request yourself: the raw request adds your key and retries and raises errors like a method, and returns the status, headers and body (the envelope, data and meta ). Each endpoint's docs page has its path and params.

Every API error is an APIError subclass named after its code, with status , code , retryable , remediation , request_id and credits_charged (0: errors are free). Codes this SDK version doesn't know arrive as a plain APIError with their code ; no response at all is an APIConnectionError ( APITimeoutError for timeouts).

Retryable failures (the codes above, connection errors, timeouts) are retried 2 times by default with exponential backoff and jitter, honoring retry-after . A GET retry sends max_age set to the seconds since the first attempt: if the first response was lost in transit, the retry is served free from the cache. Timeouts are per attempt: 60 s by default, and 300 s for endpoints that may transcribe audio ( .ad_transcript , .transcript , instagram.transcript , kick.transcript , .transcript , .transcript , rumble.transcript , tiktok.transcript , twitch.transcript , x.transcript , youtube.transcript ), because speech-to-text on long media takes minutes, and for create-and-wait's long-polls. Most requests answer in a few seconds. A timeout you set, on the client or on one request, applies to every endpoint, and so does maxRetries .

List endpoints return one page ( data , page.has_more , page.next_cursor ). iterate() returns a Paginator ( for over items, .by_page() for pages; async for on the async client) with two guards, max_pages and max_credits ; afterwards pages_fetched , credits_charged , stop_reason ( "end" , or the guard that stopped it) and end_reason (the API's page.end_reason ) say what happened. Each page is checked against its catalog price before it is fetched, and an empty page with has_more is not the end.

Account, API keys, jobs, webhooks and events

The gateway's own routes (account, usage, credit ledger, API keys, jobs, webhook endpoints, events) are free and have methods too, named from their operation IDs ( . , or . . for a sub-resource). They answer the same envelope ( data , meta , credits ) with their own meta ; cursor-paged list routes have iterate like list endpoints. Every POST sends an idempotency-key header (yours, or a new UUID kept for the call's retries), so it is retried like a GET and a retry never repeats the work; replayed says when the API answered from an earlier request with the same key, and status is 202 when accepted work continues. Each route needs a key with the scope below (a key never gets a scope its creator lacks).

Many requests (or one long list walk) run as a background job at the synchronous prices; failed items are free. The create-and-wait helper creates one, long-polls it until it ends and returns every result; one Idempotency-Key covers the create's retries, so a retry never runs a job twice. Webhook deliveries are signed per Standard Webhooks: verify the raw body with your endpoint's secret before trusting it, and deduplicate on the event ID.

The SDK hands the SocialTap MCP server's tools to a model: each tool's name, description (its price and rules included) and input JSON Schema, and a call that sends one stateless MCP request with your key. A tool behaves exactly as it does for an MCP client: concise results ( detail: "full" for every field), next_cursor to continue, and failures returned as the tool's output ( error with retryable and remediation ) so the model can act on them. Transport failures raise as for any request, and tools that may be repeated are retried.

The version is derived from the API contract: major = API version, minor = the contract's revision (it grows with every additive change, a new endpoint included), patch = the SDK generator's revision. Questions and bug reports: support@socialtap.dev .

Release files for socialtap 1.621.43

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .

Source distribution (sdist)

Built distribution (wheel)

Total release size: 1.3 MB

Release files / socialtap-1.621.43.tar.gz

Release files / socialtap-1.621.43-py3-none-any.whl

Security for socialtap 1.621.43

Provenance describes where a file came from. On PyPI, provenance is shared via attestations , which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

1.621.43 This release

Nov 29, 2026 2 release files No provenance

Nov 29, 2026 2 release files No provenance

Nov 29, 2026 2 release files No provenance

Nov 29, 2026 2 release files No provenance

Nov 28, 2026 2 release files No provenance

Nov 25, 2026 2 release files No provenance

Nov 25, 2026 2 release files No provenance

Nov 24, 2026 2 release files No provenance

Nov 23, 2026 2 release files No provenance

Nov 23, 2026 2 release files No provenance

Nov 23, 2026 2 release files No provenance

Extracted Entities

Domains (1)