Search posts
const url = 'https://api.fxtwitter.com/2/search?q=puppies&feed=latest&count=30&lang=es';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.fxtwitter.com/2/search?q=puppies&feed=latest&count=30&lang=es'Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Example
puppiesSearch query (non-empty)
Search tab (default latest)
Page size (default 30)
Example
esTarget language (ISO 639-1 or 639-5, e.g. en, es, zh-cn) for inline X translations when available; falls back to translation API if missing
Responses
Section titled “ Responses ”Search results
object
object
Discriminator: single post/status (API v2).
Recursive reference — same shape as APITwitterStatus.
object
object
Placeholder for an unavailable post (quote/thread).
Why the post is unavailable
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
object
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
Handle or account id used in permalinks (@user on X).
Parent post id (X: snowflake; Bluesky: record key).
Permalink to the parent post when known.
Permalink to the parent author profile when known.
Display name of the parent author when known.
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
Example
{ "results": [ { "type": "status", "quote": { "type": "tombstone", "provider": "twitter", "reason": "deleted", "author": { "type": "profile", "verification": { "type": "organization" } } }, "author": { "type": "profile", "verification": { "type": "organization" } }, "media": { "external": { "type": "video" }, "photos": [ { "type": "photo" } ], "videos": [ { "type": "video", "formats": [ { "container": "mp4", "codec": "h264" } ], "publisher": { "type": "profile", "verification": { "type": "organization" } } } ], "all": [ { "type": "photo" } ], "mosaic": { "type": "mosaic_photo" }, "broadcast": { "state": "LIVE", "orientation": "landscape" } }, "embed_card": "tweet", "provider": "twitter", "community": { "admin": { "type": "profile", "verification": { "type": "organization" } }, "creator": { "type": "profile", "verification": { "type": "organization" } }, "join_policy": "Open", "invites_policy": "MemberInvitesAllowed" }, "article": { "cover_media": { "media_info": { "__typename": "ApiImage" } }, "content": { "blocks": [], "entityMap": [] }, "media_entities": [ { "media_info": { "__typename": "ApiImage" } } ] } } ]}Invalid q parameter
object
Example
{ "code": 400}No results or timeline unavailable
object
object
Discriminator: single post/status (API v2).
Recursive reference — same shape as APITwitterStatus.
object
object
Placeholder for an unavailable post (quote/thread).
Why the post is unavailable
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
object
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
Handle or account id used in permalinks (@user on X).
Parent post id (X: snowflake; Bluesky: record key).
Permalink to the parent post when known.
Permalink to the parent author profile when known.
Display name of the parent author when known.
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
Example
{ "results": [ { "type": "status", "quote": { "type": "tombstone", "provider": "twitter", "reason": "deleted", "author": { "type": "profile", "verification": { "type": "organization" } } }, "author": { "type": "profile", "verification": { "type": "organization" } }, "media": { "external": { "type": "video" }, "photos": [ { "type": "photo" } ], "videos": [ { "type": "video", "formats": [ { "container": "mp4", "codec": "h264" } ], "publisher": { "type": "profile", "verification": { "type": "organization" } } } ], "all": [ { "type": "photo" } ], "mosaic": { "type": "mosaic_photo" }, "broadcast": { "state": "LIVE", "orientation": "landscape" } }, "embed_card": "tweet", "provider": "twitter", "community": { "admin": { "type": "profile", "verification": { "type": "organization" } }, "creator": { "type": "profile", "verification": { "type": "organization" } }, "join_policy": "Open", "invites_policy": "MemberInvitesAllowed" }, "article": { "cover_media": { "media_info": { "__typename": "ApiImage" } }, "content": { "blocks": [], "entityMap": [] }, "media_entities": [ { "media_info": { "__typename": "ApiImage" } } ] } } ]}Upstream or processing error
object
object
Discriminator: single post/status (API v2).
Recursive reference — same shape as APITwitterStatus.
object
object
Placeholder for an unavailable post (quote/thread).
Why the post is unavailable
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
object
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
Handle or account id used in permalinks (@user on X).
Parent post id (X: snowflake; Bluesky: record key).
Permalink to the parent post when known.
Permalink to the parent author profile when known.
Display name of the parent author when known.
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
Discriminator: full user profile (API v2).
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)
Start and end UTF-16 indices
object
object
object
object
Example
{ "results": [ { "type": "status", "quote": { "type": "tombstone", "provider": "twitter", "reason": "deleted", "author": { "type": "profile", "verification": { "type": "organization" } } }, "author": { "type": "profile", "verification": { "type": "organization" } }, "media": { "external": { "type": "video" }, "photos": [ { "type": "photo" } ], "videos": [ { "type": "video", "formats": [ { "container": "mp4", "codec": "h264" } ], "publisher": { "type": "profile", "verification": { "type": "organization" } } } ], "all": [ { "type": "photo" } ], "mosaic": { "type": "mosaic_photo" }, "broadcast": { "state": "LIVE", "orientation": "landscape" } }, "embed_card": "tweet", "provider": "twitter", "community": { "admin": { "type": "profile", "verification": { "type": "organization" } }, "creator": { "type": "profile", "verification": { "type": "organization" } }, "join_policy": "Open", "invites_policy": "MemberInvitesAllowed" }, "article": { "cover_media": { "media_info": { "__typename": "ApiImage" } }, "content": { "blocks": [], "entityMap": [] }, "media_entities": [ { "media_info": { "__typename": "ApiImage" } } ] } } ]}