SocialPipe docs

X trending

Current X/Twitter trends for a country, as TikHub returns it. The country is a name rather than an ISO code — `UnitedStates` is the vendor's default and its spelling. An unrecognised value still answers 200 with trends rather than an error, so a typo here degrades silently to some default rather than failing loudly. Cache with care: this is the one route whose answer is meant to change hourly.

GET/v1/twitter/trending

Current X/Twitter trends for a country, as TikHub returns it.

The country is a name rather than an ISO code — UnitedStates is the vendor's default and its spelling. An unrecognised value still answers 200 with trends rather than an error, so a typo here degrades silently to some default rather than failing loudly. Cache with care: this is the one route whose answer is meant to change hourly.

Query Parameters

country?Country
Default"UnitedStates"
cache_ttl?|

Max acceptable age of a cached result, in seconds. A lower value demands fresher data; it does not shorten what is stored.

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/twitter/trending"
{  "cache_age": 0,  "cached": false,  "credits_remaining": 0,  "credits_used": 0,  "data": {},  "schema_version": "2",  "success": true,  "took_ms": 0}