Skip to main content
GET
/
twitter
/
{country}
/
trending
Get Trending Topics
curl --request GET \
  --url https://api.twexapi.io/twitter/{country}/trending \
  --header 'Authorization: Bearer <token>'
{
  "code": 200,
  "msg": "success",
  "data": "<unknown>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

country
string
required

Country code or 'worldwide' for global trends

Examples:

"worldwide"

"algeria"

"argentina"

"australia"

"austria"

"bahrain"

"belarus"

"belgium"

"brazil"

"canada"

"chile"

"colombia"

"denmark"

"dominican-republic"

"ecuador"

"egypt"

"france"

"germany"

"ghana"

"greece"

"guatemala"

"india"

"indonesia"

"ireland"

"israel"

"italy"

"japan"

"jordan"

"kenya"

"korea"

"kuwait"

"latvia"

"lebanon"

"malaysia"

"mexico"

"netherlands"

"new-zealand"

"nigeria"

"norway"

"oman"

"pakistan"

"panama"

"peru"

"philippines"

"poland"

"portugal"

"puerto-rico"

"qatar"

"russia"

"saudi-arabia"

"singapore"

"south-africa"

"spain"

"sweden"

"switzerland"

"thailand"

"turkey"

"ukraine"

"united-arab-emirates"

"united-kingdom"

"united-states"

"venezuela"

"vietnam"

Response

Standard response with list of trending topics in data field

Standard API response format

code
integer
required

HTTP status code

Example:

200

msg
string
required

Response message

Example:

"success"

data
any | null

Response data