GETX (Twitter)Preview (Coming Soon)
/v1/twitter/user/tweets
Paginated X user posts — Fetch paginated X (Twitter) user posts
Current Unit Price (Live Catalog)
$0.0040 USD
Required Scope
twitter:read
Parameters
| Name | Location | Type | Description & Constraints |
|---|---|---|---|
| Idempotency-Key | header | string | Optional idempotency key (max 128 characters, scoped to organization + endpoint for 24h). Reusing with different canonical parameters returns 409 IDEMPOTENCY_CONFLICT.
maxLength=128 |
| username* | query | string | minLength=1 · maxLength=64 · ex: sample_dev |
| cursor | query | string | Opaque pagination cursor returned by the previous response maxLength=256 |
| limit | query | integer | Page size (1..50) min=1 · max=50 |
Code Examples
curl 'https://api.socialapi.tr/v1/twitter/user/tweets?username=sample_dev' \
-H 'Authorization: Bearer sapi_live_REPLACE_ME'Replace sapi_live_REPLACE_ME with a server-side key. Never expose API keys in browser code.
Response Data Fields
| Field | Type | Required |
|---|---|---|
| synthetic | boolean | Optional |
| username | string | Yes |
| items | array<object> | Yes |
| paging | object | Yes |
Example Response
Sample{
"success": true,
"data": {
"synthetic": true,
"username": "sample_dev",
"items": [
{
"id": "x_post_0123456789_0",
"username": "sample_dev",
"text": "Synthetic X post 1 by @sample_dev",
"like_count": 144,
"repost_count": 18,
"reply_count": 9,
"published_at": "2026-01-15T12:00:00Z"
}
],
"paging": {
"has_more": true,
"next_cursor": "cur_x_synthetic"
}
},
"meta": {
"request_id": "req_01syntheticexample",
"platform": "twitter",
"cached": false,
"replayed": false,
"billing": {
"request_id": "2c91b99a-4d7c-4f21-b8b0-1234567890b0",
"amount": "0.0040",
"currency": "USD",
"status": "charged"
}
}
}HTTP Responses
| Status | Meaning |
|---|---|
| 200 | Posts page fetched (or idempotent replay; `data` omitted when replay payload retention is disabled) |
| 400 | Validation error (not charged) |
| 401 | Missing or invalid API key (not charged) |
| 402 | Wallet available balance is below endpoint unit price (not charged) |
| 403 | Missing scope, IP allowlist mismatch, suspended organization, disabled endpoint, or CORS denied (not charged) |
| 404 | Social media resource or route not found (not charged) |
| 409 | Idempotency-Key reused with different parameters or request still in progress (not charged) |
| 429 | Key, organization, or platform rate limit exceeded (not charged) |
| 502 | Upstream failure or billing finalization failure (`BILLING_FINALIZATION_FAILED`; data withheld, not charged) |
| 503 | Provider not configured, circuit open, or rate limiter unavailable (fail-closed, not charged) |
| 504 | Upstream provider exceeded deadline before lease expiry (reservation released, not charged) |