Playground Sign in Start free
Recipe Social and video

X (Twitter) scraper API: profiles as JSON

Send any X (Twitter) page URL with recipe=x and get title, followers, posts and 4 more fields as JSON. No selectors to write, no proxies to pick.

  • 1 page type
  • 7 fields
  • 5 credits a page · $0.50 per 1,000
  • Working · 100% in 7 days

5,000 free credits for 21 days, no card.

recipe=x
curl -G 'https://api.ujeebu.com/scrape' \
  -H "ApiKey: $UJEEBU_API_KEY" \
  --data-urlencode 'url=https://x.com/elonmusk' \
  --data-urlencode 'recipe=x'
200 OK · JSON
{
    "result": {
        "title": "Elon Musk",
        "followers": "241.4M",
        "posts": "111.9K posts",
        "following": "1,423"
    },
    "success": true
}

X API or the page data?

Official API: open

X has an official API (X API v2). Developers sign up in the X developer console and pay per use with prepaid credits to read and write posts, users and other X data. When you need the public page data instead (fields the API does not return, the official rate limits, or no developer key to apply for), the recipe gives it to you.

Source: X API v2 on docs.x.com, checked November 6, 2026.

How to get X data as JSON today

  1. Get a free API key: 5,000 free credits for 21 days, no card.
  2. Send any X page URL with recipe=x to the Scrape API (the call).
  3. Get 7 fields as JSON, 5 credits a page, billed only when the call succeeds.

Ujeebu's X recipe returns title, followers, posts and 4 more fields from any public X page as JSON: send the URL with recipe=x to the Scrape API, 5 credits a page, no X account or partner approval needed.

What you get from X (Twitter)

The fields of each page type and a real sample from our last validation, shortened.

Public pages recipe=x 5 credits a page

FieldTypeExample
titletextElon Musk
descriptionURLhttps://t.co/ZdBx5WABYx
imageimage URLhttps://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_4...
urlURLhttps://x.com/elonmusk
followerstext241.4M
followingnumber (as text)1,421
poststext111.6K posts

Sample answer, validated 2026-11-18

{
    "title": "Elon Musk",
    "description": "https://t.co/ZdBx5WABYx",
    "image": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_400x400.jpg",
    "url": "https://x.com/elonmusk",
    "followers": "241.4M",
    "following": "1,423",
    "posts": "111.9K posts"
}

One call

Send the page URL and the recipe name to the Scrape API. The recipe brings the extract rules and the settings that work on X (Twitter) (JavaScript rendering and a wait for the content).

curl -G 'https://api.ujeebu.com/scrape' \
  -H "ApiKey: $UJEEBU_API_KEY" \
  --data-urlencode 'url=https://x.com/elonmusk' \
  --data-urlencode 'recipe=x'

The answer is {"result": {...}} with the headers Ujb-Recipe and Ujb-Credits. Your own parameters always win over the recipe.

What people build with X (Twitter) data

  • Market research

    Follow public company pages and job postings to see who grows and hires.

    Learn more

Price

Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.

Page typeCredits a pagePer 1,000, StarterPer 1,000, Pro
Profile5$0.82$0.50

See all plans

FAQ

X API vs scraping: which one should I use?

Use the official X API when it returns what you need. Developers sign up in the X developer console and pay per use with prepaid credits to read and write posts, users and other X data. Use the page data when you need what the public page shows: Ujeebu's X recipe returns title, followers, posts and 4 more fields from any public X page as JSON: send the URL with recipe=x to the Scrape API, 5 credits a page, no X account or partner approval needed.

What does the X (Twitter) recipe return?

JSON with 7 fields from profile (recipe=x), for example title, followers, posts, following, description. The answer is {"result": {...}} with the fields shown on this page.

How much does it cost to scrape X (Twitter)?

5 credits a page ($0.50 per 1,000 on Pro, $0.82 on Starter). Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.

Do I need proxies or a headless browser?

No. The recipe brings the settings that work on X (Twitter): JavaScript rendering and a wait for the content. Send only the URL and recipe=x.

What happens when X (Twitter) changes its pages?

We check X (Twitter) every day and re-validate the recipe on real pages every week, then fix it when the site changes. Until a fix is live, the API answers 404 "the recipe has no working version" instead of empty data, and that call is free.

Can I change the fields?

Yes. Send your own extract_rules or any setting (js, wait_for) and it wins over the recipe. The developer guide shows the recipe rules to start from.

Get X (Twitter) data as JSON today.

5,000 free credits for 21 days. No card.