Get Tweet Thread Context
curl --request GET \
--url https://api.aisa.one/apis/v1/twitter/tweet/thread_context \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/twitter/tweet/thread_context"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/twitter/tweet/thread_context', 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.aisa.one/apis/v1/twitter/tweet/thread_context",
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.aisa.one/apis/v1/twitter/tweet/thread_context"
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.aisa.one/apis/v1/twitter/tweet/thread_context")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/twitter/tweet/thread_context")
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{
"has_next_page": true,
"msg": "<string>",
"next_cursor": "<string>",
"status": "success",
"tweets": [
{
"author": {
"automatedBy": "<string>",
"canDm": true,
"coverPicture": "<string>",
"createdAt": "<string>",
"description": "<string>",
"favouritesCount": 123,
"followers": 123,
"following": 123,
"hasCustomTimelines": true,
"id": "<string>",
"isAutomated": true,
"isBlueVerified": true,
"isTranslator": true,
"location": "<string>",
"mediaCount": 123,
"message": "<string>",
"name": "<string>",
"pinnedTweetIds": [
"<string>"
],
"possiblySensitive": true,
"profilePicture": "<string>",
"statusesCount": 123,
"type": "<string>",
"unavailable": true,
"unavailableReason": "<string>",
"url": "<string>",
"userName": "<string>",
"verifiedType": "<string>",
"withheldInCountries": [
"<string>"
]
},
"bookmarkCount": 123,
"conversationId": "<string>",
"createdAt": "<string>",
"displayTextRange": [
123
],
"entities": {
"hashtags": [
{
"indices": [
123
],
"text": "<string>"
}
],
"urls": [
{
"display_url": "<string>",
"expanded_url": "<string>",
"indices": [
123
],
"url": "<string>"
}
],
"user_mentions": [
{
"id_str": "<string>",
"name": "<string>",
"screen_name": "<string>"
}
]
},
"id": "<string>",
"inReplyToId": "<string>",
"inReplyToUserId": "<string>",
"inReplyToUsername": "<string>",
"isLimitedReply": true,
"isReply": true,
"lang": "<string>",
"likeCount": 123,
"quoteCount": 123,
"quoted_tweet": "<string>",
"replyCount": 123,
"retweetCount": 123,
"retweeted_tweet": "<string>",
"source": "<string>",
"text": "<string>",
"type": "<string>",
"url": "<string>",
"viewCount": 123
}
]
}Tweet Endpoints
Get Tweet Thread Context
Reconstruct the conversation around a tweet.
GET
https://api.aisa.one
/
apis
/
v1
/
twitter
/
tweet
/
thread_context
Get Tweet Thread Context
curl --request GET \
--url https://api.aisa.one/apis/v1/twitter/tweet/thread_context \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/twitter/tweet/thread_context"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/twitter/tweet/thread_context', 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.aisa.one/apis/v1/twitter/tweet/thread_context",
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.aisa.one/apis/v1/twitter/tweet/thread_context"
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.aisa.one/apis/v1/twitter/tweet/thread_context")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/twitter/tweet/thread_context")
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{
"has_next_page": true,
"msg": "<string>",
"next_cursor": "<string>",
"status": "success",
"tweets": [
{
"author": {
"automatedBy": "<string>",
"canDm": true,
"coverPicture": "<string>",
"createdAt": "<string>",
"description": "<string>",
"favouritesCount": 123,
"followers": 123,
"following": 123,
"hasCustomTimelines": true,
"id": "<string>",
"isAutomated": true,
"isBlueVerified": true,
"isTranslator": true,
"location": "<string>",
"mediaCount": 123,
"message": "<string>",
"name": "<string>",
"pinnedTweetIds": [
"<string>"
],
"possiblySensitive": true,
"profilePicture": "<string>",
"statusesCount": 123,
"type": "<string>",
"unavailable": true,
"unavailableReason": "<string>",
"url": "<string>",
"userName": "<string>",
"verifiedType": "<string>",
"withheldInCountries": [
"<string>"
]
},
"bookmarkCount": 123,
"conversationId": "<string>",
"createdAt": "<string>",
"displayTextRange": [
123
],
"entities": {
"hashtags": [
{
"indices": [
123
],
"text": "<string>"
}
],
"urls": [
{
"display_url": "<string>",
"expanded_url": "<string>",
"indices": [
123
],
"url": "<string>"
}
],
"user_mentions": [
{
"id_str": "<string>",
"name": "<string>",
"screen_name": "<string>"
}
]
},
"id": "<string>",
"inReplyToId": "<string>",
"inReplyToUserId": "<string>",
"inReplyToUsername": "<string>",
"isLimitedReply": true,
"isReply": true,
"lang": "<string>",
"likeCount": 123,
"quoteCount": 123,
"quoted_tweet": "<string>",
"replyCount": 123,
"retweetCount": 123,
"retweeted_tweet": "<string>",
"source": "<string>",
"text": "<string>",
"type": "<string>",
"url": "<string>",
"viewCount": 123
}
]
}Reconstruct the conversation around a tweet. Accepts either a reply or an original tweet and returns the surrounding thread, cursor-paginated. Use this when a tweet lacks context on its own and you need the parent chain to interpret it correctly.
Returns tweets under
Set this endpoint up in your agent →
tweets with has_next_page and next_cursor.
For only the replies below a post use get_twitter_tweet_replies_v2.
First time? Point any MCP client at
https://mcp.aisa.one/mcp — Claude
Code, Codex, Cursor, VS Code and the rest. Authorization is OAuth: the client
opens a browser, you click Allow once, and there is no key to paste. Your
agent then reaches every endpoint through a few meta tools: search,
list_categories, get_details and batch_quote are free, batch_use is
billed per call. Setup per client is in
Connect via MCP; the live tool list and what each call
costs are on aisa.one/mcp.Request contract
- Method and path: GET /apis/v1/twitter/tweet/thread_context
- Availability: enabled
- Request URL template: https://api.aisa.one/apis/v1/twitter/tweet/thread_context
- cursor: query; optional
- tweetId: query; optional
- Runtime facts: 2c7f0e92fe7bc266f2f532478b278a83381f4b2e4885f901fc233de0bd00a698
{
"operationId": "get_twitter_tweet_thread_context",
"method": "GET",
"path": "/apis/v1/twitter/tweet/thread_context",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"in": "query",
"name": "cursor",
"required": false,
"schema": {
"type": "string"
}
},
{
"in": "query",
"name": "tweetId",
"required": false,
"schema": {
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"x-aisa-pricing": {
"cost_contract": "response_count",
"customer_multiplier": 1.0,
"customer_pricing": "provider_cost_multiplier",
"default_request_estimate_usd": 0.00555,
"estimate_source": "profile_seed",
"evidence_source": "response_body",
"minimum_cost_usd": 0.00015
},
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based billing; Default request estimate: $0.00555 USD (not a fixed price). Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.- Default request reference estimate (USD): 0.00555
- Cost contract: response_count
- Published reference multiplier: 1.0
- Settlement evidence source: response_body
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.