Tweet Details
curl --request GET \
--url https://api.example.com/api/v1/scrape/twitter/tweet \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/scrape/twitter/tweet"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/scrape/twitter/tweet', 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://api.example.com/api/v1/scrape/twitter/tweet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.example.com/api/v1/scrape/twitter/tweet"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/scrape/twitter/tweet")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/scrape/twitter/tweet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyTwitter Scraper
Tweet Details
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.
GET
/
api
/
v1
/
scrape
/
twitter
/
tweet
Tweet Details
curl --request GET \
--url https://api.example.com/api/v1/scrape/twitter/tweet \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/scrape/twitter/tweet"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/scrape/twitter/tweet', 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://api.example.com/api/v1/scrape/twitter/tweet",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.example.com/api/v1/scrape/twitter/tweet"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/scrape/twitter/tweet")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/scrape/twitter/tweet")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Tweet URL |
trim | boolean | No | Set to true for a trimmed down version of the response |
Response Example
{
"success": true,
"data": {
"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"
}
}
}
Last modified on September 21, 2026

