A social media API returns public profiles, posts, comments and ads as JSON, so you can build on them without a scraper per site. The virev.ai social media API reads 9 networks (Instagram, TikTok, TikTok Shop, YouTube, LinkedIn, Facebook, the Meta Ad Library, Xiaohongshu and Douyin) with one key and one response shape. A profile or post read costs $0.0005, and you pay only for calls that succeed. This guide lists what each network returns and what it costs, then reads the same brand on several networks in Python.

What each network returns and costs

Each network has a docs hub with one page per endpoint, a real response and its price. The table counts the endpoints of each hub on 2026-11-26 and gives the price of the main reads. A price "per 35" means per page of up to 35 items, rounded up.

NetworkEndpointsWhat it returnsPrice
Instagram29Profiles, posts and reels, comments, followers, following, tagged posts, stories, locations, DMs$0.0005 a profile or post; $0.0005 per 12 posts; $0.0100 a signed-in page
TikTok20Profiles, videos, comments, followers, hashtags, sounds, search, transcripts$0.0005 a profile or video; $0.0005 per 35 videos; $0.0005 per 20 comments
TikTok Shop12Stored US products, shops, the creators and videos that sell them, categories$0.0005 a search page; $0.0010 a product or shop
YouTube23Channels, videos, Shorts, lives, comments, transcripts, sponsors, search$0.0005 a channel, video or transcript; $0.0005 per 30 videos
LinkedIn21Company pages, member profiles, posts, jobs, the LinkedIn Ad Library$0.0005 a profile or company; $0.0005 per 10 jobs; $0.0025 per 24 ads
Facebook15Public pages, posts, reels, photos, comments, transcripts, groups, events$0.0005 a page or post; $0.0005 per 10 comments
Meta Ad Library10Facebook and Instagram ads by brand or keyword, one ad, stored ad history$0.0025 a call or job; stored reads $0.0002 to $0.0010
Xiaohongshu6Explore feed, creator profiles, notes$0.0005 a profile or note; $0.0005 per 30 notes
Douyin8Profiles, posts, video details, comments, related videos$0.0005 a profile or video; $0.0005 per 42 posts

Three products work across networks. Creator search queries our stored index of creators by brand collab, niche, country and followers at $0.0010 a call. The contact finder finds the email of a creator or brand from a handle for $0.02, or $0.05 for a deeper search. The batch API runs any read over thousands of inputs.

Why one API instead of each network's own

Every network has an official API, but each one reads a different slice of data under its own credentials and quota. Four examples:

  • The Instagram Graph API has follower counts on the IG User reference but no edge that lists followers, and Business Discovery reads only Business and Creator accounts.
  • The YouTube Data API gives each Google Cloud project 10,000 quota units a day and 100 search.list calls a day, according to Google's quota table.
  • Meta's Ad Library API returns a commercial ad only if it reached the UK or the EU in the past year, as Meta's Ad Library API page states.
  • The TikTok Shop API returns only data of sellers and creators that authorized your app, per the TTS API overview.

A product that tracks creators or brands on several networks would need four sets of credentials, four quotas and four response formats, and it still could not list Instagram followers or read US commercial ads. The virev.ai API reads the public pages instead, so one key reads any public account, and every answer comes back in the same shape.

One response shape for every network

Every answer is { data, meta }. A profile from any network fills the same Profile fields: username, full_name, biography, followers, following, posts, is_verified, is_private and the rest. A field the network does not have is null, and facts only that network has go under extra. Here is a real TikTok answer from /v1/tiktok/user_detail, trimmed:

GET /v1/tiktok/user_detail?handle=flighthouse
{
  "data": {
    "id": "24645153",
    "username": "flighthouse",
    "full_name": "flighthouse",
    "biography": "New episodes daily! 🕺\nbusiness@flight.house",
    "followers": 28796800,
    "following": 1334,
    "posts": 6382,
    "is_verified": true,
    "is_private": false,
    "external_url": null,
    "business_email": null,
    "extra": {
      "sec_uid": "MS4wLjABAAAAnEkPI9XFOsqCQsqG7-JvND26SkmF2tHOSrDVR5abC0k",
      "heart_count": 2641246983,
      "region": null
    }
  },
  "meta": {
    "source": "live",
    "fetched_at": "2026-07-12T16:03:16.146109+00:00",
    "cost": "$0.0005",
    "request_id": "req_5c5ab01bcb83c669903072760ebadb25"
  }
}

And a real Douyin answer from /v1/douyin/user_profile, trimmed. The top-level fields are the same, and only extra differs:

GET /v1/douyin/user_profile?sec_uid=...
{
  "data": {
    "id": "97523645652",
    "username": "nishuihan163",
    "full_name": "网易逆水寒",
    "followers": 2924823,
    "following": 186,
    "posts": 3684,
    "is_verified": true,
    "is_private": false,
    "external_url": null,
    "business_email": null,
    "extra": {
      "sec_uid": "MS4wLjABAAAAsO7ytzQSxOjL9tqK5sqrA7E8-VjwYj_2TbObDS_ZOb4",
      "total_favorited": 77011726,
      "favoriting_count": 0
    }
  },
  "meta": {
    "source": "live",
    "fetched_at": "2026-11-08T11:56:13.394597+00:00",
    "cost": "$0.0005",
    "request_id": "req_7e84831485054d16e38aa3bb3513d249"
  }
}

The TikTok bio holds an email while business_email is null. A profile read returns what the page shows, and the contact finder is the call that looks for an email in bios, links and websites.

Make your first call

Create an account, top up from $1 and copy a key from the dashboard. Put it in VIREV_API_KEY and send it as a Bearer token. This curl reads one TikTok profile through the TikTok profile API:

shell
curl "https://api.virev.ai/v1/tiktok/user_detail?handle=flighthouse" \
  -H "Authorization: Bearer $VIREV_API_KEY"

Read one brand on several networks in Python

Because every profile has the same fields, one loop reads a brand everywhere it posts. The script below calls the Instagram profile API (/v1/instagram/web_profile_info), the TikTok profile API (/v1/tiktok/user_detail), the YouTube channel API (/v1/youtube/channel), the Facebook page API (/v1/facebook/profile) and the LinkedIn company API (/v1/linkedin/company). Five reads cost $0.0025.

one_brand.py
import os

import requests

BASE = "https://api.virev.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"}

READS = [
    ("/v1/instagram/web_profile_info", {"handle": "nike"}),
    ("/v1/tiktok/user_detail", {"handle": "nike"}),
    ("/v1/youtube/channel", {"handle": "nike"}),
    ("/v1/facebook/profile", {"handle": "nike"}),
    ("/v1/linkedin/company", {"handle": "nike"}),
]

for path, params in READS:
    res = requests.get(BASE + path, params=params, headers=HEADERS)
    body = res.json()
    if res.status_code != 200:
        print(path, res.status_code, body["error"]["code"])
        continue
    profile = body["data"]
    print(f"{path}: {profile['full_name']}, {profile['followers']} followers, cost {body['meta']['cost']}")

An error answers { "error": { "code", "message", "request_id" } } with a stable code, such as not_found or account_unavailable for a private Instagram account, and costs nothing. On 429 rate_limit_exceeded, wait for the Retry-After header.

Walk posts, videos and comments with a cursor

List endpoints return Page[Post] or Page[Account]: items, next_cursor, has_more and stop_reason. With max_pages=1 you get one page back at once with HTTP 200. Here is a real page from the TikTok user videos API, /v1/tiktok/item_list, cut to one of its items:

GET /v1/tiktok/item_list?handle=nike&max_pages=1
{
  "data": {
    "items": [
      {
        "id": "7695069640657079565",
        "taken_at": "2026-10-10T16:00:43+00:00",
        "kind": "video",
        "caption": "Snowball fight ready",
        "likes": 1419,
        "comments": 41,
        "views": 45900,
        "video_duration": 28,
        "owner": {
          "username": "nike",
          "is_verified": true
        },
        "extra": {
          "url": "https://www.tiktok.com/@nike/video/7695069640657079565"
        }
      }
    ],
    "next_cursor": "eyJjdXJzb3IiOiIxNzgxNDA3OTcyNzA5Iiwib3AiOiJpdGVtX2xpc3QifQ",
    "has_more": true,
    "stop_reason": "pages"
  },
  "meta": {
    "source": "live",
    "fetched_at": "2026-10-12T13:42:50.080320+00:00",
    "cost": "$0.0005",
    "request_id": "req_c57bc898ef47b9ce328001f733dac433"
  }
}

Send next_cursor back as cursor until has_more is false. Other list endpoints, such as /v1/youtube/channel_videos, /v1/douyin/aweme_post and /v1/instagram/user_feed, take the same max_pages and cursor controls, so the loop works for them too. TikTok returns videos newest first, so the loop below skips pinned videos and stops at the first video older than the cutoff date.

walk_posts.py
import os

import requests

BASE = "https://api.virev.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"}


def walk(path, params, oldest):
    cursor = None
    while True:
        page_params = {**params, "max_pages": 1}
        if cursor:
            page_params["cursor"] = cursor
        res = requests.get(BASE + path, params=page_params, headers=HEADERS)
        res.raise_for_status()
        data = res.json()["data"]
        for post in data["items"]:
            if post.get("is_pinned"):
                continue
            if post["taken_at"] < oldest:
                return
            yield post
        if not data["has_more"]:
            return
        cursor = data["next_cursor"]


for video in walk("/v1/tiktok/item_list", {"handle": "nike"}, "2026-11-01"):
    print(video["taken_at"], video["views"], video["caption"][:60])

Long walks run as jobs

Leave out max_pages, or send -1 to read every page, and the call answers HTTP 202 with a durable job instead. You poll its status_url, read results_url, and pay once when it completes. Polls and downloads are free. The Instagram followers scraper guide shows a full job loop.

Run thousands of handles with the batch API

POST /v1/batch/trigger takes an operation id such as tiktok.user_detail and a JSON array of up to 10,000 rows, each row the query the single call takes. Trigger, /v1/batch/progress/{snapshot_id} and /v1/batch/snapshot/{snapshot_id} are free, and each row bills its single-call price as it runs, so 1,000 TikTok profiles cost $0.50. Failed rows are free. The batch API page has every option, including CSV output and a webhook.

batch_profiles.py
import os
import time

import requests

BASE = "https://api.virev.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"}

handles = ["nike", "adidas", "puma"]
res = requests.post(
    f"{BASE}/v1/batch/trigger",
    params={"operation": "tiktok.user_detail", "format": "csv"},
    json=[{"handle": h} for h in handles],
    headers=HEADERS,
)
res.raise_for_status()
snapshot_id = res.json()["data"]["snapshot_id"]

while True:
    job = requests.get(f"{BASE}/v1/batch/progress/{snapshot_id}", headers=HEADERS).json()["data"]
    if job["status"] in ("ready", "failed", "canceled"):
        break
    time.sleep(10)

csv_text = requests.get(f"{BASE}/v1/batch/snapshot/{snapshot_id}", headers=HEADERS).text
with open("tiktok_profiles.csv", "w", encoding="utf-8") as f:
    f.write(csv_text)
print(job["status"], job["rows_ready"], "rows,", job["cost"])

Stored reads and the 24-hour cache

Live reads take cached=auto, cache_only or live. The default auto serves a read saved in the last 24 hours for the same arguments and fetches otherwise. cache_only never contacts the network and answers 404 not_cached when nothing is saved. Paths with /stored/ in them, such as /v1/instagram/stored/post or /v1/linkedin/stored/company, read only our database, so a miss is a 404 that is not billed and starts no crawl.

Find creators and their emails across networks

Two calls work on the stored index instead of one network. POST /v1/creators/search (influencer collab search API) finds creators who worked with a brand, filtered by followers, niche, country and engagement, for $0.0010 a call. GET /v1/contacts/find-from-instagram/fast (Instagram email finder API) returns the emails, links and phones found for one handle, each with its evidence, for $0.02. TikTok and YouTube have the same finder at /v1/contacts/find-from-tiktok/fast and /v1/contacts/find-from-youtube/fast.

collab_creators.py
import os

import requests

BASE = "https://api.virev.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"}

res = requests.post(
    f"{BASE}/v1/creators/search",
    json={"brandHandles": ["glossier"], "collabSince": "now-90d", "sortBy": "followers"},
    headers=HEADERS,
)
res.raise_for_status()
for creator in res.json()["data"]["creators"]:
    print(creator["platform"], creator["username"], creator["followers"], creator["lastCollabAt"])

What the API does not do

  • It reads public data only, so a private, hidden or restricted Instagram account answers 403 and is not charged.
  • It does not post, like or follow.
  • The one write is Instagram DM outreach, at $0.05 a call.
  • It does not return the private analytics an account owner sees, such as reach or audience demographics from Instagram Insights.
  • Each signed-in reader reads at most 19 Instagram follower and following pages in any 24 hours, so a long follower list takes days.
  • X, Threads and Bluesky have single reads under the web scraping API, such as /v1/crawl/x/tweet at $0.0005, and no full hub yet.

Read your first profile on every network

Create an account, top up from $1 and run the five-network script above for $0.0025.

Get your API key →