Tweets
Get Tweet
Get a single tweet by ID.
GET
/
twitter
/
v1
/
tweets
/
{id}
Get Tweet
curl --request GET \
--url https://api.openbits.ai/twitter/v1/tweets/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.openbits.ai/twitter/v1/tweets/{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://api.openbits.ai/twitter/v1/tweets/{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.openbits.ai/twitter/v1/tweets/{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://api.openbits.ai/twitter/v1/tweets/{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://api.openbits.ai/twitter/v1/tweets/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openbits.ai/twitter/v1/tweets/{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{
"data": {
"id": "1890000000000000001",
"text": "The future is electric",
"authorId": "44196397",
"createdAt": "2026-03-20T14:30:00.000Z",
"url": "https://x.com/elonmusk/status/1890000000000000001",
"language": "en",
"conversationId": "1890000000000000001",
"inReplyTo": null,
"metrics": {
"retweets": 15000,
"replies": 8000,
"likes": 120000,
"quotes": 3000,
"views": 50000000,
"bookmarks": 5000
},
"entities": {
"hashtags": [],
"urls": [],
"mentions": []
},
"media": [],
"quotedTweetId": null,
"retweetedTweetId": null
},
"meta": {
"requestId": "clxyz123abc",
"cached": false
}
}
Cost: 100 credits per call
Parameters
string
required
The numeric ID. Example:
1234567890.Response
Tweet
Show Tweet
Show Tweet
string
Tweet ID.
string
Full tweet text.
string
ID of the tweet author.
string
Timestamp (ISO 8601).
string
Permalink URL to the tweet.
string | null
Detected language code.
string | null
ID of the conversation thread.
object | null
{ tweetId, userId } if this is a reply, otherwise null.object
object
array
string | null
ID of quoted tweet.
string | null
ID of retweeted tweet.
object
{
"data": {
"id": "1890000000000000001",
"text": "The future is electric",
"authorId": "44196397",
"createdAt": "2026-03-20T14:30:00.000Z",
"url": "https://x.com/elonmusk/status/1890000000000000001",
"language": "en",
"conversationId": "1890000000000000001",
"inReplyTo": null,
"metrics": {
"retweets": 15000,
"replies": 8000,
"likes": 120000,
"quotes": 3000,
"views": 50000000,
"bookmarks": 5000
},
"entities": {
"hashtags": [],
"urls": [],
"mentions": []
},
"media": [],
"quotedTweetId": null,
"retweetedTweetId": null
},
"meta": {
"requestId": "clxyz123abc",
"cached": false
}
}
Was this page helpful?
⌘I
Get Tweet
curl --request GET \
--url https://api.openbits.ai/twitter/v1/tweets/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.openbits.ai/twitter/v1/tweets/{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://api.openbits.ai/twitter/v1/tweets/{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.openbits.ai/twitter/v1/tweets/{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://api.openbits.ai/twitter/v1/tweets/{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://api.openbits.ai/twitter/v1/tweets/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openbits.ai/twitter/v1/tweets/{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{
"data": {
"id": "1890000000000000001",
"text": "The future is electric",
"authorId": "44196397",
"createdAt": "2026-03-20T14:30:00.000Z",
"url": "https://x.com/elonmusk/status/1890000000000000001",
"language": "en",
"conversationId": "1890000000000000001",
"inReplyTo": null,
"metrics": {
"retweets": 15000,
"replies": 8000,
"likes": 120000,
"quotes": 3000,
"views": 50000000,
"bookmarks": 5000
},
"entities": {
"hashtags": [],
"urls": [],
"mentions": []
},
"media": [],
"quotedTweetId": null,
"retweetedTweetId": null
},
"meta": {
"requestId": "clxyz123abc",
"cached": false
}
}