X / Twitter Search users API
Search X (Twitter) accounts by keyword - the People tab of X search. Matches handles, display names, and profile bios, and returns normalized profile records with follower, following, and post counts plus cursor pagination. Use twitter.search for posts.
Provider network
Providers ranked by traffic
capped at $0.0021 per request1 result$0.000210 results$0.001120 results$0.0021 capYou are charged for what comes back. Lower the limit to pay less - and no single request can cost more than the cap, however much comes back.
Try it
Make your first request
{
"data": {
"nextCursor": "example",
"users": [
{
"avatarUrl": "https://example.com/image.jpg",
"bio": "A short example description of this item.",
"createdUtc": 12.5,
"followers": 12500,
"following": 12500,
"id": "a1b2c3d4",
"location": "example",
"name": "Example title",
"posts": 248,
"profileUrl": "https://example.com/page",
"username": "alex_rivera",
"verified": true
}
]
},
"found": true
}interface TwitterSearchUsersResponse {
data: {
nextCursor: string | null;
users: {
avatarUrl: string;
bio: string;
createdUtc: number;
followers: number;
following: number;
id: string;
location: string;
name: string;
posts: number;
profileUrl: string;
username: string;
verified: boolean;
}[];
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-16 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/twitter.search_users \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"ai agents"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| query | string | "ai agents"Keyword to match against X (Twitter) handles, display names, and profile bios. This is the People tab of X search: pass a topic ('ai agents'), a name ('Elon Musk'), or a handle ('openai') and get back accounts, not posts. Use twitter.search for posts. |
| cursor | string | Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of accounts. |
| Response | ||
| data | object | The page of matching accounts, or null when nothing was found. |
| data.nextCursor | string | Opaque cursor for the next page of accounts, or null when this lane has no more. Pass it back as cursor to continue. |
| data.users | object[] | Matching X (Twitter) accounts, normalized to a compact profile record. Populated whenever the provider has data for the entity. |
| data.users[].avatarUrl | string | URL of the account's profile image. Populated whenever the provider has data for the entity. |
| data.users[].bio | string | The account's profile bio/description (may be empty). |
| data.users[].createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. |
| data.users[].followers | integer | How many followers this account has. |
| data.users[].following | integer | How many accounts this account follows. |
| data.users[].id | string | The account's numeric X user id. Populated whenever the provider has data for the entity. |
| data.users[].location | string | The account's self-reported location (may be empty). |
| data.users[].name | string | The account's display name. Populated whenever the provider has data for the entity. |
| data.users[].posts | integer | How many posts this account has published. |
| data.users[].profileUrl | string | Canonical URL of the account's X profile. Populated whenever the provider has data for the entity. |
| data.users[].username | string | The account's @ handle, without the @ prefix. Populated whenever the provider has data for the entity. |
| data.users[].verified | boolean | Whether the account carries the blue verification check. |
| found | boolean | True when the search returned at least one account; false when nothing matched. |
| Price | ||
| Price per request | USD | $0.00075 |
| Price /1k req | USD | $0.75 |
FAQ
About the X / Twitter Search users API
The AnyAPI X / Twitter Search users API returns X / Twitter search users data as normalized JSON from one POST call to /v1/run/twitter.search_users. Search X (Twitter) accounts by keyword - the People tab of X search. Matches handles, display names, and profile bios, and returns normalized profile records with follower, following, and post counts plus cursor pagination. Use twitter.search for posts. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $0.75 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 93.8% of X / Twitter search users calls through AnyAPI succeeded, with a median response time of 1.9 seconds across 96 measured calls.