1. Platforms
  2. X (Twitter)

X (Twitter) Scraper API

Pull X (Twitter) profiles, communities, posts and transcripts as JSON. Failed requests are free.

100 free credits. No card needed.

Data

What you get from X (Twitter).

Profiles

Name, bio, links, location, verified status and follower count.

Communities

Name, description, member count and start date.

Posts

Text, publish date, length, views, likes and comment count.

TranscriptsThe spoken words as text, with timestamps and language.
SearchPosts by keyword.

Uses

What you can build with X (Twitter) data.

Check accounts

Check an account's followers and recent posts before you reach out.

Search what was said

Turn videos into text you can search, summarize or give to an AI model.

Track a topic

Search posts by keyword to see what people share about a brand or topic.

Follow communities

Read communities and the posts in them.

Measure engagement

Compare views, likes and comments across posts.

Example

Your first request.

  1. Get a keySign up and get 100 free credits. No card needed.
  2. Send a requestPass a handle, URL or keyword with your key.
  3. Use the JSONThe same shape comes back from every platform.
1import os2import requests34params = {5    "handle": "NASA",6}7res = requests.get(8    "https://api.socialscrape.dev/v1/twitter/profile",9    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10    params=params,11)12body = res.json()1314if body["ok"]:15    print(body["data"])16else:17    print(body["error"]["code"], body["error"]["message"])
200 OKSample response
{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_aa10816824f8fd23e2b1f991",
  "data": {
    "object": "profile",
    "platform": "twitter",
    "id": "11348282",
    "handle": "NASA",
    "name": "NASA",
    "headline": null,
    "url": "https://x.com/NASA",
    "kind": "organization",
    "bio": "Making the seemingly impossible, possible. ✨",
    "avatar_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_400x400.jpg",
    "banner_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
    "verified": true,
    "is_private": false,
    "external_url": "http://www.nasa.gov/"
    ...
  },
  "cursor": null,
  "has_more": null
}

Pricing

Pay only for data you get.

  • A profile1 credit
  • A page of posts or search results1 credit
  • A caption transcript1 credit
  • A failed requestFree

Starter

$13

1,000 credits

$13.00 per 1,000

Get an API key
Most popular

Growth

$55

25,000 credits

$2.20 per 1,000

Get an API key

Scale

$349

230,000 credits

$1.52 per 1,000

Get an API key

Packs never expire. Monthly plans too. See pricing

Reference

Every X (Twitter) endpoint

FAQ

Questions

What does the X (Twitter) API cost?

Most requests cost 1 credit, and transcripts have their own rule; each endpoint page states it. New accounts get 100 free credits. See pricing.

Does it need a X (Twitter) login?

No. You send your SocialScrape key and never a platform password.

Is it live?

Yes. The endpoints are live: built, tested against recorded responses and watched by canaries. Get an API key.