Using the API

How every endpoint takes its input, the parameter names shared by all of them, and how unknown or mistyped parameters are answered.

Every endpoint follows the same conventions, so once you have called one you can call them all.

One identifying parameter

Each endpoint takes exactly one parameter that says what to fetch, named for what you have in hand:

  • url for an item and an item's lists (a video's transcript, a post's comments): a canonical link, a short or share link, a mobile link or the platform's own ID.
  • handle for a profile and a profile's lists: a profile link, @handle, a username or the platform's own ID.
  • query for searches (endpoints named search_…).

Each endpoint page lists the kinds of link its parameter takes. A link of another kind, or from another platform, fails with invalid_input at no charge, and the error names the endpoint that takes it: error.details says what the link is (url_kind, url_platform) and which endpoints take it (endpoints). For a link that only points elsewhere (a share link, an embedded player), it also says where the link leads (resolved_url). A search's query takes words, never a link: a link pasted as the whole query fails the same way, naming the endpoint that takes it. An endpoint about a web page itself (how often a platform's users shared it) takes any web page's link, on that platform or off it, exactly as written: only a value that is no http(s):// link fails. The links SocialTap recognizes:

PlatformKind of linkExample
Amazonproducthttps://www.amazon.com/Apple-AirPods-Pro-3/dp/B0FQFB8FMG
producthttps://www.amazon.com/gp/product/B0FQFB8FMG
producthttps://www.amazon.com/product-reviews/B0FQFB8FMG
producthttps://www.amazon.com/exec/obidos/ASIN/B0FQFB8FMG
producthttps://amzn.to/3XyZabc
producthttps://a.co/d/7xYZabc
producthttps://amzn.com/B0FQFB8FMG
profilehttps://www.amazon.com/sp?seller=A3A7XJ7DLGM1CB
profilehttps://www.amazon.com/gp/aag/main?seller=A3A7XJ7DLGM1CB
profilehttps://www.amazon.com/gp/help/seller/at-a-glance.html?seller=A3A7XJ7DLGM1CB
profilehttps://www.amazon.com/s?me=A3A7XJ7DLGM1CB
profilehttps://www.amazon.com/sp/redirect/storefront?seller=A3A7XJ7DLGM1CB
profilehttps://www.amazon.com/shops/A3A7XJ7DLGM1CB
profilehttps://www.amazon.co.uk/gp/profile/amzn1.account.AFOROB3HYSFWRMIYUG5YOF23VXKQ
playlisthttps://www.amazon.com/shop/sydneydelrey/list/XYAIGEFWJGML
profilehttps://www.amazon.com/shop/sydneydelrey
Apple Musicposthttps://music.apple.com/us/album/lover/1468058165?i=1468058169
posthttps://music.apple.com/us/song/i-forgot-that-you-existed/1468058169
posthttps://music.apple.com/us/station/20-years-of-taylor-swift/ra.6825008805
videohttps://music.apple.com/us/music-video/hello/1544490140
albumhttps://music.apple.com/us/album/lover/1468058165
profilehttps://music.apple.com/us/artist/taylor-swift/159260351
profilehttps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=159260351
playlisthttps://music.apple.com/us/playlist/taylor-swift-essentials/pl.3950454ced8c45a3b0cc693c2a7db97b
Blueskyposthttps://bsky.app/profile/bsky.app/post/3l6oveex3ii2l
posthttps://embed.bsky.app/embed/did:plc:z72i7hdynmk6r22z27h6tvur/app.bsky.feed.post/3l6oveex3ii2l
profilehttps://bsky.app/profile/bsky.app
profilehttps://bsky.app/profile/did:plc:z72i7hdynmk6r22z27h6tvur
hashtaghttps://bsky.app/hashtag/atproto
Facebookposthttps://www.facebook.com/groups/366190054572553/posts/1837128977478646/
posthttps://www.facebook.com/groups/366190054572553/?multi_permalinks=1837128977478646
posthttps://www.facebook.com/groups/366190054572553/?view=permalink&id=1837128977478646
profilehttps://www.facebook.com/groups/366190054572553/user/100076905588840/
communityhttps://www.facebook.com/groups/366190054572553/
communityhttps://www.facebook.com/group.php?gid=366190054572553
communityhttps://www.facebook.com/share/g/1AbCdEfGh/
videohttps://www.facebook.com/reel/1803909017420449
videohttps://fb.watch/abcDEF123/
videohttps://www.facebook.com/share/v/1AbCdEfGh/
hashtaghttps://www.facebook.com/hashtag/cooking
adhttps://www.facebook.com/ads/library/?id=1448538159982118
adhttps://www.facebook.com/ads/archive/render_ad/?id=1448538159982118
placehttps://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547/
eventhttps://www.facebook.com/events/2513378022457980/
eventhttps://www.facebook.com/event.php?eid=2513378022457980
posthttps://www.facebook.com/NASA/posts/pfbid02abc
posthttps://www.facebook.com/share/p/1AbCdEfGh/
producthttps://www.facebook.com/marketplace/item/1456476040872340/
placehttps://www.facebook.com/marketplace/austin/
posthttps://www.facebook.com/1515533333772646
profilehttps://www.facebook.com/profile.php?id=100088017857524
profilehttps://www.facebook.com/pages/category/Government-Organization/NASA-54971236771/
profilehttps://www.facebook.com/pages/category/Government-Organization/NASA/
profilehttps://www.facebook.com/people/Mantra-Indian-Folsom/100088017857524/
profilehttps://www.facebook.com/p/Mantra-Indian-Folsom-100088017857524/
profilehttps://www.facebook.com/pg/NASA/posts/
profilehttps://www.facebook.com/profile/100044561550831
profilehttps://www.facebook.com/ads/library/?view_all_page_id=20531316728&search_type=page
profilehttps://www.facebook.com/Mantra-Indian-Folsom-100088017857524
profilehttps://www.facebook.com/NASA
Googleadhttps://adstransparency.google.com/advertiser/AR01614014350098432001/creative/CR07443539616616939521?region=US
adhttps://transparencyreport.google.com/political-ads/advertiser/AR07541154843046445057/creative/CR17778900238552006657
profilehttps://adstransparency.google.com/advertiser/AR01614014350098432001?region=US
profilehttps://transparencyreport.google.com/political-ads/advertiser/AR07541154843046445057
Instagramsoundhttps://www.instagram.com/reels/audio/822282777968975/
videohttps://www.instagram.com/reel/De1S3KpCXf0/
posthttps://www.instagram.com/p/C0AbCdEfGhI/
hashtaghttps://www.instagram.com/explore/tags/cooking/
hashtaghttps://www.instagram.com/popular/cooking/
placehttps://www.instagram.com/explore/locations/212988663/new-york-new-york/
topichttps://www.instagram.com/popular/harry-potter/
topichttps://www.instagram.com/explore/search/keyword/?q=harry%20potter
profilehttps://www.instagram.com/natgeo/
profilehttps://www.instagram.com/_u/natgeo
profilehttps://www.instagram.com/stories/natgeo/
storyhttps://www.instagram.com/stories/natgeo/4012120567117354624/
storyhttps://www.instagram.com/stories/highlights/18023864549864045/?story_media_id=4012120567117354624_787132
storyhttps://www.instagram.com/s/aGlnaGxpZ2h0OjE4MDIzODY0NTQ5ODY0MDQ1?story_media_id=4012120567117354624_787132
playlisthttps://www.instagram.com/stories/highlights/18195781759377100/
playlisthttps://www.instagram.com/s/aGlnaGxpZ2h0OjE4MTk1NzgxNzU5Mzc3MTAw
Kickposthttps://kick.com/xqc/clips/clip_01JGJHB6CEVFCQRYTVPM8DW892
posthttps://kick.com/browse/clips?clip=clip_01JGJHB6CEVFCQRYTVPM8DW892
posthttps://kick.com/xqc?clip=clip_01JGJHB6CEVFCQRYTVPM8DW892
posthttps://clips.kick.com/clips/7a/clip_01JGJHB6CEVFCQRYTVPM8DW892/playlist.m3u8
videohttps://kick.com/xqc/videos/2ba60535-342e-4397-b16a-fb739ca96b21
profilehttps://kick.com/xqc
Komiprofilehttps://kimkardashian.komi.io
Kwaivideohttps://www.kwai.com/@KwaiBrasilOficial/video/5217007328706437238
videohttps://k.kwai.com/p/CCzy11ul
playlisthttps://www.kwai.com/@KwaiBrasilOficial/playlist/167763847165248717
topichttps://www.kwai.com/discover/futebol
profilehttps://www.kwai.com/@558843093
profilehttps://www.kwai.com/@KwaiBrasilOficial
profilehttps://m.kwai.com/user/3xyutri4afq3qks
profilehttps://m.kwai.com/user/@KwaiBrasilOficial
profilehttps://k.kwai.com/u/@3xyutri4afq3qks/rCdhNk5p
profilehttps://k.kwai.com/u/@israelyoficial/rCdhNk5p
Lnk.Bioprofilehttps://lnk.bio/msjennafischer
LinkedInposthttps://www.linkedin.com/posts/google_the-latest-ai-news-we-announced-in-october-activity-7523096017404100610-Sj86
posthttps://www.linkedin.com/feed/update/urn:li:activity:7520850526549385216/
posthttps://www.linkedin.com/pulse/how-ai-changing-work-satya-nadella
adhttps://www.linkedin.com/ad-library/detail/1603768123
adhttps://www.linkedin.com/ad-library/employer-brand/1035?talentMarketplaceChannelId=4
hashtaghttps://www.linkedin.com/feed/hashtag/ai/
communityhttps://www.linkedin.com/groups/25827/
producthttps://www.linkedin.com/products/shopify/
profilehttps://www.linkedin.com/company/google/
profilehttps://www.linkedin.com/school/stanford-university/
profilehttps://www.linkedin.com/showcase/androidenterprise/
profilehttps://www.linkedin.com/company/1441/
profilehttps://www.linkedin.com/in/williamhgates/
profilehttps://www.linkedin.com/organization-guest/company/google
profilehttps://www.linkedin.com/organization-guest/school/stanford-university
profilehttps://www.linkedin.com/organization-guest/showcase/androidenterprise
Linkmeprofilehttps://link.me/papisteak
profilehttps://link.me/papisteak/shop
Linktreeprofilehttps://linktr.ee/selenagomez
Pillarprofilehttps://pillar.io/ninja
Pinterestposthttps://www.pinterest.com/pin/424605071146283650/
topichttps://www.pinterest.com/ideas/star-nail-designs/961385779129/
profilehttps://www.pinterest.com/pinterest/_created/
playlisthttps://www.pinterest.com/pinterest/easy-and-chic-holiday-nail-ideas/
profilehttps://www.pinterest.com/pinterest/
Redditposthttps://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/
posthttps://www.reddit.com/gallery/1xfccr2
posthttps://www.reddit.com/r/IAmA/s/a1b2c3d4e5
posthttps://www.reddit.com/video/p2xzbbiakvxh1
posthttps://redd.it/z1c9z
posthttps://v.redd.it/p2xzbbiakvxh1
profilehttps://www.reddit.com/user/spez/
profilehttps://www.reddit.com/r/u_spez/
communityhttps://www.reddit.com/r/golang/
Rumblevideohttps://rumble.com/v79xhhm-discovery-why-glenn-wants-israel-to-sue-the-new-york-times.html
videohttps://rumble.com/v79xhhm
videohttps://rumble.com/shorts/v7hgv02
videohttps://rumble.com/share/v79xhhm
videohttps://rumble.com/embed/v77qthe/
profilehttps://rumble.com/c/Bongino
profilehttps://rumble.com/user/vivafrei
profilehttps://rumble.com/Bongino
Snapchatposthttps://www.snapchat.com/@mrbeast/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYbHZzZmtrYm1jAZhMOQmTAZhMOQfqAAAAAQ
posthttps://www.snapchat.com/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYbHZzZmtrYm1jAZhMOQmTAZhMOQfqAAAAAQ
posthttps://www.snapchat.com/add/mrbeast/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYbHZzZmtrYm1jAZhMOQmTAZhMOQfqAAAAAQ
posthttps://www.snapchat.com/p/94e059e6-dce3-4f7d-90cd-7465ef0e5863/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYYWZ4eG15ZmdrAY9oLQrbAY9oLENLAAAAAQ
posthttps://www.snapchat.com/web/spotlight/W7_EDlXWTBiXAEEniNoMPwAAYbHZzZmtrYm1jAZhMOQmTAZhMOQfqAAAAAQ
posthttps://t.snapchat.com/irFUoWdn
posthttps://www.snapchat.com/t/irFUoWdn
profilehttps://www.snapchat.com/@mrbeast
profilehttps://app.snapchat.com/web/deeplink/snapcode?username=mrbeast&type=SVG&bitmoji=enable
storyhttps://www.snapchat.com/p/94e059e6-dce3-4f7d-90cd-7465ef0e5863/1234567890
effecthttps://www.snapchat.com/lens/5f2752f411d54fa588987b858f819d47
effecthttps://www.snapchat.com/unlock/?type=SNAPCODE&uuid=ace0170b8d524ecf8f07c4556b45089f&metadata=01
placehttps://www.snapchat.com/place/pat-obriens/0a8cdc5f-8e61-4cc2-8a72-8b49bf3dc093
hashtaghttps://www.snapchat.com/tag/viral
topichttps://www.snapchat.com/topic/joe-rauth-skits
SoundCloudposthttps://api.soundcloud.com/tracks/293
profilehttps://api.soundcloud.com/users/183
posthttps://w.soundcloud.com/player/?url=https%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F293
posthttps://on.soundcloud.com/cG6jw
playlisthttps://soundcloud.com/forss/sets/soulhack
profilehttps://soundcloud.com/forss/tracks
posthttps://soundcloud.com/forss/flickermood
profilehttps://soundcloud.com/forss
Spotifyposthttps://open.spotify.com/track/4uLU6hMCjMI75M1A2tKUQC
posthttps://open.spotify.com/episode/0ndqMvnUJkNmQrhK98R09Y
posthttps://open.spotify.com/album/6N9PS4QXF1D0OWPk0Sxtb4?highlight=spotify:track:4uLU6hMCjMI75M1A2tKUQC
posthttps://open.spotify.com/album/6N9PS4QXF1D0OWPk0Sxtb4/4uLU6hMCjMI75M1A2tKUQC
albumhttps://open.spotify.com/album/6N9PS4QXF1D0OWPk0Sxtb4
profilehttps://open.spotify.com/artist/0gxyHStUsqpMadRV0Di1Qt
playlisthttps://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M
podcasthttps://open.spotify.com/show/2MAi0BvDc6GTFvKFPXnkCL
profilehttps://open.spotify.com/user/spotify
Telegramstoryhttps://t.me/durov/s/1
posthttps://t.me/durov/552
posthttps://t.me/c/1006503122/552
posthttps://durov.t.me/552
communityhttps://t.me/+AbCdEfGhIjKlMnOp
profilehttps://t.me/s/durov
profilehttps://t.me/boost/durov
profilehttps://durov.t.me
profilehttps://t.me/durov
Threadsposthttps://www.threads.com/@zuck/post/DeZtp-TkQHh
posthttps://www.threads.com/t/DeZtp-TkQHh
profilehttps://www.threads.com/@zuck
TikTokvideohttps://www.tiktok.com/@scout2015/video/6718335390845095173
posthttps://www.tiktok.com/@nasa/photo/7310000000000000000
hashtaghttps://www.tiktok.com/tag/cooking
soundhttps://www.tiktok.com/music/Different-Acoustic-6717159721276540930
effecthttps://www.tiktok.com/effect/Bold-Glamour-14519845
playlisthttps://www.tiktok.com/@tiktok/playlist/In-The-Mix-7516638364301265695
placehttps://www.tiktok.com/place/Orlando-22535796481476942
profilehttps://www.tiktok.com/@MS4wLjABAAAAwAg0rSzO65WQfz4RzQgGv2Xdv108BgPXhRrrmNVIHQZ9PO8-flwwRtEppYTS0OjA
profilehttps://www.tiktok.com/@scout2015
profilehttps://www.tiktok.com/share/user/6745191554350760966
videohttps://vm.tiktok.com/ZMhdWxvaW/
videohttps://www.tiktok.com/t/ZSgAbqM38/
adhttps://library.tiktok.com/ads/detail/?ad_id=1874500065342865
TikTok Shopproducthttps://shop.tiktok.com/us/pdp/goli-ashwagandha-gummies-with-vitamin-d-ksm-66-vegan-non-gmo/1729587769570529799
producthttps://www.tiktok.com/shop/pdp/1729587769570529799
producthttps://shop.tiktok.com/view/product/1729587769570529799?region=US&locale=en-US
profilehttps://shop.tiktok.com/us/store/goli-nutrition/7495794203056835079
profilehttps://www.tiktok.com/shop/store/goli-nutrition/7495794203056835079
Truth Socialposthttps://truthsocial.com/@realDonaldTrump/117554198887656582
profilehttps://truthsocial.com/@realDonaldTrump
profilehttps://truthsocial.com/users/realDonaldTrump
communityhttps://truthsocial.com/group/wine-with-devin-nunes
Twitchcliphttps://clips.twitch.tv/embed?clip=IcyBreakableDelicataTooSpicy-RnrKLybQI3W9K_AD
cliphttps://clips.twitch.tv/IcyBreakableDelicataTooSpicy-RnrKLybQI3W9K_AD
videohttps://player.twitch.tv/?video=v2918964242&parent=example.com
cliphttps://m.twitch.tv/clip/IcyBreakableDelicataTooSpicy-RnrKLybQI3W9K_AD
cliphttps://www.twitch.tv/ninja/clip/IcyBreakableDelicataTooSpicy-RnrKLybQI3W9K_AD
videohttps://www.twitch.tv/videos/2918964242
videohttps://www.twitch.tv/ninja/video/2918964242
profilehttps://www.twitch.tv/ninja
profilehttps://www.twitch.tv/popout/ninja/chat
profilehttps://player.twitch.tv/?channel=ninja&parent=example.com
Xposthttps://x.com/NASA/status/2117633046002225363
posthttps://x.com/i/web/status/2117633046002225363
posthttps://x.com/thedankoe/article/2010751592346030461
hashtaghttps://x.com/hashtag/space
communityhttps://x.com/i/communities/1493446837214187523
profilehttps://x.com/i/user/11348282
profilehttps://x.com/intent/user?screen_name=NASA
profilehttps://x.com/intent/user?user_id=11348282
profilehttps://x.com/NASA
YouTubevideohttps://www.youtube.com/watch?v=dQw4w9WgXcQ
videohttps://www.youtube.com/shorts/dQw4w9WgXcQ
videohttps://youtu.be/dQw4w9WgXcQ
playlisthttps://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI
hashtaghttps://www.youtube.com/hashtag/cooking
profilehttps://www.youtube.com/@RickAstleyYT
profilehttps://www.youtube.com/channel/UCuAXFkgsw1L7xaCfnd5JJOw
profilehttps://www.youtube.com/c/RickAstleyYT
profilehttps://www.youtube.com/user/RickAstleyVEVO
profilehttps://www.youtube.com/pewdiepie

The response says what your input resolved to in meta.input: the kind of item, its ID on the platform and its canonical URL. A short link shows the item it pointed to, so you can check you fetched what you meant.

Shared parameters

Parameters that mean the same thing on every endpoint have one name, one format and one validation. An endpoint offers the ones that apply to it (its page lists them), and never under another name: the last column lists names other APIs use that are answered with a suggestion instead.

ParameterTypeValuesMeaningNot
langstring
bcp47
—Preferred language: a BCP-47 tag such as en or pt-BR (case-insensitive; _ is read as -).hl, lang_code, language, language_code, locale
countrystring
iso3166-1-alpha-2
—Region: an ISO 3166-1 alpha-2 country code such as US or BR (case-insensitive).country_code, geo, gl, market, region
sortstringrelevance, newest, oldest, popular, most_comments, best, hot, rising, controversial, qa, spend, nearest, price_asc, price_desc, recent_activity, listings
each endpoint offers a subset
Order of the results.order, order_by, orderby, sort_by, sortby
statusstringactive, inactive, all
each endpoint offers a subset
Only items that are still running (active), only items that stopped (inactive), or both (all).active, active_status, ad_active_status, state
periodstring1, 7, 30, 90, 120, 180, 365
each endpoint offers a subset
The window the ranking counts over, in days back from the platform's latest update (each endpoint lists its own).date_range, days, time_range, timerange, window
sincestring
date-time
—Only items at or after this time: RFC 3339 (2026-10-01T12:00:00Z) or a date (2026-10-01, midnight UTC). On newest-first lists, paging stops when it is reached, so later pages are not fetched or charged.
Only on lists ordered by time.
after, date_from, from, from_date, min_date, start, start_date, start_time
untilstring
date-time
—Only items before this time (exclusive): RFC 3339 or a date (midnight UTC).
Only on lists ordered by time.
before, date_to, end, end_date, end_time, max_date, to, to_date
fillstringtrue, false
each endpoint offers a subset
true also fetches each result's item from the platform: its full, current record in details (exact counts, its ID), as the platform's own endpoint for that kind returns it. Priced per result filled; a result the platform no longer serves stays unfilled and costs nothing more.details, enrich, expand, hydrate, lookup

Every endpoint also accepts the common parameters (max_age, fields; see Credits and caching), and list endpoints limit and cursor (see Pagination).

Unknown parameters are rejected

A parameter the endpoint does not accept fails with invalid_input, free, before anything is fetched. A typo can't silently change nothing, and junk parameters can't make a request look new to the cache. The error names the parameter in error.param, the one you most likely meant in details.suggestion (username is answered with handle, lnag with lang), and every accepted parameter in details.accepted_params.

Selecting fields

fields returns only the fields you name, to cut payloads and tokens: comma-separated paths in the notation of the resource's schema (id,text, metrics.view_count, segments[].text; a parent path such as metrics keeps the whole object). It applies to the item, or to each item of a list page; page and meta always come back whole. Fields you leave out are absent, so null still only ever means unknown. An unknown path fails with invalid_input and lists every valid path in details.fields.

Selection happens after the cache: it changes neither the price nor whether a request is a cache hit, and requests that differ only in fields share one cached result.

Live or cached

Every request reads the platform live unless you opt into the cache with max_age (see Credits and caching). The standard cache-control: max-age=N request header works too; when you send both, max_age wins. A result is kept for at most 7 days, so a larger value counts as that.

Request IDs and tracing

Every response carries our x-request-id; quote it when you contact support. You can also send your own ID for the request in x-client-request-id (1 to 128 printable ASCII characters): it is echoed back in the same header and in meta.client_request_id, and logged with ours, so a request whose response never reached you can still be found. A malformed one fails with invalid_input before anything runs. A W3C traceparent is accepted too: its trace ID is recorded with the request so your trace can be matched to ours (SocialTap starts its own trace; a malformed traceparent is ignored).

Rate limit headers

Plans don't limit request rate, but every account has a high runaway-protection ceiling (see Rate limits). Every response states it in the standard IETF fields: ratelimit-policy is the ceiling as it is enforced: a bucket of q requests that refills in w seconds ("account";q=2000;w=2 for a ceiling of 1,000 requests per second, which admits a burst of 2,000 at once), and ratelimit what is left of it ("account";r=1997;t=1: requests you may send at once now, and seconds until the bucket is full again). Above it, requests fail with rate_limited and a retry-after.

Warnings

meta.warnings lists things to act on that did not fail the request, such as an endpoint that will be retired. It is always present, and empty when there is nothing to say. Each warning has a code, a message and a doc_url:

WarningMeaning
deprecated_endpointThe endpoint is deprecated: it stops answering on its sunset date, after which it returns endpoint_retired. The message names the date and the replacement.
items_omittedThis walk of the list will leave some of the platform's items out (the message says which, and how to reach them) although every item it returns is valid and paging goes on as usual: a later page ending with end_reason end does not mean the list was read in full.
partial_dataPart of the data could not be fetched (a secondary request to the platform failed) while the rest is valid: the fields listed in fields are null (or []) although the platform has them. The request was charged as usual; repeat it later for the full data.

Last updated