Skip to content

Search people (unavailable)

GET
/2/search/users
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.

q
required
string
<= 512 characters

Example

jack

Search query (non-empty, max 512 characters)

count
integer
default: 30 >= 1 <= 100

Page size (default 30)

cursor
string
lang
string

Example

es

Target 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

Matching accounts

Media typeapplication/json
object
code
required
number
results
required
Array<object>
object
type
required

Discriminator: full user profile (API v2).

string
Allowed values: profile
id
required
string
name
required
string
screen_name
required
string
avatar_url
required
string
nullable
banner_url
required
string
nullable
description
required
string
raw_description
required
object
text
required
string
facets
required
Array<object>
object
type
required

Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)

string
indices
required

Start and end UTF-16 indices

Array<number>
>= 2 items <= 2 items
original
string
replacement
string
display
string
id
string
location
required
string
url
required
string
protected
required
boolean
followers
required
number
following
required
number
statuses
required
number
media_count
required
number
likes
required
number
joined
required
string
website
required
object
url
required
string
display_url
required
string
birthday
object
day
number
month
number
year
number
verification
object
verified
required
boolean
type
required
string
nullable
Allowed values: organization government individual
verified_at
string
nullable
identity_verified
boolean
verified_by
string
about_account
object
based_in
string
nullable
location_accurate
boolean
created_country_accurate
boolean
nullable
source
string
nullable
username_changes
object
count
required
number
last_changed_at
required
string
nullable
profile_embed
boolean
cursor
required
object
top
required
string
nullable
bottom
required
string
nullable

Example

{
"results": [
{
"type": "profile",
"verification": {
"type": "organization"
}
}
]
}

Invalid q parameter (empty or longer than 512 characters)

Media typeapplication/json
object
code
required
number
Allowed values: 400
message
required
string

Example

{
"code": 400
}

No results or timeline unavailable

Media typeapplication/json
object
code
required
number
results
required
Array<object>
object
type
required

Discriminator: full user profile (API v2).

string
Allowed values: profile
id
required
string
name
required
string
screen_name
required
string
avatar_url
required
string
nullable
banner_url
required
string
nullable
description
required
string
raw_description
required
object
text
required
string
facets
required
Array<object>
object
type
required

Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)

string
indices
required

Start and end UTF-16 indices

Array<number>
>= 2 items <= 2 items
original
string
replacement
string
display
string
id
string
location
required
string
url
required
string
protected
required
boolean
followers
required
number
following
required
number
statuses
required
number
media_count
required
number
likes
required
number
joined
required
string
website
required
object
url
required
string
display_url
required
string
birthday
object
day
number
month
number
year
number
verification
object
verified
required
boolean
type
required
string
nullable
Allowed values: organization government individual
verified_at
string
nullable
identity_verified
boolean
verified_by
string
about_account
object
based_in
string
nullable
location_accurate
boolean
created_country_accurate
boolean
nullable
source
string
nullable
username_changes
object
count
required
number
last_changed_at
required
string
nullable
profile_embed
boolean
cursor
required
object
top
required
string
nullable
bottom
required
string
nullable

Example

{
"results": [
{
"type": "profile",
"verification": {
"type": "organization"
}
}
]
}

Upstream or processing error

Media typeapplication/json
object
code
required
number
results
required
Array<object>
object
type
required

Discriminator: full user profile (API v2).

string
Allowed values: profile
id
required
string
name
required
string
screen_name
required
string
avatar_url
required
string
nullable
banner_url
required
string
nullable
description
required
string
raw_description
required
object
text
required
string
facets
required
Array<object>
object
type
required

Facet kind: e.g. url, mention, hashtag, bold, media, custom_emoji (Mastodon custom emoji image)

string
indices
required

Start and end UTF-16 indices

Array<number>
>= 2 items <= 2 items
original
string
replacement
string
display
string
id
string
location
required
string
url
required
string
protected
required
boolean
followers
required
number
following
required
number
statuses
required
number
media_count
required
number
likes
required
number
joined
required
string
website
required
object
url
required
string
display_url
required
string
birthday
object
day
number
month
number
year
number
verification
object
verified
required
boolean
type
required
string
nullable
Allowed values: organization government individual
verified_at
string
nullable
identity_verified
boolean
verified_by
string
about_account
object
based_in
string
nullable
location_accurate
boolean
created_country_accurate
boolean
nullable
source
string
nullable
username_changes
object
count
required
number
last_changed_at
required
string
nullable
profile_embed
boolean
cursor
required
object
top
required
string
nullable
bottom
required
string
nullable

Example

{
"results": [
{
"type": "profile",
"verification": {
"type": "organization"
}
}
]
}

X search is disabled on this deployment

Media typeapplication/json
object
code
required
number
Allowed values: 503
message
required
string

Example

{
"code": 503
}