REST (cURL)
curl -X POST https://api.dataxapi.com/v1/x/posts/detail \
-H "Authorization: Bearer $DATAXAPI_API_KEY" \
-H "Idempotency-Key: your-stable-intent-key" \
-H "Content-Type: application/json" \
-d '{"tweet_id":"1808168603721650364"}'x.posts.detail@v1
PostDetail
Read the text, author, public metrics, and media for one currently public post by Tweet ID.
/v1/x/posts/detailChinese name: X 帖子详情 · 帖子 · 详情
按 Tweet ID 读取一条当前公开帖子的正文、作者、互动指标和媒体。
Fieldtweet_idTypestringConstraints and defaultspattern: "^[0-9]{1,20}$"RequirementRequired{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"tweet_id": {
"type": "string",
"pattern": "^[0-9]{1,20}$"
}
},
"required": [
"tweet_id"
],
"additionalProperties": false
}{
"code": 200,
"request_id": "req_example_detail_01",
"message": "success",
"data": {
"item": {
"id": "1808168603721650364",
"text": "Public fixture detail text",
"created_at": "Tue Jul 02 15:00:00 +0000 2024",
"language": "en",
"conversation_id": "1808168603721650364",
"sensitive": false,
"status": "active",
"author": {
"id": "1000",
"username": "example",
"name": "Example",
"avatar_url": "https://pbs.twimg.com/profile_images/example.jpg",
"verified": false,
"verified_type": null,
"followers_count": 50
},
"metrics": {
"replies": 3,
"reposts": 4,
"quotes": 1,
"likes": 20,
"bookmarks": 2,
"views": "100"
},
"media": {
"photos": [
{
"id": "media-photo-1",
"url": "https://pbs.twimg.com/media/example.jpg"
}
],
"videos": []
}
}
},
"page": {
"next_cursor": null
},
"warnings": [],
"meta": {
"result_status": "complete",
"balance_after": "0.99",
"listing_id": "x.posts.detail",
"version": "v1",
"catalog_release_id": "catalog-production-2026-09-17.1",
"price_book_version": "pricebook-production-2026-09-17.1",
"charged_amount": "0.02",
"currency": "CNY"
}
}Complete and empty results are charged; partial results and failures are not.
Security check
Loading the security check…
Checking live execution status…
// Result
The field summary is for scanning; the full JSON Schema is the stable output contract.
FieldcodeTypenumberConstraints and defaultsconst: 200RequirementRequiredFieldrequest_idTypestringConstraints and defaultsNo additional constraintsRequirementRequiredFieldmessageTypestringConstraints and defaultsconst: "success"RequirementRequiredFielddataTypeobjectConstraints and defaultsNo additional constraintsRequirementRequiredFieldpageTypeobjectConstraints and defaultsNo additional constraintsRequirementRequiredFieldwarningsTypearrayConstraints and defaultsNo additional constraintsRequirementRequiredFieldmetaTypeobjectConstraints and defaultsNo additional constraintsRequirementRequired{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"code": {
"type": "number",
"const": 200
},
"request_id": {
"type": "string"
},
"message": {
"type": "string",
"const": "success"
},
"data": {
"type": "object",
"properties": {
"item": {
"anyOf": [
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"text": {
"type": "string"
},
"created_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"language": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"conversation_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"sensitive": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"status": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"author": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"username": {
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"avatar_url": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
]
},
"verified": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"verified_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"followers_count": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"username",
"name",
"avatar_url",
"verified",
"verified_type",
"followers_count"
],
"additionalProperties": false
},
"metrics": {
"type": "object",
"properties": {
"replies": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"reposts": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"quotes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"likes": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"bookmarks": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"views": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"replies",
"reposts",
"quotes",
"likes",
"bookmarks",
"views"
],
"additionalProperties": false
},
"media": {
"type": "object",
"properties": {
"photos": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"id",
"url"
],
"additionalProperties": false
}
},
"videos": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"preview_url": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
]
},
"duration_ms": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"aspect_ratio": {
"anyOf": [
{
"type": "array",
"prefixItems": [
{
"type": "number"
},
{
"type": "number"
}
]
},
{
"type": "null"
}
]
},
"variants": {
"type": "array",
"items": {
"type": "object",
"properties": {
"content_type": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"content_type",
"url"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"preview_url",
"duration_ms",
"aspect_ratio",
"variants"
],
"additionalProperties": false
}
}
},
"required": [
"photos",
"videos"
],
"additionalProperties": false
}
},
"required": [
"id",
"text",
"created_at",
"language",
"conversation_id",
"sensitive",
"status",
"author",
"metrics",
"media"
],
"additionalProperties": false
},
{
"type": "null"
}
]
}
},
"required": [
"item"
],
"additionalProperties": false
},
"page": {
"type": "object",
"properties": {
"next_cursor": {
"type": "null"
}
},
"required": [
"next_cursor"
],
"additionalProperties": false
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"meta": {
"type": "object",
"properties": {
"listing_id": {
"type": "string",
"const": "x.posts.detail"
},
"version": {
"type": "string",
"const": "v1"
},
"catalog_release_id": {
"type": "string",
"minLength": 1
},
"price_book_version": {
"type": "string",
"minLength": 1
},
"result_status": {
"type": "string",
"enum": [
"complete",
"empty"
]
},
"charged_amount": {
"type": "string"
},
"balance_after": {
"type": "string"
},
"currency": {
"type": "string",
"const": "CNY"
}
},
"required": [
"listing_id",
"version",
"catalog_release_id",
"price_book_version",
"result_status",
"charged_amount",
"balance_after",
"currency"
],
"additionalProperties": false
}
},
"required": [
"code",
"request_id",
"message",
"data",
"page",
"warnings",
"meta"
],
"additionalProperties": false
}curl -X POST https://api.dataxapi.com/v1/x/posts/detail \
-H "Authorization: Bearer $DATAXAPI_API_KEY" \
-H "Idempotency-Key: your-stable-intent-key" \
-H "Content-Type: application/json" \
-d '{"tweet_id":"1808168603721650364"}'[mcp_servers.dataxapi] url = "https://api.dataxapi.com/mcp" bearer_token_env_var = "DATAXAPI_API_KEY"
The same API key exposes only the precise tools in its scope. Keep the key in an environment variable, never in the config file. Reuse an explicit idempotency_key for safe retries.