Twitter Post Detail API (V1)
Retrieve the full detail of an X (Twitter) post identified by its tweet ID. Supply a tweet ID. Sample fields include authors and creation times. Use it in content discovery, monitoring, or research. The GET request schema also lists tweetId.
- Selected price
- $0.015385 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Twitter Post Detail API (V1)
Prepare your request, then continue with your agent.
Selected price
$0.015385 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
codeintegerdataobjectauthorobjectblue_verifiedbooleanimagestringnamestringrest_idstringscreen_namestringsub_countintegerverificationnull
bookmarksintegerconversation_controlobjectpolicynull
conversation_idstringcreated_atstringdisplay_textstringentitiesobjecthashtagsunknown[]mediaobject[]display_urlstringexpanded_urlstringext_media_availabilityobjectstatusstring
featuresobjectlargeobjectfacesunknown[]
mediumobjectfacesunknown[]
origobjectfacesunknown[]
smallobjectfacesunknown[]
id_strstringindicesinteger[]media_keystringmedia_resultsobjectresultobjectmedia_keystring
media_url_httpsstringoriginal_infoobjectfocus_rectsobject[]hintegerwintegerxintegeryinteger
heightintegerwidthinteger
sizesobjectlargeobjecthintegerresizestringwinteger
mediumobjecthintegerresizestringwinteger
smallobjecthintegerresizestringwinteger
thumbobjecthintegerresizestringwinteger
typestringurlstring
symbolsunknown[]timestampsunknown[]urlsunknown[]user_mentionsunknown[]
idstringin_reply_to_screen_namenullin_reply_to_status_id_strnullin_reply_to_user_id_strnullinitial_tweetsnulllangstringlikesintegermediaobjectphotoobject[]idstringmedia_url_httpsstring
quotesintegerrepliesintegerreply_tonullretweetsintegersensitivebooleanstatusstringtextstringviewsstring
messagenullrecordTimenull
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
code?: number;
data?: {
author?: {
blue_verified?: boolean;
image?: string;
name?: string;
rest_id?: string;
screen_name?: string;
sub_count?: number;
verification?: null;
};
bookmarks?: number;
conversation_control?: {
policy?: null;
};
conversation_id?: string;
created_at?: string;
display_text?: string;
entities?: {
hashtags?: Array<unknown>;
media?: Array<{
display_url?: string;
expanded_url?: string;
ext_media_availability?: {
status?: string;
};
features?: {
large?: {
faces?: Array<unknown>;
};
medium?: {
faces?: Array<unknown>;
};
orig?: {
faces?: Array<unknown>;
};
small?: {
faces?: Array<unknown>;
};
};
id_str?: string;
indices?: Array<number>;
media_key?: string;
media_results?: {
result?: {
media_key?: string;
};
};
media_url_https?: string;
original_info?: {
focus_rects?: Array<{
h?: number;
w?: number;
x?: number;
y?: number;
}>;
height?: number;
width?: number;
};
sizes?: {
large?: {
h?: number;
resize?: string;
w?: number;
};
medium?: {
h?: number;
resize?: string;
w?: number;
};
small?: {
h?: number;
resize?: string;
w?: number;
};
thumb?: {
h?: number;
resize?: string;
w?: number;
};
};
type?: string;
url?: string;
}>;
symbols?: Array<unknown>;
timestamps?: Array<unknown>;
urls?: Array<unknown>;
user_mentions?: Array<unknown>;
};
id?: string;
in_reply_to_screen_name?: null;
in_reply_to_status_id_str?: null;
in_reply_to_user_id_str?: null;
initial_tweets?: null;
lang?: string;
likes?: number;
media?: {
photo?: Array<{
id?: string;
media_url_https?: string;
}>;
};
quotes?: number;
replies?: number;
reply_to?: null;
retweets?: number;
sensitive?: boolean;
status?: string;
text?: string;
views?: string;
};
message?: null;
recordTime?: null;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
justoneapiCurrent Twitter Post Detail API (V1) · GET · View API reference | $0.015385 / call | — | —successP50— |
- Unit price
- $0.015385
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
Total $1.5385
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/justoneapi/api/twitter/get-post-detail/v1- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/justoneapi/api/twitter/get-post-detail/v1?tweetId=%3CREPLACE_TWEETID%3E' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
tweetId | URL query parametersquery | string | Yes | The unique identifier of the X (Twitter) post. |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"code": 0,
"data": {
"author": {
"blue_verified": true,
"image": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg",
"name": "Elon Musk",
"rest_id": "44196397",
"screen_name": "elonmusk",
"sub_count": 241521746,
"verification": null
},
"bookmarks": 6544,
"conversation_control": {
"policy": null
},
"conversation_id": "1808168603721650364",
"created_at": "Tue Jul 02 15:59:23 +0000 2024",
"display_text": "The New York Times is attacking *your* freedom of speech!",
"entities": {
"hashtags": [],
"media": [
{
"display_url": "pic.x.com/TRIa13TWdY",
"expanded_url": "https://x.com/elonmusk/status/1808168603721650364/photo/1",
"ext_media_availability": {
"status": "Available"
},
"features": {
"large": {
"faces": []
},
"medium": {
"faces": []
},
"orig": {
"faces": []
},
"small": {
"faces": []
}
},
"id_str": "1808168600894689280",
"indices": [
58,
81
],
"media_key": "3_1808168600894689280",
"media_results": {
"result": {
"media_key": "3_1808168600894689280"
}
},
"media_url_https": "https://pbs.twimg.com/media/GRfnwy5X0AAwIK2.jpg",
"original_info": {
"focus_rects": [
{
"h": 355,
"w": 634,
"x": 20,
"y": 0
},
{
"h": 355,
"w": 355,
"x": 160,
"y": 0
},
{
"h": 355,
"w": 311,
"x": 182,
"y": 0
},
{
"h": 355,
"w": 178,
"x": 248,
"y": 0
},
{
"h": 355,
"w": 712,
"x": 0,
"y": 0
}
],
"height": 355,
"width": 712
},
"sizes": {
"large": {
"h": 355,
"resize": "fit",
"w": 712
},
"medium": {
"h": 355,
"resize": "fit",
"w": 712
},
"small": {
"h": 339,
"resize": "fit",
"w": 680
},
"thumb": {
"h": 150,
"resize": "crop",
"w": 150
}
},
"type": "photo",
"url": "https://t.co/TRIa13TWdY"
}
],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"id": "1808168603721650364",
"in_reply_to_screen_name": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id_str": null,
"initial_tweets": null,
"lang": "en",
"likes": 282259,
"media": {
"photo": [
{
"id": "1808168600894689280",
"media_url_https": "https://pbs.twimg.com/media/GRfnwy5X0AAwIK2.jpg"
}
]
},
"quotes": 3899,
"replies": 18581,
"reply_to": null,
"retweets": 52128,
"sensitive": false,
"status": "active",
"text": "The New York Times is attacking *your* freedom of speech! https://t.co/TRIa13TWdY",
"views": "53722090"
},
"message": null,
"recordTime": null
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Twitter Post Detail API (V1)
Retrieve the full detail of an X (Twitter) post identified by its tweet ID. Supply a tweet ID. Sample fields include authors and creation times. Use it in content discovery, monitoring, or research. The GET request schema also lists tweetId.
Documentation: https://openany.si/apis/19b7b264-0b6a-4007-8fd0-f4152104de94
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/justoneapi/api/twitter/get-post-detail/v1
Price: $0.015385 / call
Provider: justoneapi
Contract revision: 4
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/justoneapi/api/twitter/get-post-detail/v1?tweetId=%3CREPLACE_TWEETID%3E' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
```
## API contract
```json
{
"resource_type": "api",
"name": "Twitter Post Detail API (V1)",
"endpoint": "https://api.openany.si/v1/agent-apis/justoneapi/api/twitter/get-post-detail/v1",
"method": "GET",
"content_type": "none",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "The unique identifier of the X (Twitter) post.",
"location": "query",
"name": "tweetId",
"nullable": false,
"required": true,
"type": "string"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "15385",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example · Historical response; independent request temp",
"request": {
"body": null,
"headers": {},
"path": {},
"query": {
"tweetId": "<REPLACE_TWEETID>"
}
},
"response_body": {
"code": 0,
"data": {
"author": {
"blue_verified": true,
"image": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg",
"name": "Elon Musk",
"rest_id": "44196397",
"screen_name": "elonmusk",
"sub_count": 241521746,
"verification": null
},
"bookmarks": 6544,
"conversation_control": {
"policy": null
},
"conversation_id": "1808168603721650364",
"created_at": "Tue Jul 02 15:59:23 +0000 2024",
"display_text": "The New York Times is attacking *your* freedom of speech!",
"entities": {
"hashtags": [],
"media": [
{
"display_url": "pic.x.com/TRIa13TWdY",
"expanded_url": "https://x.com/elonmusk/status/1808168603721650364/photo/1",
"ext_media_availability": {
"status": "Available"
},
"features": {
"large": {
"faces": []
},
"medium": {
"faces": []
},
"orig": {
"faces": []
},
"small": {
"faces": []
}
},
"id_str": "1808168600894689280",
"indices": [
58,
81
],
"media_key": "3_1808168600894689280",
"media_results": {
"result": {
"media_key": "3_1808168600894689280"
}
},
"media_url_https": "https://pbs.twimg.com/media/GRfnwy5X0AAwIK2.jpg",
"original_info": {
"focus_rects": [
{
"h": 355,
"w": 634,
"x": 20,
"y": 0
},
{
"h": 355,
"w": 355,
"x": 160,
"y": 0
},
{
"h": 355,
"w": 311,
"x": 182,
"y": 0
},
{
"h": 355,
"w": 178,
"x": 248,
"y": 0
},
{
"h": 355,
"w": 712,
"x": 0,
"y": 0
}
],
"height": 355,
"width": 712
},
"sizes": {
"large": {
"h": 355,
"resize": "fit",
"w": 712
},
"medium": {
"h": 355,
"resize": "fit",
"w": 712
},
"small": {
"h": 339,
"resize": "fit",
"w": 680
},
"thumb": {
"h": 150,
"resize": "crop",
"w": 150
}
},
"type": "photo",
"url": "https://t.co/TRIa13TWdY"
}
],
"symbols": [],
"timestamps": [],
"urls": [],
"user_mentions": []
},
"id": "1808168603721650364",
"in_reply_to_screen_name": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id_str": null,
"initial_tweets": null,
"lang": "en",
"likes": 282259,
"media": {
"photo": [
{
"id": "1808168600894689280",
"media_url_https": "https://pbs.twimg.com/media/GRfnwy5X0AAwIK2.jpg"
}
]
},
"quotes": 3899,
"replies": 18581,
"reply_to": null,
"retweets": 52128,
"sensitive": false,
"status": "active",
"text": "The New York Times is attacking *your* freedom of speech! https://t.co/TRIa13TWdY",
"views": "53722090"
},
"message": null,
"recordTime": null
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example · Historical response; independent request temp
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
tweetId- The unique identifier of the X (Twitter) post.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/justoneapi/api/twitter/get-post-detail/v1?tweetId=%3CREPLACE_TWEETID%3E' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Sample response · Documented HTTP 200
Sample response{ "code": 0, "data": { "author": { "blue_verified": true, "image": "https://pbs.twimg.com/profile_images/2103567689515954176/aR-Kjpp4_normal.jpg", "name": "Elon Musk", "rest_id": "44196397", "screen_name": "elonmusk", "sub_count": 241521746, "verification": null }, "bookmarks": 6544, "conversation_control": { "policy": null }, "conversation_id": "1808168603721650364", "created_at": "Tue Jul 02 15:59:23 +0000 2024", "display_text": "The New York Times is attacking *your* freedom of speech!", "entities": { "hashtags": [], "media": [ { "display_url": "pic.x.com/TRIa13TWdY", "expanded_url": "https://x.com/elonmusk/status/1808168603721650364/photo/1", "ext_media_availability": { "status": "Available" }, "features": { "large": { "faces": [] }, "medium": { "faces": [] }, "orig": { "faces": [] }, "small": { "faces": [] } }, "id_str": "1808168600894689280", "indices": [ 58, 81 ], "media_key": "3_1808168600894689280", "media_results": { "result": { "media_key": "3_1808168600894689280" } }, "media_url_https": "https://pbs.twimg.com/media/GRfnwy5X0AAwIK2.jpg", "original_info": { "focus_rects": [ { "h": 355, "w": 634, "x": 20, "y": 0 }, { "h": 355, "w": 355, "x": 160, "y": 0 }, { "h": 355, "w": 311, "x": 182, "y": 0 }, { "h": 355, "w": 178, "x": 248, "y": 0 }, { "h": 355, "w": 712, "x": 0, "y": 0 } ], "height": 355, "width": 712 }, "sizes": { "large": { "h": 355, "resize": "fit", "w": 712 }, "medium": { "h": 355, "resize": "fit", "w": 712 }, "small": { "h": 339, "resize": "fit", "w": 680 }, "thumb": { "h": 150, "resize": "crop", "w": 150 } }, "type": "photo", "url": "https://t.co/TRIa13TWdY" } ], "symbols": [], "timestamps": [], "urls": [], "user_mentions": [] }, "id": "1808168603721650364", "in_reply_to_screen_name": null, "in_reply_to_status_id_str": null, "in_reply_to_user_id_str": null, "initial_tweets": null, "lang": "en", "likes": 282259, "media": { "photo": [ { "id": "1808168600894689280", "media_url_https": "https://pbs.twimg.com/media/GRfnwy5X0AAwIK2.jpg" } ] }, "quotes": 3899, "replies": 18581, "reply_to": null, "retweets": 52128, "sensitive": false, "status": "active", "text": "The New York Times is attacking *your* freedom of speech! https://t.co/TRIa13TWdY", "views": "53722090" }, "message": null, "recordTime": null }