Social

X (Twitter) single post + thread

One X (Twitter) post with full engagement counts, media, the quoted post if any, and the author's own unrolled thread (1/n, 2/n, …). X Articles (long-form posts) come with their full body as article (markdown, text, images) and are rendered in the markdown output. Accepts a post id or an x.com/<handle>/status/<id> URL.

Provide exactly one of: id, url.

Credits: 1 (refunded on failure).

get/api/v1/social/x/tweet

Request

  • Base URL: https://scrapewhale.dev
  • URL: https://scrapewhale.dev/api/v1/social/x/tweet
  • Auth: one of:
    • HTTP bearer
    • API key in header x-api-key

Query parameters

idstring

Numeric post id. Provide this or url.

urlstring uri

An x.com/<handle>/status/<id> URL.

format'json' | 'markdown' | 'both'

Response shape: "json" (structured data only), "markdown" (markdown only), or "both".

Response

Success.

idstring required
status'completed' required
extractorstring required

Extractor name, e.g. "traffic", "meta-ads", "instagram-profile".

titlestring nullable
sourceUrlstring nullable

Canonical public URL of the extracted source.

creditsChargedinteger required

0 when served from the shared cache.

cachedboolean

True when served from the shared extraction cache (free).

createdAtinteger required

Unix epoch milliseconds.

dataobject nullable

Raw structured payload from the source.

markdownstring

Clean markdown rendering of the payload.

Changes

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