Tweets

Users who liked a tweet

Accounts that liked one of your own tweets.

Paginated: pass the bottom cursor of one page as cursor to get the next. Each page is one billed call.

Works only for your own tweets. X shows who liked a tweet only to its author, so the request runs as the account in cookie. For anyone else's tweet the list is empty.

The like count of any tweet is in the tweet itself (favorite_count, or counts.likes in the simple format).

Reference: https://www.twittrapi.com/docs/reference/tweet-tweetid-favorites

post/tweet/{tweetId}/favorites

Request

  • Base URL: https://api.twittrapi.com
  • URL: https://api.twittrapi.com/tweet/{tweetId}/favorites
  • Auth: API key in header X-API-KEY

Path parameters

tweetIdstring required

Numeric tweet ID (digits only, up to 30), the number at the end of the tweet URL.

Query parameters

format'raw' | 'simple'

raw (default): X's JSON passed through. simple: flat camelCase JSON with a fixed schema and a {data, nextCursor, previousCursor, hasNextPage} envelope. Same price. The header X-Response-Format: simple does the same.

Request body

cookiestring required

Cookie header of the X account that posted the tweet. Must contain auth_token and ct0; guest_id is used when present.

proxystring required

Your proxy, format http://user:pass@host:port. The request to X goes out through it. Used only for this request.

countinteger

Users per page, up to 100.

cursorstring

Bottom cursor from the previous page.

Response

Raw JSON of X's Favoriters query.

With format=simple: Collection of User objects: {data: [User], nextCursor, previousCursor, hasNextPage}.

OR
RawPassthrough required

X's own JSON (raw format, the default), passed through unchanged. The shape is X's and can change; see https://www.twittrapi.com/docs/response-format.

Changes

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