Skip to content
X user posts
raw.x.user_posts

X user posts

LiveBeta: the endpoint and its response fields may still change
GEThttps://api.qovia.ai/v1/raw/x/user_posts

Posts and reposts a user published, the pinned post first on the first page, then newest first, about 20 a page, as the same records as post detail (same ids); a repost (content_type repost) carries its counts in extra.repost_of. Pass the previous page's cursor back to continue; stop when has_more is false. A page can answer 400 once: ask again. Pass either the handle or the numeric uid. A user that does not exist answers 400 and is not charged.

Typical uses: Vetting creators, monitoring accounts and benchmarking competitors' accounts.

Price
$0.001 / call$1 per 1k · fixed price
Billing
Charged only for successful, non-empty resultsthe charge is in meta.charged_usd
Scope
raw:xThe API key needs this scope
Rate limit
NoneNo per-account or per-endpoint request limit

Parameters

Sent as query parameters

Only these parameters are accepted; any other one returns 400.

unique_idstring

The handle (from x.com/<handle>, without the @); pass this or uid

Pattern^[A-Za-z0-9_]{1,15}$

ExampleNASA

uidstring

The user's numeric ID (author.uid in the records); pass this or unique_id

Pattern^[1-9][0-9]{0,19}$
cursorstring

The cursor from the previous page's response; leave it out for the first page

Pattern^[A-Za-z0-9_=+/-]{16,2048}$
Combined constraints (JSON Schema)
{
  "oneOf": [
    {
      "required": [
        "unique_id"
      ]
    },
    {
      "required": [
        "uid"
      ]
    }
  ]
}

Response

A success is HTTP 200 with the shared envelope: request_id, data (this endpoint's data, see the example) and meta (the charge). An empty result is also 200, with meta.empty true, not charged, and data may be an empty structure or null.

The response envelope in detail

Errors

Errors this endpoint can return
codeHTTPBillingDescription
scope_denied403Not chargedThis API key lacks the scope the endpoint requires.
endpoint_unavailable503Not chargedThe endpoint is not available right now (no data source connected yet, or no price configured); nothing ran.
invalid_params400Not chargedThe parameters failed validation: a required one is missing, a type or format is wrong, an array has more items than allowed, an unknown one was sent, or the POST body is not a JSON object. An error in one parameter starts with its name (item_id: …); a missing or unknown parameter starts with params: ….
insufficient_balance402Not chargedThe balance cannot pay for this call; top up first.
upstream_busyRetryable503RefundedThe data source is busy or cooling down; refunded. Retry after Retry-After.
upstream_timeout504RefundedThe data source timed out; refunded.
upstream_error502 / 503RefundedThe data source failed; refunded.
upstream_rejected400RefundedThe data source rejected these parameters (well-formed, but not accepted); refunded.
not_found404RefundedThe data source has no such item (deleted, or the ID does not exist); refunded.
reservation_expired504RefundedThe call took too long and was refunded automatically; no data is returned.

Any request can also fail authentication: 401 invalid_api_key, 403 account_disabled, 429 too_many_auth_failures.

Every error code
Call it from your browser

Needs an account with a balance; playground calls are billed like API calls.