curl --request GET \
--url https://scrapebadger.com/v1/twitter/tweets/tweet/{tweet_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://scrapebadger.com/v1/twitter/tweets/tweet/{tweet_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://scrapebadger.com/v1/twitter/tweets/tweet/{tweet_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scrapebadger.com/v1/twitter/tweets/tweet/{tweet_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/twitter/tweets/tweet/{tweet_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/twitter/tweets/tweet/{tweet_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/twitter/tweets/tweet/{tweet_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "1234567890123456789",
"text": "Hello, world! This is a tweet.",
"created_at": "Wed Oct 10 20:19:24 +0000 2018",
"full_text": "<string>",
"lang": "en",
"user_id": "44196397",
"username": "elonmusk",
"user_name": "Elon Musk",
"favorite_count": 0,
"retweet_count": 0,
"reply_count": 0,
"quote_count": 0,
"view_count": 123,
"bookmark_count": 123,
"favorited": false,
"retweeted": false,
"bookmarked": false,
"possibly_sensitive": false,
"is_quote_status": false,
"is_retweet": false,
"conversation_id": "<string>",
"in_reply_to_status_id": "<string>",
"in_reply_to_user_id": "<string>",
"media": [
{
"media_key": "<string>",
"type": "photo",
"url": "<string>",
"preview_image_url": "<string>",
"width": 123,
"height": 123,
"duration_ms": 123,
"view_count": 123,
"alt_text": "<string>"
}
],
"urls": [
{
"url": "<string>",
"expanded_url": "<string>",
"display_url": "<string>",
"unwound_url": "<string>"
}
],
"hashtags": [
{
"text": "AI",
"indices": [
123
]
}
],
"user_mentions": [
{
"id": "<string>",
"username": "<string>",
"name": "<string>",
"indices": [
123
]
}
],
"poll": {
"id": "<string>",
"voting_status": "open",
"end_datetime": "<string>",
"duration_minutes": 123,
"options": [
{
"position": 123,
"label": "<string>",
"votes": 123
}
]
},
"place": {
"id": "<string>",
"full_name": "San Francisco, CA",
"name": "San Francisco",
"country": "United States",
"country_code": "US",
"place_type": "city"
},
"quoted_status_id": "<string>",
"retweeted_status_id": "<string>",
"edit_tweet_ids": [
"<string>"
],
"editable_until_msecs": 123,
"edits_remaining": 123,
"is_edit_eligible": true,
"has_card": true,
"thumbnail_url": "<string>",
"thumbnail_title": "<string>",
"has_community_notes": true,
"source": "Twitter Web App"
}{
"error": "Invalid or missing API key"
}{
"error": "Insufficient credits"
}{
"error": "Rate limit exceeded. Please retry after a short delay."
}Get Tweet Detail
Fetch detailed information about a single tweet. Returns comprehensive tweet data including author info, engagement stats, media attachments, polls, referenced tweets, and edit history. Use this for deep inspection of individual tweets.
curl --request GET \
--url https://scrapebadger.com/v1/twitter/tweets/tweet/{tweet_id} \
--header 'x-api-key: <api-key>'import requests
url = "https://scrapebadger.com/v1/twitter/tweets/tweet/{tweet_id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://scrapebadger.com/v1/twitter/tweets/tweet/{tweet_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scrapebadger.com/v1/twitter/tweets/tweet/{tweet_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/twitter/tweets/tweet/{tweet_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/twitter/tweets/tweet/{tweet_id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/twitter/tweets/tweet/{tweet_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "1234567890123456789",
"text": "Hello, world! This is a tweet.",
"created_at": "Wed Oct 10 20:19:24 +0000 2018",
"full_text": "<string>",
"lang": "en",
"user_id": "44196397",
"username": "elonmusk",
"user_name": "Elon Musk",
"favorite_count": 0,
"retweet_count": 0,
"reply_count": 0,
"quote_count": 0,
"view_count": 123,
"bookmark_count": 123,
"favorited": false,
"retweeted": false,
"bookmarked": false,
"possibly_sensitive": false,
"is_quote_status": false,
"is_retweet": false,
"conversation_id": "<string>",
"in_reply_to_status_id": "<string>",
"in_reply_to_user_id": "<string>",
"media": [
{
"media_key": "<string>",
"type": "photo",
"url": "<string>",
"preview_image_url": "<string>",
"width": 123,
"height": 123,
"duration_ms": 123,
"view_count": 123,
"alt_text": "<string>"
}
],
"urls": [
{
"url": "<string>",
"expanded_url": "<string>",
"display_url": "<string>",
"unwound_url": "<string>"
}
],
"hashtags": [
{
"text": "AI",
"indices": [
123
]
}
],
"user_mentions": [
{
"id": "<string>",
"username": "<string>",
"name": "<string>",
"indices": [
123
]
}
],
"poll": {
"id": "<string>",
"voting_status": "open",
"end_datetime": "<string>",
"duration_minutes": 123,
"options": [
{
"position": 123,
"label": "<string>",
"votes": 123
}
]
},
"place": {
"id": "<string>",
"full_name": "San Francisco, CA",
"name": "San Francisco",
"country": "United States",
"country_code": "US",
"place_type": "city"
},
"quoted_status_id": "<string>",
"retweeted_status_id": "<string>",
"edit_tweet_ids": [
"<string>"
],
"editable_until_msecs": 123,
"edits_remaining": 123,
"is_edit_eligible": true,
"has_card": true,
"thumbnail_url": "<string>",
"thumbnail_title": "<string>",
"has_community_notes": true,
"source": "Twitter Web App"
}{
"error": "Invalid or missing API key"
}{
"error": "Insufficient credits"
}{
"error": "Rate limit exceeded. Please retry after a short delay."
}Authorizations
Your ScrapeBadger API key. You can find this in your dashboard at https://scrapebadger.com/dashboard/api-keys.
Path Parameters
The unique numeric ID of the tweet.
"1234567890123456789"
Query Parameters
Pagination cursor from a previous response for fetching additional data.
Response
Successfully retrieved tweet details.
Comprehensive tweet data including text, author info, engagement metrics, media, and metadata.
Unique tweet identifier.
"1234567890123456789"
The tweet text content.
"Hello, world! This is a tweet."
Timestamp when the tweet was created.
"Wed Oct 10 20:19:24 +0000 2018"
Full text of the tweet, including extended content beyond 280 characters.
BCP 47 language tag of the tweet content.
"en"
Numeric ID of the tweet author.
"44196397"
Username (screen name) of the tweet author.
"elonmusk"
Display name of the tweet author.
"Elon Musk"
Number of times this tweet has been liked.
Number of times this tweet has been retweeted.
Number of replies to this tweet.
Number of times this tweet has been quoted.
Number of times this tweet has been viewed.
Number of times this tweet has been bookmarked.
Whether the authenticated user has liked this tweet.
Whether the authenticated user has retweeted this tweet.
Whether the authenticated user has bookmarked this tweet.
Whether the tweet is flagged as possibly containing sensitive content.
Whether the tweet is a quote tweet.
Whether the tweet is a retweet.
ID of the conversation thread this tweet belongs to.
ID of the tweet this is a reply to, if applicable.
ID of the user this tweet is replying to.
Media attachments (photos, videos, GIFs).
Show child attributes
Show child attributes
URLs mentioned in the tweet.
Show child attributes
Show child attributes
Hashtags in the tweet.
Show child attributes
Show child attributes
Users mentioned in the tweet.
Show child attributes
Show child attributes
Poll data if the tweet contains a poll.
Show child attributes
Show child attributes
Geographic place associated with the tweet.
Show child attributes
Show child attributes
ID of the quoted tweet, if this is a quote tweet.
ID of the original tweet, if this is a retweet.
List of tweet IDs in the edit chain.
Timestamp (milliseconds) until the tweet can be edited.
Number of remaining edits allowed.
Whether the tweet is eligible for editing.
Whether the tweet has a link preview card.
URL of the link preview thumbnail.
Title of the link preview card.
Whether the tweet has community notes attached.
Client application used to post the tweet.
"Twitter Web App"

