Search people (unavailable)
const url = 'https://api.fxtwitter.com/2/search/users?q=jack&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/users?q=jack&count=30&lang=es'Currently unavailable: X/Twitter search is unavailable due to current API limitations. Requests return 503.
Search accounts using the People tab of X search. Same envelope as /2/profile/{handle}/followers (code, results, cursor). Pass cursor.bottom back as cursor for the next page. /2/typeahead is the lighter, unpaginated autocomplete over the same corpus.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Example
jackSearch query (non-empty, max 512 characters)
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”Matching accounts
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
Example
{ "results": [ { "type": "profile", "verification": { "type": "organization" } } ]}Invalid q parameter (empty or longer than 512 characters)
object
Example
{ "code": 400}No results or timeline unavailable
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
Example
{ "results": [ { "type": "profile", "verification": { "type": "organization" } } ]}Upstream or processing error
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
Example
{ "results": [ { "type": "profile", "verification": { "type": "organization" } } ]}X search is disabled on this deployment
object
Example
{ "code": 503}