Runs up to max_requests (1000) endpoint requests in the background: each item is exactly the request its endpoint answers synchronously, at the same price (failed items are free), with the same caches. max_pages walks a list endpoint server-side with its cursor. Credits work as for synchronous requests: each page reserves its endpoint's minimum when it runs (against the balance and the calling key's spend limit) and is topped up to its price, so a job starts whenever its first page could run; max_credits (default: the sum of every item's maximum price) caps what the job may spend. With wait, the answer is 200 with the first page of results when the job ends in time (a synchronous batch), else 202 with the job; poll GET /v1/jobs/{id} (free) or subscribe to job.completed.
Auth: an API key with the jobs scope.
Send an idempotency-key header to retry safely: the same key and body within 1 day never repeat the work.
Example
curl -X POST 'https://socialtap.dev/v1/jobs' \
-H "x-api-key: $SOCIALTAP_API_KEY" \
-H "content-type: application/json" \
-d '{
"requests": [
{
"custom_id": "string",
"endpoint": "amazon.deal_products",
"params": {}
}
]
}'On any POST: your unique key for the request (1–255 printable ASCII characters; a UUID is ideal), kept 24 hours. Retrying with the same key and body never repeats the work: the answer is the first request's result, in its current state.
Seconds to wait for the job to end before answering. If it ends in time the answer is 200 with the first page of results (a synchronous batch); otherwise 202 with the job as it is.
Body
JSON. Fields marked nullable may be null; optional ones may be left out.
max_age?integernullableAccept cached results up to this many seconds old for every item (free cache hits), like the endpoints' max_age.
max_credits?integernullableMost the job may spend: a cap, never held up front (each page reserves as a synchronous request does). Default: the sum of every item's maximum price (times its max_pages). Items that would go over it are canceled.
metadata?objectUp to 16 string pairs of your own, returned with the job and in its events.
requestsobject[]The requests to run, 1 to 1000; custom_id must be unique within the job.
ShowHide 4 child fields
custom_idstringYour ID for the item (letters, digits, _ and -), echoed on its results.
endpointstringThe endpoint ID: Endpoint ID on its reference page, x-socialtap-endpoint in OpenAPI (youtube.transcript; not its operationId or path).
One ofamazon.deal_productsamazon.offersamazon.productamazon.reviewsamazon.search_productsamazon.selleramazon.shopamazon.shop_listsamazon.shop_postsamazon.top_productsapplemusic.albumapplemusic.artistapplemusic.search_albumsapplemusic.search_artistsapplemusic.search_playlistsapplemusic.search_tracksapplemusic.top_albumsapplemusic.top_playlistsapplemusic.top_tracksapplemusic.trackbluesky.commentsbluesky.postbluesky.postsbluesky.profilebluesky.search_postsfacebook.adfacebook.ad_transcriptfacebook.adsfacebook.commentsfacebook.engagementfacebook.eventfacebook.eventsfacebook.groupfacebook.group_postsfacebook.listingfacebook.photosfacebook.place_eventsfacebook.postfacebook.postsfacebook.profilefacebook.reelsfacebook.repliesfacebook.search_adsfacebook.search_advertisersfacebook.search_eventsfacebook.search_groupsfacebook.search_listingsfacebook.search_placesfacebook.search_postsfacebook.search_profilesfacebook.transcriptgoogle.adgoogle.adsgoogle.advertisergoogle.search_adsgoogle.search_advertisersgoogle.search_suggestionsinstagram.commentinstagram.commentsinstagram.embedinstagram.engagementinstagram.hashtaginstagram.hashtag_postsinstagram.highlightsinstagram.placeinstagram.place_postsinstagram.playlist_storiesinstagram.postinstagram.postsinstagram.profileinstagram.reelsinstagram.search_hashtagsinstagram.search_placesinstagram.search_postsinstagram.search_profilesinstagram.search_soundsinstagram.search_suggestionsinstagram.similar_profilesinstagram.soundinstagram.sound_postsinstagram.storyinstagram.topicinstagram.transcriptinstagram.trending_postsinstagram.usernamekick.postkick.transcriptkomi.pagekwai.postkwai.postskwai.profilelinkbio.profilelinkedin.adlinkedin.postlinkedin.profilelinkedin.search_adslinkedin.search_postslinkedin.search_profileslinkme.profilelinktree.profilepillar.pagepinterest.boardpinterest.board_pinspinterest.boardspinterest.pinpinterest.pinspinterest.profilepinterest.search_pinspinterest.top_trendspinterest.topicpinterest.web_pagereddit.commentsreddit.engagementreddit.postreddit.postsreddit.profilereddit.profile_commentsreddit.search_commentsreddit.search_postsreddit.search_profilesreddit.search_subredditsreddit.subredditreddit.subreddit_postsreddit.transcriptrumble.commentsrumble.engagementrumble.postrumble.postsrumble.profilerumble.search_postsrumble.transcriptsnapchat.commentssnapchat.profilesnapchat.spotlightsoundcloud.artistsoundcloud.tracksoundcloud.tracksspotify.albumspotify.artistspotify.playlistspotify.playlist_tracksspotify.podcastspotify.podcast_episodesspotify.search_albumsspotify.search_artistsspotify.search_playlistsspotify.search_podcastsspotify.search_tracksspotify.tracktelegram.channeltelegram.channel_poststelegram.posttelegram.search_channelsthreads.commentsthreads.postthreads.poststhreads.profilethreads.search_poststhreads.search_profilestiktok.adtiktok.commenttiktok.commentstiktok.downloadtiktok.effecttiktok.effect_poststiktok.engagementtiktok.followerstiktok.followingtiktok.hashtagtiktok.hashtag_poststiktok.liked_poststiktok.livetiktok.place_poststiktok.playlist_poststiktok.playliststiktok.posttiktok.poststiktok.profiletiktok.repliestiktok.search_adstiktok.search_hashtagstiktok.search_poststiktok.search_profilestiktok.search_soundstiktok.search_suggestionstiktok.search_toptiktok.soundtiktok.sound_poststiktok.top_adstiktok.top_poststiktok.transcripttiktok.trending_hashtagstiktok.trending_poststiktokshop.producttiktokshop.productstiktokshop.reviewstiktokshop.search_productstruthsocial.posttruthsocial.poststruthsocial.profiletwitch.profiletwitch.scheduletwitch.transcripttwitch.videotwitch.videosx.communityx.postx.profilex.search_communitiesx.search_hashtagsx.search_postsx.search_profilesyoutube.commentsyoutube.engagementyoutube.postyoutube.postsyoutube.profileyoutube.transcript
max_pages?integernullableList endpoints only: walk up to this many pages with the cursor (default 1). Each page is a result and costs a page's price.
paramsobjectThe endpoint's query params, as you would send them to it (strings, numbers or booleans).
webhook_url?stringnullableAlso deliver this job's job.* events to this URL: the URL of one of the account's webhook endpoints (its secret signs them).
Response
200 · 202
Run many requests (or one long one) as a job
dataobjectShowHide 16 child fields
cancel_requested_atstring date-timenullablecreated_atstring date-timecreditsobjectShowHide 3 child fields
chargedintegerCredits charged so far, each page once (items' prices; failed items are free).
maxintegermax_credits: the most the job may spend.
reservedintegerCredits its running pages may still use (0 once the job ends).
expires_atstring date-timeThe deadline: items not ended by then expire.
finished_atstring date-timenullableWhen the job ended; null while it runs.
idstringThe job ID (job_…).
max_ageintegernullableThe job's max_age; null when it accepts no cached results.
metadataobjectYour metadata; {} when none.
objectstringAlways job.
One ofjob
request_countsobjectShowHide 7 child fields
canceledintegerexpiredintegerfailedintegerqueuedintegerNot started.
runningintegerStarted (fetching, waiting for a retry or walking pages).
succeededintegertotalintegerresults_expire_atstring date-timenullableWhen results are deleted; null while the job runs.
results_urlstringnullableEvery result as JSON Lines (one JobResult per line), signed: works without the API key until results_url_expires_at. Null until the job ends and after results_expire_at.
results_url_expires_atstring date-timenullablestarted_atstring date-timenullableWhen the first item started; null before.
statusstringqueued: nothing started yet. running. canceling: canceled, running items finishing. completed: every item ended (check request_counts: there is no job-level failure). canceled. expired: the deadline passed; unfinished items expired.
One ofqueuedrunningcancelingcompletedcanceledexpired
webhook_urlstringnullableThe job's own webhook URL; null when none.
metaobjectThe shared route meta (see the API reference introduction).
results?object[]Only on 200 from create with wait: the first page of results.
resultsShowHide 9 child fields
completed_atstring date-timecustom_idstringendpointstringOne ofamazon.deal_productsamazon.offersamazon.productamazon.reviewsamazon.search_productsamazon.selleramazon.shopamazon.shop_listsamazon.shop_postsamazon.top_productsapplemusic.albumapplemusic.artistapplemusic.search_albumsapplemusic.search_artistsapplemusic.search_playlistsapplemusic.search_tracksapplemusic.top_albumsapplemusic.top_playlistsapplemusic.top_tracksapplemusic.trackbluesky.commentsbluesky.postbluesky.postsbluesky.profilebluesky.search_postsfacebook.adfacebook.ad_transcriptfacebook.adsfacebook.commentsfacebook.engagementfacebook.eventfacebook.eventsfacebook.groupfacebook.group_postsfacebook.listingfacebook.photosfacebook.place_eventsfacebook.postfacebook.postsfacebook.profilefacebook.reelsfacebook.repliesfacebook.search_adsfacebook.search_advertisersfacebook.search_eventsfacebook.search_groupsfacebook.search_listingsfacebook.search_placesfacebook.search_postsfacebook.search_profilesfacebook.transcriptgoogle.adgoogle.adsgoogle.advertisergoogle.search_adsgoogle.search_advertisersgoogle.search_suggestionsinstagram.commentinstagram.commentsinstagram.embedinstagram.engagementinstagram.hashtaginstagram.hashtag_postsinstagram.highlightsinstagram.placeinstagram.place_postsinstagram.playlist_storiesinstagram.postinstagram.postsinstagram.profileinstagram.reelsinstagram.search_hashtagsinstagram.search_placesinstagram.search_postsinstagram.search_profilesinstagram.search_soundsinstagram.search_suggestionsinstagram.similar_profilesinstagram.soundinstagram.sound_postsinstagram.storyinstagram.topicinstagram.transcriptinstagram.trending_postsinstagram.usernamekick.postkick.transcriptkomi.pagekwai.postkwai.postskwai.profilelinkbio.profilelinkedin.adlinkedin.postlinkedin.profilelinkedin.search_adslinkedin.search_postslinkedin.search_profileslinkme.profilelinktree.profilepillar.pagepinterest.boardpinterest.board_pinspinterest.boardspinterest.pinpinterest.pinspinterest.profilepinterest.search_pinspinterest.top_trendspinterest.topicpinterest.web_pagereddit.commentsreddit.engagementreddit.postreddit.postsreddit.profilereddit.profile_commentsreddit.search_commentsreddit.search_postsreddit.search_profilesreddit.search_subredditsreddit.subredditreddit.subreddit_postsreddit.transcriptrumble.commentsrumble.engagementrumble.postrumble.postsrumble.profilerumble.search_postsrumble.transcriptsnapchat.commentssnapchat.profilesnapchat.spotlightsoundcloud.artistsoundcloud.tracksoundcloud.tracksspotify.albumspotify.artistspotify.playlistspotify.playlist_tracksspotify.podcastspotify.podcast_episodesspotify.search_albumsspotify.search_artistsspotify.search_playlistsspotify.search_podcastsspotify.search_tracksspotify.tracktelegram.channeltelegram.channel_poststelegram.posttelegram.search_channelsthreads.commentsthreads.postthreads.poststhreads.profilethreads.search_poststhreads.search_profilestiktok.adtiktok.commenttiktok.commentstiktok.downloadtiktok.effecttiktok.effect_poststiktok.engagementtiktok.followerstiktok.followingtiktok.hashtagtiktok.hashtag_poststiktok.liked_poststiktok.livetiktok.place_poststiktok.playlist_poststiktok.playliststiktok.posttiktok.poststiktok.profiletiktok.repliestiktok.search_adstiktok.search_hashtagstiktok.search_poststiktok.search_profilestiktok.search_soundstiktok.search_suggestionstiktok.search_toptiktok.soundtiktok.sound_poststiktok.top_adstiktok.top_poststiktok.transcripttiktok.trending_hashtagstiktok.trending_poststiktokshop.producttiktokshop.productstiktokshop.reviewstiktokshop.search_productstruthsocial.posttruthsocial.poststruthsocial.profiletwitch.profiletwitch.scheduletwitch.transcripttwitch.videotwitch.videosx.communityx.postx.profilex.search_communitiesx.search_hashtagsx.search_postsx.search_profilesyoutube.commentsyoutube.engagementyoutube.postyoutube.postsyoutube.profileyoutube.transcript
errorobjectnullableExactly the synchronous error object; null on success and for the job's own cancel or deadline.
ShowHide 10 child fields
chargedbooleanWhether the request was charged: always false, failed requests are free.
codestringMachine-readable error code (see the error codes list); stable.
detailsobjectThe code's dynamic values (the error codes list documents each code's keys); {} when none.
doc_urlstringURL of this code's documentation.
messagestringWhat went wrong and how to fix it, for humans and agents; wording may change.
paramstringnullableThe query parameter or header the error is about; null when it is not about one input.
remediationstringWhat to do about this code, one sentence.
request_idstringUnique request ID; include it when contacting support.
retryablebooleanTrue when repeating the same request later may succeed (after details.retry_after when present).
statusintegerThe HTTP status of the response, repeated for clients that only see the body.
objectstringAlways job_result.
One ofjob_result
page_indexinteger0 for a single-item endpoint and a list's first page; n for the list's page n+1.
resultobjectnullableExactly the synchronous success envelope; null unless succeeded.
ShowHide 3 child fields
dataanyThe endpoint's data: its resource, or a list page's items.
metaobjectpage?objectnullableList endpoints only.
statusstringThe page's outcome; an item's status is its last result's. canceled and expired results carry no result (error says why when it is not the job's cancel or deadline).
One ofsucceededfailedcanceledexpired
status_codeintegernullableThe HTTP status the synchronous request answered; null when it did not run.
results_page?objectnullableOnly with results: the page object of results (continue on the results route).
results_pageShowHide 4 child fields
end_reasonstringnullableWhy there are no more pages; null while has_more is true. end: the list ended, or reached since/until. platform_limit: the platform stops serving further pages although the list goes on. max_pages: SocialTap's cap on pages in one walk. New values may be added. A short or empty page is not the end: only has_more false is.
One ofendplatform_limitmax_pages
has_morebooleanTrue when another page exists; then next_cursor is set. An empty page with has_more true is not the end.
next_cursorstringnullablePass as cursor, with the same other parameters, to get the next page; null at the end.
next_cursor_expires_atstring date-timenullableWhen next_cursor stops working, RFC 3339 UTC; null at the end. Don't store cursors.
400
400 Bad Request.
invalid_inputNo retryA parameter is missing or malformed, or the link is not one this endpoint takes.
Fix the parameter named in param as the message says. For a link of the wrong kind, call an endpoint listed in details.endpoints, when there is one.
401
401 Unauthorized.
unauthorizedNo retryThe x-api-key header is missing, or its key is unknown or revoked. On the dashboard's routes: the session cookie is missing or expired.
Send a valid API key in the x-api-key header. No key yet? A person gets one at details.signup_url; an AI agent follows details.agent_auth_url.
402
402 Payment Required.
insufficient_creditsNo retryThe account does not have enough credits for this request.
Have a person buy credits at details.purchase_url (or make them a checkout link with details.checkout), then repeat the request. Do not retry automatically.
spend_limit_reachedNo retryThe API key reached its spend limit for this period. The account may still have credits.
Wait until details.resets_at, or raise the key's spend limit (PATCH /v1/api_keys/{id}). Do not retry automatically.
403
403 Forbidden.
forbiddenNo retryThe API key is valid but may not make this request, and details.reason says why: the account is suspended, the key lacks the route's scope, waits for its owner to confirm it by email, has expired, or was used from an IP outside its allowlist, or a rotated key's previous secret was used for a call that needs the admin scope. A running job stops with it too when its account is suspended or the key that created it is revoked or expires. It is about the key, never the item: a private item is private_or_unavailable, also 403, so branch on the code.
Act on details.reason. suspended: contact support. scope: use a key with details.required_scope. previous_secret: use the new secret. key_pending: have the owner open the emailed link. key_expired or key_revoked: create a new key. ip_not_allowed: call from an allowed IP.
409
409 Conflict.
idempotency_key_in_progressYes, laterA request with this Idempotency-Key is still running.
Retry after the seconds in the retry-after header to get that request's result.
422
422 Unprocessable.
idempotency_key_reusedNo retryThis Idempotency-Key was already used for a different request (another route or body). Or it was used for this same request, which ran and returned a secret we no longer keep (details.reason answer_expired): running it again would create another.
Use a new Idempotency-Key for a different request, and reuse a key only to retry the identical request. With reason answer_expired, check what the first request created (GET /v1/api_keys, GET /v1/webhook_endpoints) before sending it again under a new key.
429
429 Too Many Requests.
rate_limitedYes, laterThe account passed its runaway-protection ceiling: a high per-account limit that stops a broken client loop (plans have no rate limit). Requests without an API key (signup, the MCP server's tool listing and find_endpoint) are limited per IP address instead. It also stops an account whose failed requests in the last hour cost far more than its successful ones paid for: failures are free within a limit (the message says so), and successes raise it.
Wait the seconds in the retry-after header, then retry. If your steady traffic needs more, ask support to raise the ceiling; without an API key, send one.
operationId jobs.create