GET /2/trends
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/x_unified_api/2/trendsCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeRead current X trending topics
Parameters
| name | in | type | description | |
|---|---|---|---|---|
max_results | query | int | optional | default: 20example: 20 |
Response
type: object
pagination: none
sample: {
"data": "array[5]",
"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/trends?max_results=20"