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.
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",
"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
- Get a free API key: 5,000 free credits for 21 days, no card.
- Send any X page URL with
recipe=xto the Scrape API (the call). - 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
| 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-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'
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,
)
result = r.json()["result"]
print(result["title"], result["followers"], result["posts"], result["following"])
# Example output: Elon Musk 241.4M 111.9K posts 1,423
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 },
});
const { result } = await res.json();
console.log(result.title, result.followers, result.posts, result.following);
// Example output: Elon Musk 241.4M 111.9K posts 1,423
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
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.
Related recipes
LinkedInSearch results, Detail page, Profile · 5 credits
InstagramProfile · 5 credits
TikTokProfile · 5 credits
YouTubeSearch results, Detail page · 5 credits
RedditSearch results · 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 21 days. No card.