Docs · X (Twitter) API
X (Twitter) API
Tweets, profiles and recent posts from any public X account.
Overview
Read public X (Twitter) the way a logged-out visitor sees x.com: one tweet with its full engagement counts and media, an account's profile with exact follower numbers, and an account's recent tweets. Useful for social listening, creator and competitor research, and tracking how posts perform. Protected accounts' tweets and age-restricted tweets need a login, so they return 404 not_found.
Source: x.com.
Endpoints
Call it
Each endpoint is a web address. Request it with GET, put your API key in the x-api-key header, and you get JSON back. For example, Tweet:
curl "https://api.lurkapi.com/v1/twitter/tweet?url=https%3A%2F%2Fsiteproxy.ruqli.workers.dev%3A443%2Fhttps%2Fx.com%2FNASA%2Fstatus%2F2104593672624886205" \-H "x-api-key: YOUR_API_KEY"Use it in Claude
Connect LurkAPI to Claude and ask in plain English. Each endpoint is a tool Claude can call:
| Tool | Endpoint |
|---|---|
twitter_tweet | Tweet |
twitter_profile | Profile |
twitter_user_tweets | User tweets |
From the blog
All posts
· 3 min read
How to scrape Twitter and social media like an API
One GET request, one JSON schema across X, Instagram, TikTok, YouTube, Reddit and LinkedIn. Clean data starting at $0.59 per 1,000 calls.

· 5 min read
Social media API benchmark: 1,000 live calls, timed and priced
1,000 live calls across Instagram, TikTok, X, YouTube and Reddit: 993 returned data in 0.73 s at the median, at $0.06 per 1,000 results. Script and rows inside.

· 4 min read
Apify Instagram, TikTok and Twitter scrapers: cost per 1,000
Apify charges $2.30 per 1,000 Instagram posts and $0.40 per 1,000 tweets. LurkAPI returns the same data for $0.08 and $0.05.