Get tweet by ID
curl --request GET \
--url https://api.utrack.club/v1/data/tweet/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.utrack.club/v1/data/tweet/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.utrack.club/v1/data/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://api.utrack.club/v1/data/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 => [
"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.utrack.club/v1/data/tweet/{id}"
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.utrack.club/v1/data/tweet/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.utrack.club/v1/data/tweet/{id}")
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_body{
"id": "1234567890123456789",
"type": "TWEET",
"created_at": 1609459200000,
"author": {
"id": "987654321",
"handle": "example_user",
"private": false,
"verified": true,
"sensitive": false,
"restricted": false,
"joined_at": 1262304000000,
"profile": {
"name": "Example User",
"location": "San Francisco, CA",
"avatar": "https://pbs.twimg.com/profile_images/example.jpg",
"banner": "https://pbs.twimg.com/profile_banners/example.jpg",
"pinned": [],
"url": {
"name": "example.com",
"url": "https://example.com",
"tco": "https://t.co/example"
},
"description": {
"text": "Example bio text",
"urls": []
}
},
"metrics": {
"likes": 100,
"media": 50,
"tweets": 1000,
"friends": 200,
"followers": 5000,
"following": 300
}
},
"subtweet": null,
"reply": null,
"quoted": null,
"body": {
"text": "This is an example tweet",
"urls": [],
"mentions": [],
"components": []
},
"media": {
"images": [],
"videos": [],
"thumbnails": [],
"proxied": null
},
"grok": null,
"card": null,
"poll": null,
"article": null,
"community": null,
"metrics": {
"likes": 10,
"quotes": 2,
"replies": 5,
"retweets": 3,
"advanced": null
}
}{
"error": "Invalid tweet data"
}{
"status": 401,
"error": "Unauthorized",
"message": "Invalid or missing token in Authorization header"
}{
"error": "Couldn't locate this tweet"
}{
"status": 429,
"error": "Rate Limit Exceeded",
"message": "Rate limit of 5 requests per second exceeded"
}{
"error": "Internal server error"
}Tweets
Get a tweet
Fetches detailed information about a specific tweet by its ID. Returns a parsed TwitterTweet object with author information, media, metrics, and any referenced tweets (replies, quotes, retweets).
When expanded=true, the endpoint returns enhanced data including:
- Complete full text for long-form tweets
- Article content with rich formatting, media, and embedded components (if the tweet contains an article)
- Community information (if the tweet belongs to a community)
- Enhanced structured content
When expanded=false or omitted, returns the standard tweet data format.
GET
/
v1
/
data
/
tweet
/
{id}
Get tweet by ID
curl --request GET \
--url https://api.utrack.club/v1/data/tweet/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.utrack.club/v1/data/tweet/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.utrack.club/v1/data/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://api.utrack.club/v1/data/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 => [
"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.utrack.club/v1/data/tweet/{id}"
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.utrack.club/v1/data/tweet/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.utrack.club/v1/data/tweet/{id}")
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_body{
"id": "1234567890123456789",
"type": "TWEET",
"created_at": 1609459200000,
"author": {
"id": "987654321",
"handle": "example_user",
"private": false,
"verified": true,
"sensitive": false,
"restricted": false,
"joined_at": 1262304000000,
"profile": {
"name": "Example User",
"location": "San Francisco, CA",
"avatar": "https://pbs.twimg.com/profile_images/example.jpg",
"banner": "https://pbs.twimg.com/profile_banners/example.jpg",
"pinned": [],
"url": {
"name": "example.com",
"url": "https://example.com",
"tco": "https://t.co/example"
},
"description": {
"text": "Example bio text",
"urls": []
}
},
"metrics": {
"likes": 100,
"media": 50,
"tweets": 1000,
"friends": 200,
"followers": 5000,
"following": 300
}
},
"subtweet": null,
"reply": null,
"quoted": null,
"body": {
"text": "This is an example tweet",
"urls": [],
"mentions": [],
"components": []
},
"media": {
"images": [],
"videos": [],
"thumbnails": [],
"proxied": null
},
"grok": null,
"card": null,
"poll": null,
"article": null,
"community": null,
"metrics": {
"likes": 10,
"quotes": 2,
"replies": 5,
"retweets": 3,
"advanced": null
}
}{
"error": "Invalid tweet data"
}{
"status": 401,
"error": "Unauthorized",
"message": "Invalid or missing token in Authorization header"
}{
"error": "Couldn't locate this tweet"
}{
"status": 429,
"error": "Rate Limit Exceeded",
"message": "Rate limit of 5 requests per second exceeded"
}{
"error": "Internal server error"
}Authorizations
bearerAuthapiKeyQuery
Query Parameters
Response
Tweet data retrieved successfully
Complete detailed version of a Twitter/X post
