REST (cURL)
curl -X POST https://api.dataxapi.com/v1/x/users/posts \
-H "Authorization: Bearer $DATAXAPI_API_KEY" \
-H "Idempotency-Key: your-stable-intent-key" \
-H "Content-Type: application/json" \
-d '{"username":"OpenAI"}'x.users.posts@v1
User PostList
Read one cursor-paginated page of currently public posts from a known X username.
/v1/x/users/postsChinese name: X 用户 Tweet 列表 · 用户帖子 · 列表
按用户名分页读取该账号当前公开的 Tweet 时间线。
Terminology: Tweet — 帖子
FieldusernameTypestringConstraints and defaultspattern: "^@?[A-Za-z0-9_]+$" · minLength: 1 · maxLength: 64RequirementRequiredFieldcursorTypestringConstraints and defaultsminLength: 1RequirementOptional{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"username": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^@?[A-Za-z0-9_]+$"
},
"cursor": {
"type": "string",
"minLength": 1
}
},
"required": [
"username"
],
"additionalProperties": false
}{
"code": 200,
"request_id": "req_example_x_user_posts_01",
"message": "success",
"data": {
"items": [
{
"id": "1960000000000000000",
"text": "Public fixture user post",
"created_at": "Tue Aug 25 12:00:00 +0000 2026",
"language": "en",
"conversation_id": "1960000000000000000",
"sensitive": false,
"author": {
"id": "4398626122",
"username": "OpenAI",
"name": "OpenAI",
"verified": true,
"verified_type": null,
"followers_count": 4200000
},
"metrics": {
"replies": 3,
"reposts": 4,
"quotes": 1,
"likes": 20,
"bookmarks": 2,
"views": "100"
}
}
]
},
"page": {
"next_cursor": "opaque_cursor_example"
},
"warnings": [],
"meta": {
"result_status": "complete",
"balance_after": "0.98",
"listing_id": "x.users.posts",
"version": "v1",
"catalog_release_id": "catalog-production-2026-09-17.1",
"price_book_version": "pricebook-production-2026-09-17.1",
"charged_amount": "0.15",
"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": {
"items": {
"type": "array",
"items": {
"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"
}
]
},
"author": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"username": {
"type": "string"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"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",
"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
}
},
"required": [
"id",
"text",
"created_at",
"language",
"conversation_id",
"sensitive",
"author",
"metrics"
],
"additionalProperties": false
}
}
},
"required": [
"items"
],
"additionalProperties": false
},
"page": {
"type": "object",
"properties": {
"next_cursor": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"next_cursor"
],
"additionalProperties": false
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"meta": {
"type": "object",
"properties": {
"listing_id": {
"type": "string",
"const": "x.users.posts"
},
"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",
"partial"
]
},
"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/users/posts \
-H "Authorization: Bearer $DATAXAPI_API_KEY" \
-H "Idempotency-Key: your-stable-intent-key" \
-H "Content-Type: application/json" \
-d '{"username":"OpenAI"}'[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.