X Post Details API
Get X Post Details via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Compare 5 implementations (anyapi, JustOneAPI, LiteScrape and ScrapeCreators), pass parameters such as url, and retrieve structured data including identifier, text, returned author handle field, returned author id field, and returned author image field for content research and account lookup, and integration reference.
- Selected price
- $0.015385 / callPublished pricing
- Sellers / APIs
- 5 / 5
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
X Post Details API
Prepare your request, then continue with your agent.
Selected price
$0.015385 / call
- Provider
- API
- Pricing
On this page
Overview
X Twitter Post Detail (V1) API
Retrieve the full detail of an X (Twitter) post identified by its tweet ID. Provide tweetId in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | query: tweetId |
| Selected implementation | justoneapi · Twitter Post Detail API (V1) |
| Billing | Follow the selected implementation pricing, billing unit, quantity and charge rules |
What You Can Build
- Content research and account lookup: Keep source records connected to their content and account identifiers.
- Integration reference: Use the selected request format and keep source identifiers with the returned result.
Documented Response Fields
| Field | Meaning |
|---|---|
code |
Business status code |
data.id |
Identifier |
data.status |
Reported status |
data.text |
Text |
data.author.name |
Name |
data.author.blue_verified |
Returned blue verified field |
data.author.image |
Returned image field |
data.author.rest_id |
Returned rest id field |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the supported inputs and set any required query value shown in the template.
- Check the HTTP response and business result before reading optional fields.
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'
Request and Response Examples
The response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.
Published X Twitter Post Detail (V1) API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| Twitter Tweet · POST · View API reference | $0.00022 / call | —Select to load statistics | —successP50— | |
Current Twitter Post Detail API (V1) · GET · View API reference | $0.015385 / call | 0 | —successP50— | |
| X Post · POST · View API reference | $0.00015 / call | —Select to load statistics | —successP50— | |
| Twitter — Tweet Details · GET · View API reference | $0.00188 / call | —Select to load statistics | —successP50— | |
| Twitter: fetch tweet detail (web) · GET · View API reference | $0.001 / call | —Select to load statistics | —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: 5. 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
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.
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
Agent integration
Copy the resource contract without sharing an API key.
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 }