X

Get one post from X

Fetch one post by its URL or id: its text, author, created_at, public_metrics with views, media, hashtags and mentions, and the post it replies to or quotes.

Give exactly one of url or id to identify the post.

Costs 3 credits, whether the answer is fetched or served from cache. A failed call is refunded automatically.

get/x/post

Request

  • Base URL: https://api.scrapefield.com/v1
  • URL: https://api.scrapefield.com/v1/x/post
  • Auth: one of:
    • HTTP bearer
    • none

Query parameters

urlstring

The post's URL, https://x.com/<username>/status/<id>.

idstring
Example:1930652241230168143

The number after /status/ in its URL.

freshboolean

Skip the cache and fetch now. Charged normally. Not available on trial credits — buy any pack to unlock it.

demoboolean

With no key: a fixed demo answer in the same shape, charged nothing.

Response

The request succeeded.

Changes

No recorded changes to this operation across all 1 revision of this API.