Social media data API

What the API covers on Instagram, TikTok, Facebook and Threads

Access public Instagram, TikTok, Facebook and Threads data through one consistent REST API. Build creator analytics, influencer research, social listening and media apps without maintaining your own extraction infrastructure.

One key for four platforms 100 free credits every month cURL, Python, Node.js and PHP examples OpenAPI specification

What each platform covers

Every cell links to the endpoint's own page with its request, response and price. A dash means the API does not offer it today.

Data Instagram TikTok Facebook Threads
Profile details 1 credit 1 credit 1 credit 1 credit
Batch profile lookup (up to 25) 1 credit ———
User lookup by numeric id 1 credit ———
Followers & following lists 3 credits ———
Related / similar profiles 2 credits ———
A profile's posts or videos 1 credit 1 credit 2 credits 1 credit with self-threads
A profile's replies tab ——— 1 credit with parent context
A profile's reels 1 credit — 1 credit —
Tagged posts 2 credits ———
One post, reel or video by URL 1 credit 1 credit 1 credit 1 credit with parent chain & replies
Reels transcript & captions 3 credits 1 with captions, 3 with AI ———
Stories 2 credits 1 credit 2 credits —
Comments & replies 2 credits 2 credits 2 credits 1 credit direct reply branches
Post likers 3 credits ———
Search 3 credits users, tags, places 1 credit suggestions and accounts 2 credits pages, posts, videos 2 credits top, recent, profiles
Hashtags 2 credits posts under a tag 1 credit existence check only ——
Locations & place posts 1 credit details & ranked/recent feeds ———
Audio and sounds 1 credit track details & paginated reels 1 credit ——
Link classification 0 credits 0 credits — 0 credits 0 credits —
File downloads 2 credits 2 credits no watermark 2 credits —

One key, the same request style

Authenticate with Authorization: Bearer YOUR_API_KEY. The paths differ per platform; the auth, errors, credits and pagination do not.

Instagram profile · 1 credit

cURL
curl "https://api.igramapi.com/v1/profiles/example_creator" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response shape · example values
{
  "profile": {
    "user_id": "1234567890",
    "username": "example_creator",
    "full_name": "Example Creator",
    "biography": "Photographer. Travel and street stories. [email protected]",
    "external_url": "https://example.com",
    "bio_links": [
      {
        "title": "Portfolio",
        "url": "https://example.com",
        "link_type": "external"
      }
    ],
    "category": null,
    "is_business": null,
    "account_type": null,
    "public_email": "[email protected]",
    "public_phone": null,
    "pronouns": [],
    "has_highlights": true,
    "has_reels": true,
    "is_memorialized": false,
    "on_threads": true,
    "facebook_page_name": null,
    "profile_picture_url": "https://scontent.cdninstagram.com/v/example/avatar.jpg",
    "is_hd_picture": true,
    "is_private": false,
    "is_verified": true,
    "has_story": false,
    "followers": 182400,
    "following": 311,
    "posts_count": 742,
    "data_level": "public"
  },
  "cached": false
}

TikTok profile · 1 credit

cURL
curl "https://api.igramapi.com/v1/tiktok/profiles/example_creator" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response shape · example values
{
  "user_id": "6812345678901234567",
  "username": "example_creator",
  "nickname": "Example Creator",
  "biography": "Street food and markets. New video every Sunday.",
  "bio_link": "example.com/links",
  "avatar": "https://v16-webapp-prime.tiktok.com/video/tos/example/avatar.jpeg",
  "is_verified": true,
  "is_private": false,
  "is_business": false,
  "category": null,
  "region": "IN",
  "language": "en",
  "created_at": 1590000000,
  "followers": 1820000,
  "following": 214,
  "likes": 48200000,
  "videos": 612,
  "friends": 96,
  "cached": false
}

Facebook profile · 1 credit

cURL
curl "https://api.igramapi.com/v1/facebook/profiles?url=https%3A%2F%2Fwww.facebook.com%2Fexamplestudio" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response shape · example values
{
  "id": "100012345678901",
  "username": "examplestudio",
  "name": "Example Studio",
  "url": "https://www.facebook.com/examplestudio",
  "is_verified": true,
  "category": "Creative studio",
  "bio": null,
  "details": [
    "Creative studio"
  ],
  "followers": 2800000,
  "followers_str": "2.8M",
  "following": 48,
  "following_str": "48",
  "avatar_url": "https://scontent.xx.fbcdn.net/v/example/avatar.jpg",
  "cover_url": "https://scontent.xx.fbcdn.net/v/example/cover.jpg",
  "is_live": false,
  "cached": false
}

Threads profile · 1 credit

cURL
curl "https://api.igramapi.com/v1/threads/profiles/example_creator" \
  -H "Authorization: Bearer YOUR_API_KEY"
Response shape · example values
{
  "profile": {
    "user_id": "63456789012",
    "username": "example_creator",
    "full_name": "Example Creator",
    "biography": "Writing about developer tools and data pipelines. Notes at @example_team",
    "bio_mentions": [
      "example_team"
    ],
    "bio_links": [
      {
        "url": "https://example.com",
        "title": "Website",
        "link_id": "17901234567",
        "is_verified": true
      }
    ],
    "profile_tags": [
      {
        "id": "18012345678901234",
        "name": "Developer Tools",
        "display_name": "Developer Tools",
        "tag_cluster_name": "Tech",
        "is_community": false
      }
    ],
    "profile_picture_url": "https://scontent-threads.cdninstagram.com/v/example/avatar.jpg",
    "is_hd_picture": true,
    "followers": 284500,
    "is_verified": true,
    "is_private": false,
    "has_onboarded": true,
    "show_threads_badge": true,
    "transparency_label": null,
    "url": "https://www.threads.com/@example_creator"
  },
  "cached": false
}

What stays the same across platforms

Errors

Every error is { "error": { code, message, request_id } } with a stable code such as profile_not_found or rate_limit_exceeded. Error reference.

Credits

Each response carries X-Credits-Charged and X-Credits-Remaining. A profile is 1 credit on every platform. How credits work.

Rate limits

X-RateLimit-Remaining on every response and Retry-After on a 429, counted per account across all keys and platforms.

Pagination

Feeds and comments return a cursor; pass it back for the next page. Pagination guide.

OpenAPI

A live reference and a machine-readable openapi.json for code generators and AI tools.

Usage dashboard

Requests, credits and errors per endpoint and per platform, with up to 50 keys on the largest plan.

Limitations to know before you build

  • Public data only. Private accounts, direct messages, audience demographics and anything behind a login are never returned.
  • TikTok search returns keyword suggestions and creator accounts, not videos. The TikTok hashtag endpoint confirms a tag exists; it does not list videos.
  • Facebook works from page, profile, reel, video and post links, and returns what the page shows publicly. Fields a page does not show publicly come back empty or null.
  • Threads works from public handles or threads.com / threads.net URLs. Private Threads accounts and authenticated follower lists are never returned.
  • Upstream changes happen. When a platform changes, calls can fail until we adapt. Errors on our side are refunded; a lookup that completes with "not found" or "private" costs its credits.
  • Your responsibility. Use the data lawfully and in line with each platform's terms and privacy law. Read the Acceptable Use Policy: no spam, harassment, credential collection or covert tracking of individuals.

Get started in three steps

  1. Create a free account and confirm your email.
  2. Create an API key in the dashboard and keep it on your server.
  3. Run the cURL above with your key. The quickstart walks through it.

Questions

Is this an official Instagram, TikTok, Facebook or Threads API?

No. IGramAPI is an independent service and is not affiliated with Meta, Instagram, Facebook, Threads, TikTok or ByteDance. It returns information that is publicly visible on those platforms.

Do the four platforms return the same JSON?

They share conventions, not one schema: the same error format, integer counts, booleans for flags, ISO or Unix timestamps as documented, cursor pagination and the same credit headers. Fields that only exist on one platform, such as TikTok's total likes, Facebook's MP4 formats, or Threads' parent_chain and self-thread arrays, keep their own names. Each endpoint page lists every field.

Do I need a separate key or plan per platform?

No. One key and one credit balance cover all four. The Free plan includes 100 credits a month; paid plans go down to about ₹18 per 1,000 credits.

Can I read private accounts or private messages?

No. Only public information is available. Private accounts, private messages, audience demographics and anything behind a login are never returned.

What happens when a platform changes its site?

Calls can fail until we adapt. Errors on our side (HTTP 5xx) are refunded automatically and logged with a request id. We do not promise uninterrupted availability of any platform's data.

Which platform should I start with?

The one your product needs first. Most teams start with profiles (1 credit each) to check the data shape, then add posts, reels or comments. You can test all four in the playground without signing up.

Platform pages: Instagram API · TikTok API · Facebook API · Threads API · Pricing

Start building with social media data today

100 credits every month, no credit card.