Social Media API

Profiles, posts, comments, followers and search from 34 social networks, as clean JSON with one API key.

One social media data API for TikTok, Instagram, YouTube, Facebook, Reddit, LinkedIn, X, Threads, Bluesky, Twitch and more. Every network answers in the same JSON shape, so a pipeline built for one works for the next. Public data only: no app review, no OAuth and no account on the network. 334 endpoints in this category, from $1 per 1,000 calls.

  • 34 platforms
  • 334 endpoints
  • from $1 / 1,000 calls
  • 1,000 free credits / month

Social media APIs on API.SH

Each platform has its own page with endpoints, example responses and prices. One API key works for all of them.

What teams build with social media data

Social listening and brand monitoring

Search posts, hashtags and comments across networks and track mentions of your brand, products or competitors in one feed.

Influencer and creator research

Pull follower counts, engagement and recent posts for creators before a campaign, and track their results after it.

Social media analytics dashboards

Collect account and post metrics on a schedule and feed them into BI tools, spreadsheets or a data warehouse.

Training and grounding AI

Give AI agents live social context through the MCP server, or build datasets of public posts and comments for research.

Popular social media endpoints

platformendpointper 1,000 calls
TikTok Search TikTok videos
/tiktok/v1/search/keyword
$1
1 credit
Instagram Search Instagram posts and reels
/instagram/v1/search
$1
1 credit
YouTube YouTube search
/youtube/v1/search
$1
1 credit
Facebook Facebook events search
/facebook/v1/events
$1
1 credit
X (Twitter) X profile
/twitter/v1/profile
$1
1 credit
Reddit Search Reddit posts
/reddit/v1/search
$1
1 credit
LinkedIn LinkedIn job search
/linkedin/v1/jobs
$1
1 credit
Threads Search Threads posts
/threads/v1/search
$1
1 credit
Bluesky Search Bluesky users
/bluesky/v1/search/users
$1
1 credit
Twitch Twitch channel
/twitch/v1/profile
$1
1 credit
Pinterest Pinterest search
/pinterest/v1/search
$1
1 credit
Snapchat Snapchat public profile
/snapchat/v1/profile
$1
1 credit

One request, clean JSON

Search TikTok videos from TikTok: GET https://api.api.sh/tiktok/v1/search/keyword. Every other social media endpoint works the same way.

curl "https://api.api.sh/tiktok/v1/search/keyword?q=cooking" \
  -H "x-api-key: $APISH_KEY"
import os, requests

res = requests.get(
    "https://api.api.sh/tiktok/v1/search/keyword",
    params={"q": "cooking"},
    headers={"x-api-key": os.environ["APISH_KEY"]},
    timeout=120,
)
res.raise_for_status()
data = res.json()
{"query": "cooking","count": 19,"next_cursor": "20|2026102319462506A27FBE5343885A3772","videos": [{"id": "7665423468699094303","desc": "#cooking #cookingtiktok #cookingvideos #food #fyp ","create_time": "2026-07-22T18:38:23.000Z","duration": 153,"cover": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/osfRIE3R6tYmTPzC2eB3QnyHABFDEqAQYiDV2E~tplv-tiktokx-origin.image?dr=9636&x-e…","author": {"id": "7659299286202729485","username": "boieqmdk8rc","nickname": "boieqmdk8rc","verified": false,"avatar": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/354d2f174f5a06ee40d0fe21b4cd75df~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr…"},"stats": {"diggCount": "170","shareCount": "41","commentCount": "6","playCount": "15300","collectCount": "93","repostCount": "0"},"music": {"id": "7665423485962930974","title": "original sound - boieqmdk8rc","author": "boieqmdk8rc"},"hashtags": ["cooking","cookingtiktok","… 3 more"],"location_created": null,"suggested_words": null,"is_ad": false,"url": "https://www.tiktok.com/@boieqmdk8rc/video/7665423468699094303","create_time_unix": 1784745503,"video": {"width": 576,"height": 1024,"ratio": "540p","format": "mp4","bitrate": 563852,"definition": "540p","codec": "h264","quality": "lowest","size": 10840066,"play_url": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast8/tos-useast8-pve-0068-tx2/oAo5ApViaPDEVB5RK2NrxAEbh2mQIREgBDidP/?a=1988&bti=ODszNWYu…","download_url": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast8/tos-useast8-pve-0068-tx2/oklyIQiRDIjD6Ct3AiFgVFRY2BfeqwEQEWAzEY/?a=1988&bti=ODszNWY…","cover": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/osfRIE3R6tYmTPzC2eB3QnyHABFDEqAQYiDV2E~tplv-tiktokx-origin.image?dr=9636&x-e…","origin_cover": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/oA0RbIm2PR2GABiDiR2Ioh5EAEBaBVNCo5pd7~tplv-tiktokx-origin.image?dr=9636&x-ex…","dynamic_cover": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-p-0068-tx2/okAABDIaQoERmIihbo5dNPEZ5Bis2B5zERV2o~tplv-tiktokx-origin.image?dr=9636&x-ex…","bitrates": [{"…": "8 fields"},{"…": "8 fields"},"… 1 more"],"subtitles": [{"…": "4 fields"}]},"images": [],"author_info": {"sec_uid": "MS4wLjABAAAAz96wnaw0Rqe5nl_CInRMfmeDtaDa3LXxTQ7ZOIfZ7HrfBQaewFQtDUWmqWRLZ49Q","signature": "","private": false,"avatar_thumb": "https://p16-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/354d2f174f5a06ee40d0fe21b4cd75df~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9…","avatar_medium": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/354d2f174f5a06ee40d0fe21b4cd75df~tplv-tiktokx-cropcenter:720:720.jpeg?dr=9…","url": "https://www.tiktok.com/@boieqmdk8rc"},"author_stats": {"followingCount": "0","followerCount": "15300","heartCount": "133100","videoCount": "38","diggCount": "0","heart": "133100","friendCount": "0"},"music_info": {"play_url": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast8/tos-useast8-v-27dcd7-tx2/owBE4iDOFA9jYDh4AJlnCBTUQuoEEVAfAqQfEE/?a=1988&bti=ODszNWY…","cover": "https://p19-common-sign.tiktokcdn-us.com/tos-useast8-avt-0068-tx2/354d2f174f5a06ee40d0fe21b4cd75df~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr…","original": true,"duration": 153,"album": null},"challenges": [{"id": "18973","title": "cooking","desc": null},{"id": "1607060250419201","title": "cookingtiktok","desc": "Whether you're baking a cake or perfecting a recipe, we're here for all things #CookingTikTok."},"… 3 more"],"mentions": [],"poi": null,"pinned": null,"private_item": false,"duet_enabled": true,"stitch_enabled": true,"share_enabled": true,"diversification_labels": null,"ai_generated": null},{"id": "7699006867812388114","desc": "How to cook braosed pork and soup recipe","create_time": "2026-10-21T06:38:51.000Z","duration": 905,"cover": "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/o4AAAFRY2O1IfBGA8DBCvEuEKbXKi4iwASyBxv~tplv-tiktokx-origin.image?dr=9636&x-expires…","author": {"id": "7530266134588425232","username": "foodpartners","nickname": "Food Partners","verified": false,"avatar": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/c2b00224ddd477cbd2b1e49f12fc8e35~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&…"},"stats": {"diggCount": "21400","shareCount": "670","commentCount": "338","playCount": "1900000","collectCount": "3364","repostCount": "0"},"music": {"id": "7699007208801766165","title": "original sound - Food Partners","author": "Food Partners"},"hashtags": [],"location_created": null,"suggested_words": null,"is_ad": false,"url": "https://www.tiktok.com/@foodpartners/video/7699006867812388114","create_time_unix": 1792564731,"video": {"width": 1080,"height": 1920,"ratio": "1080p","format": "mp4","bitrate": 3516272,"definition": "1080p","codec": "h264","quality": "normal","size": 397972193,"play_url": "https://v16-webapp-prime.us.tiktok.com/video/tos/alisg/tos-alisg-pve-0037/osB4b6V07Vli9iYhiSvYqIAAtEaEVliyiATWY/?a=1988&bti=ODszNWYuMDE6&&bt…","download_url": "https://v16-webapp-prime.us.tiktok.com/video/tos/alisg/tos-alisg-pve-0037/osB4b6V07Vli9iYhiSvYqIAAtEaEVliyiATWY/?a=1988&bti=ODszNWYuMDE6&&bt…","cover": "https://p19-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/o4AAAFRY2O1IfBGA8DBCvEuEKbXKi4iwASyBxv~tplv-tiktokx-origin.image?dr=9636&x-expires…","origin_cover": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/owDLkVLCS2dIEeLrpVgL4LAojvAeYVLwhesgAG~tplv-tiktokx-origin.image?dr=9636&x-expires…","dynamic_cover": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-p-0037/o4AAAFRY2O1IfBGA8DBCvEuEKbXKi4iwASyBxv~tplv-tiktokx-origin.image?dr=9636&x-expires…","bitrates": [{"…": "8 fields"},{"…": "8 fields"},"… 2 more"],"subtitles": []},"images": [],"author_info": {"sec_uid": "MS4wLjABAAAAfeS8vYCa27jZCGYn7P18p92ZUNCYi9Am--ntYEz6TSXYW5OHErB6ITYElmY-nIf7","signature": "","private": false,"avatar_thumb": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/c2b00224ddd477cbd2b1e49f12fc8e35~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&re…","avatar_medium": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/c2b00224ddd477cbd2b1e49f12fc8e35~tplv-tiktokx-cropcenter:720:720.jpeg?dr=9640&re…","url": "https://www.tiktok.com/@foodpartners"},"author_stats": {"followingCount": "0","followerCount": "89900","heartCount": "618700","videoCount": "117","diggCount": "7","heart": "618700","friendCount": "0"},"music_info": {"play_url": "https://v16-webapp-prime.us.tiktok.com/video/tos/alisg/tos-alisg-v-27dcd7/oAENMQKfFlbIGjUJUd2qeQF4U0kDSXgBCG7JaB/?a=1988&bti=ODszNWYuMDE6&&b…","cover": "https://p16-common-sign.tiktokcdn-us.com/tos-alisg-avt-0068/c2b00224ddd477cbd2b1e49f12fc8e35~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&…","original": true,"duration": 905,"album": null},"challenges": [],"mentions": [],"poi": null,"pinned": null,"private_item": false,"duet_enabled": null,"stitch_enabled": null,"share_enabled": true,"diversification_labels": null,"ai_generated": null},"… 17 more"],"credits_used": 1,"cached": false}

Why API.SH for social media data

  • Public data only: no logins, cookies or accounts on the source sites
  • One key and one JSON shape across 34 social media platforms and 483 in all
  • Blocks, retries and parsing handled for you: no scraper to maintain
  • Pay per call; failed calls cost nothing
  • Also in n8n, Zapier, Make, Google Sheets and AI agents (MCP)

Compared with other data APIs

Other providers sell each platform as a separate actor, scraper or subscription. On API.SH every social media platform is under one key and one balance, priced per call on the pricing page.

Social media API questions

What is a social media API?+

A social media API returns data from social networks (profiles, posts, comments, followers, search results) in a structured format your code can read. API.SH covers 34 networks with one key and one JSON format.

Is there a free social media API?+

Yes. Every API.SH account gets 1,000 free credits each month, no card needed, which covers calls to any social network in the catalog. Paid usage starts at $1 per 1,000 calls.

How is this different from the official Instagram, TikTok or X APIs?+

Official APIs usually need an approved developer app, OAuth and a business account, and often only return data about your own account. API.SH returns public data about any public account or post with just an API key.

Can I use the social media API from Python?+

Yes. Each endpoint is a plain HTTPS GET that returns JSON, so it works with Python requests, Node fetch or any language. There are also SDKs, a Google Sheets add-on, n8n, Zapier and Make apps, and an MCP server for AI agents.

Which social media platforms are supported?+

TikTok, Instagram, YouTube, Facebook, X (Twitter), Reddit, LinkedIn, Threads, Bluesky, Twitch, Kick, Pinterest, Snapchat, Telegram, Tumblr, Weibo, Xiaohongshu, Douyin and more. The full list is on this page and in the catalog.

More API categories

Start with 1,000 free credits
Every month, on every account. One key for every social media platform above.
Get a free API key