GET /2/users/search
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/x_unified_api/2/users/searchCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeSearch X user profiles by keyword or handle
Parameters
| name | in | type | description | |
|---|---|---|---|---|
cursor | query | str | optional | example: |
max_results | query | int | optional | default: 10example: 10 |
query | query | str | required | example: from:jack |
user_fields | query | str | optional | example: name,username |
Response
type: object
pagination: cursor
sample: {
"data": "array[3]",
"meta": "object"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/x_unified_api/2/users/search?cursor=&max_results=10&query=from%3Ajack&user_fields=name%2Cusername"