curl --request GET \
--url 'https://api.keyapi.ai/v1/twitter/fetch_trending?country=UnitedStates' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"code": 0,
"message": "success",
"data": {
"trends": [
{
"name": "#WWERaw",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Shai",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Bobby Witt",
"description": null,
"context": "Baseball · Trending"
},
{
"name": "Boyd",
"description": null,
"context": "Baseball · Trending"
},
{
"name": "Lu Dort",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Bayley",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Duran",
"description": null,
"context": "Baseball · Trending"
},
{
"name": "Rusev",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Weights",
"description": null,
"context": "Trending"
},
{
"name": "Jaylin Williams",
"description": null,
"context": "Sports · Trending"
},
{
"name": "Usos",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "ALL RISE",
"description": null,
"context": "Baseball · Trending"
},
{
"name": "Dan Morgan",
"description": null,
"context": "NFL · Trending"
},
{
"name": "Lloyd",
"description": null,
"context": "NFL · Trending"
},
{
"name": "#TheRookie",
"description": null,
"context": "Only on X · Trending"
},
{
"name": "Sergio",
"description": null,
"context": "Only on X · Trending"
},
{
"name": "Jared McCain",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Raiders",
"description": null,
"context": "NFL · Trending"
},
{
"name": "Aaron Gordon",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Magic City",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Ajay Mitchell",
"description": null,
"context": "NBA · Trending"
},
{
"name": "JWill",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Linda Ronstadt",
"description": null,
"context": "Trending"
},
{
"name": "Adelman",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Raquel",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Christian Braun",
"description": null,
"context": "NBA · Trending"
},
{
"name": "#RawOnNetflix",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Furman",
"description": null,
"context": "Trending"
},
{
"name": "Austin Rivers",
"description": null,
"context": "NBA · Trending"
},
{
"name": "DeRosa",
"description": null,
"context": "Baseball · Trending"
},
{
"name": "Nate Williams",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Lyra",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Turang",
"description": null,
"context": "Baseball · Trending"
},
{
"name": "#AmericanIdol",
"description": null,
"context": "Movies & TV · Trending"
},
{
"name": "Cuckoo",
"description": null,
"context": "Trending"
},
{
"name": "Dean",
"description": null,
"context": "NFL · Trending"
},
{
"name": "SGA is the MVP",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Chenal",
"description": null,
"context": "NFL · Trending"
},
{
"name": "Tomahawk",
"description": null,
"context": "Politics · Trending"
},
{
"name": "Patrick Queen",
"description": null,
"context": "NFL · Trending"
},
{
"name": "El Grande Americano",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Sam Williams",
"description": null,
"context": "NFL · Trending"
},
{
"name": "Greenlaw",
"description": null,
"context": "NFL · Trending"
},
{
"name": "Captain America",
"description": null,
"context": "Trending"
},
{
"name": "Ivy Nile",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Bobby Baseball",
"description": null,
"context": "Sports · Trending"
},
{
"name": "#Nuggets",
"description": null,
"context": "Basketball · Trending"
},
{
"name": "No Chet",
"description": null,
"context": "Trending"
},
{
"name": "Cole Strange",
"description": null,
"context": "NFL · Trending"
},
{
"name": "2-0 USA",
"description": null,
"context": "Baseball · Trending"
}
]
},
"requestId": "f5aa3d66-87c7-4ebf-a882-f06274495a86"
}Get trending topics
curl --request GET \
--url 'https://api.keyapi.ai/v1/twitter/fetch_trending?country=UnitedStates' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"code": 0,
"message": "success",
"data": {
"trends": [
{
"name": "#WWERaw",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Shai",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Bobby Witt",
"description": null,
"context": "Baseball · Trending"
},
{
"name": "Boyd",
"description": null,
"context": "Baseball · Trending"
},
{
"name": "Lu Dort",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Bayley",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Duran",
"description": null,
"context": "Baseball · Trending"
},
{
"name": "Rusev",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Weights",
"description": null,
"context": "Trending"
},
{
"name": "Jaylin Williams",
"description": null,
"context": "Sports · Trending"
},
{
"name": "Usos",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "ALL RISE",
"description": null,
"context": "Baseball · Trending"
},
{
"name": "Dan Morgan",
"description": null,
"context": "NFL · Trending"
},
{
"name": "Lloyd",
"description": null,
"context": "NFL · Trending"
},
{
"name": "#TheRookie",
"description": null,
"context": "Only on X · Trending"
},
{
"name": "Sergio",
"description": null,
"context": "Only on X · Trending"
},
{
"name": "Jared McCain",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Raiders",
"description": null,
"context": "NFL · Trending"
},
{
"name": "Aaron Gordon",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Magic City",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Ajay Mitchell",
"description": null,
"context": "NBA · Trending"
},
{
"name": "JWill",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Linda Ronstadt",
"description": null,
"context": "Trending"
},
{
"name": "Adelman",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Raquel",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Christian Braun",
"description": null,
"context": "NBA · Trending"
},
{
"name": "#RawOnNetflix",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Furman",
"description": null,
"context": "Trending"
},
{
"name": "Austin Rivers",
"description": null,
"context": "NBA · Trending"
},
{
"name": "DeRosa",
"description": null,
"context": "Baseball · Trending"
},
{
"name": "Nate Williams",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Lyra",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Turang",
"description": null,
"context": "Baseball · Trending"
},
{
"name": "#AmericanIdol",
"description": null,
"context": "Movies & TV · Trending"
},
{
"name": "Cuckoo",
"description": null,
"context": "Trending"
},
{
"name": "Dean",
"description": null,
"context": "NFL · Trending"
},
{
"name": "SGA is the MVP",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Chenal",
"description": null,
"context": "NFL · Trending"
},
{
"name": "Tomahawk",
"description": null,
"context": "Politics · Trending"
},
{
"name": "Patrick Queen",
"description": null,
"context": "NFL · Trending"
},
{
"name": "El Grande Americano",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Sam Williams",
"description": null,
"context": "NFL · Trending"
},
{
"name": "Greenlaw",
"description": null,
"context": "NFL · Trending"
},
{
"name": "Captain America",
"description": null,
"context": "Trending"
},
{
"name": "Ivy Nile",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "Bobby Baseball",
"description": null,
"context": "Sports · Trending"
},
{
"name": "#Nuggets",
"description": null,
"context": "Basketball · Trending"
},
{
"name": "No Chet",
"description": null,
"context": "Trending"
},
{
"name": "Cole Strange",
"description": null,
"context": "NFL · Trending"
},
{
"name": "2-0 USA",
"description": null,
"context": "Baseball · Trending"
}
]
},
"requestId": "f5aa3d66-87c7-4ebf-a882-f06274495a86"
}🤖 Why Code When AI Can Do It For You?
Stop writing code like it’s 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.
Country, default is UnitedStates Options: China India Japan Russia Germany Indonesia Brazil France UnitedKingdom Turkey Italy Mexico SouthKorea Canada Spain SaudiArabia Egypt Australia Poland Iran Pakistan Vietnam Nigeria Bangladesh Netherlands Argentina Philippines Malaysia Colombia UniteArabEmirates Romania Belgium Switzerland Singapore Sweden Norway Austria Kazakhstan Algeria Chile Czechia Peru Iraq Israel Ukraine Denmark Portugal Hungary Greece Finland NewZealand Belarus Slovakia Serbia Lithuania Luxembourg Estonia
The response is of type object.