TweetRead extracts tweet text and linked article content from any X post — returning clean, structured JSON your agents can actually use.
// Output will appear here // Try: https://x.com/OpenAI/status/...
curl -X GET \ "https://tweetread.vercel.app/api/extract?url=URL" \ -H "x-api-key: YOUR_API_KEY"
/api/extract| Parameter | Type | Where | Description |
|---|---|---|---|
| url | string | query / body | X post URL or any article URL to extract |
| api_key | string | header / query | Via x-api-key, Authorization: Bearer, or ?api_key= |
| Field | Type | Description |
|---|---|---|
| data.source | string | The original URL passed in |
| data.type | enum | "tweet" | "article" | "tweet+article" |
| data.tweet.text | string | The tweet body text |
| data.tweet.author | string | Display name of the author |
| data.tweet.authorHandle | string | Twitter handle |
| data.tweet.linkedUrls | string[] | External URLs found in the tweet |
| data.article.title | string | Article headline |
| data.article.text | string | Full article body (up to 8,000 chars) |
| data.article.domain | string | Source domain (e.g. "techcrunch.com") |
| data.wordCount | number | Total word count of extracted content |
| data.extractedAt | string | ISO 8601 timestamp of extraction |
| data.errors | string[] | Non-fatal errors (e.g. article blocked) |