Appearance
Tweet Details
GET /v1/twitter/tweet
Retrieves detailed information about a specific tweet by URL, including the author's profile and engagement metrics. Returns rest_id, full_text, views count, favorite_count, retweet_count, reply_count, bookmark_count, quote_count, created_at, source, and media entities. Supports a trim parameter for a lighter response.
Authentication
All requests require the x-api-key header. Get your key at scrapecreators.com.
Query Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
url | string | yes | Tweet URL | |
trim | boolean | no | Set to true for a trimmed down version of the response | false |
Example Request
curl
bash
curl 'https://api.scrapecreators.com/v1/twitter/tweet?url=<url>' \
-H 'x-api-key: $SCRAPECREATORS_API_KEY'Node / TypeScript
js
const params = new URLSearchParams({ url: '...' });
const res = await fetch(`https://api.scrapecreators.com/v1/twitter/tweet?${params}`, {
headers: { 'x-api-key': process.env.SCRAPECREATORS_API_KEY }
});
const data = await res.json();
console.log(data);Python
python
import os, requests
r = requests.get(
'https://api.scrapecreators.com/v1/twitter/tweet',
headers={'x-api-key': os.environ['SCRAPECREATORS_API_KEY']},
params={'url': '...'},
)
r.raise_for_status()
print(r.json())CLI
bash
scrapecreators twitter tweet --helpExample Response
json
{
"rest_id": "1935730646267158797",
"views": {
"count": "27539",
"state": "EnabledWithCount"
},
"source": "<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App</a>",
"legacy": {
"bookmark_count": 95,
"bookmarked": false,
"created_at": "Thu Jun 19 16:05:24 +0000 2025",
"conversation_id_str": "1935730646267158797",
"display_text_range": [
0
],
"entities": {
"hashtags": [],
"media": [
{
"display_url": "pic.x.com/YywdjQZde8",
"expanded_url": "https://x.com/Austen/status/1935730646267158797/photo/1",
"id_str": "1935730260303069184",
"indices": [
149
],
"media_key": "3_1935730260303069184",
"media_url_https": "https://pbs.twimg.com/media/Gt0YanJWwAA6B80.jpg",
"type": "photo",
"url": "https://t.co/YywdjQZde8",
"ext_media_availability": {
"status": "Available"
},
"allow_download_status": {
"allow_download": true
},
"media_results": {
"result": {
"media_key": "3_1935730260303069184"
}
}
}
],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"extended_entities": {
"media": [
{
"display_url": "pic.x.com/YywdjQZde8",
"expanded_url": "https://x.com/Austen/status/1935730646267158797/photo/1",
"id_str": "1935730260303069184",
"indices": [
149
],
"media_key": "3_1935730260303069184",
"media_url_https": "https://pbs.twimg.com/media/Gt0YanJWwAA6B80.jpg",
"type": "photo",
"url": "https://t.co/YywdjQZde8",
"ext_media_availability": {
"status": "Available"
},
"allow_download_status": {
"allow_download": true
},
"media_results": {
"result": {
"media_key": "3_1935730260303069184"
}
}
}
]
},
"favorite_count": 80,
"favorited": false,
"full_text": "This was created by a Gauntlet AI grad based on a whole lot of experimentation.\n\nOne of the most important things an AI dev can begin to understand. https://t.co/YywdjQZde8",
"is_quote_status": false,
"lang": "en",
"possibly_sensitive": false,
"possibly_sensitive_editable": true,
"quote_count": 3,
"reply_count": 6,
"retweet_count": 5,
"retweeted": false,
"user_id_str": "221838349",
"id_str": "1935730646267158797"
}
}Credits
Most ScrapeCreators endpoints consume 1 credit per successful response. Some heavier endpoints (transcripts, AI-driven enrichment, ad detail lookups) may cost more. Check GET /v1/credit-balance for your remaining balance.
Errors
| Status | Meaning | Action |
|---|---|---|
| 200 | Success. | Use the JSON payload. |
| 400 | Invalid or missing parameter. | Verify required parameters and value format. |
| 401 | Missing or invalid x-api-key. | Pass a valid API key in the header. |
| 402 | Out of credits. | Top up at scrapecreators.com or wait for plan reset. |
| 404 | Resource not found or private. | Confirm the handle, URL, or id and that the resource is public. |
| 429 | Rate limited. | Backoff and retry with exponential delay. |
| 500 | Server error or upstream platform failure. | Retry with backoff; report persistent errors to support. |