X (Twitter) scraper API: profiles as JSON
Send any X (Twitter) page URL with recipe=x and get title, description, image 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 7 days, no card.
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://x.com/elonmusk' \
--data-urlencode 'recipe=x'
{
"result": {
"title": "Elon Musk",
"followers": "241.4M",
"following": "1,421",
"posts": "111.6K posts"
},
"success": true
}
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
| Field | Type | Example |
|---|---|---|
title | text | Elon Musk |
description | URL | https://t.co/ZdBx5WABYx |
image | image URL | https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_4... |
url | URL | https://x.com/elonmusk |
followers | text | 241.4M |
following | number (as text) | 1,421 |
posts | text | 111.6K posts |
Sample answer, validated 2026-11-03
{
"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,421",
"posts": "111.6K 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'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"url": "https://x.com/elonmusk", "recipe": "x"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
print(r.json()["result"])
const params = new URLSearchParams({
url: "https://x.com/elonmusk",
recipe: "x",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
console.log((await res.json()).result);
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 type | Credits a page | Per 1,000, Starter | Per 1,000, Pro |
|---|---|---|---|
| Profile | 5 | $0.82 | $0.50 |
FAQ
What does the X (Twitter) recipe return?
JSON with 7 fields from profile (recipe=x), for example title, description, image, url, followers. 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, proxy_type, wait_for) and it wins over the recipe. The developer guide shows the recipe rules to start from.
Related recipes
LinkedInSearch results, Detail page, Profile · 5 credits
InstagramProfile · 5 credits
TikTokProfile · 5 credits
FacebookSearch results · 5 credits
YouTubeSearch results, Detail page · 5 credits
BlueskyProfile · 5 credits
Logos and names belong to their owners. Ujeebu is not affiliated with X (Twitter).
Get X (Twitter) data as JSON today.
5,000 free credits for 7 days. No card.