cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/twitter/trends?country=UnitedStates' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"code": 0,
"message": "success",
"data": {
"trends": [
{
"name": "Tim Apple",
"description": null,
"context": "Trending"
},
{
"name": "#bucciovertimechallenge",
"description": null,
"context": "NHL · Trending"
},
{
"name": "Punisher",
"description": null,
"context": "Trending"
},
{
"name": "Toned",
"description": null,
"context": "News · Trending"
},
{
"name": "Starship",
"description": null,
"context": "Trending"
},
{
"name": "Zara",
"description": null,
"context": "Pop · Trending"
},
{
"name": "Julius Randle",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Eric Haase",
"description": null,
"context": "MLB · Trending"
},
{
"name": "Sarah Ashlee Barker",
"description": null,
"context": "Sports · Trending"
},
{
"name": "Barry Bonds",
"description": null,
"context": "Sports · Trending"
},
{
"name": "Air Force One",
"description": null,
"context": "Trending"
},
{
"name": "McNabb",
"description": null,
"context": "NHL · Trending"
},
{
"name": "Bloodsport",
"description": null,
"context": "Entertainment · Trending"
},
{
"name": "Frank Castle",
"description": null,
"context": "Trending"
},
{
"name": "Pavel Dorofeyev",
"description": null,
"context": "NHL · Trending"
},
{
"name": "Portland Fire",
"description": null,
"context": "WNBA · Trending"
},
{
"name": "#TransferStudentEvanescia",
"description": null,
"context": "Only on X · Trending"
},
{
"name": "Gorka",
"description": null,
"context": "Trending"
},
{
"name": "Van Hollen",
"description": null,
"context": "Politics · Trending"
},
{
"name": "Ted Williams",
"description": null,
"context": "Sports · Trending"
},
{
"name": "#WWENXT",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "#sweepers",
"description": null,
"context": "Trending"
},
{
"name": "Derek Hill",
"description": null,
"context": "MLB · Trending"
},
{
"name": "#SummerHouse",
"description": null,
"context": "Unscripted reality · Trending"
},
{
"name": "Yuji Ohno",
"description": null,
"context": "Trending"
},
{
"name": "Kash",
"description": null,
"context": "Politics · Trending"
},
{
"name": "Treinen",
"description": null,
"context": "MLB · Trending"
},
{
"name": "Olivia Miles",
"description": null,
"context": "WNBA · Trending"
},
{
"name": "Eichel",
"description": null,
"context": "NHL · Trending"
},
{
"name": "Poehling",
"description": null,
"context": "NHL · Trending"
},
{
"name": "Kreider",
"description": null,
"context": "NHL · Trending"
},
{
"name": "Montreal",
"description": null,
"context": "NHL · Trending"
},
{
"name": "Ice Cube",
"description": null,
"context": "MLB · Trending"
},
{
"name": "Ma Gnucci",
"description": null,
"context": "Trending"
},
{
"name": "Paul Skenes",
"description": null,
"context": "MLB · Trending"
},
{
"name": "Katherine Legge",
"description": null,
"context": "Trending"
},
{
"name": "Nia Coffey",
"description": null,
"context": "Trending"
},
{
"name": "Keldon Johnson",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Muncy",
"description": null,
"context": "MLB · Trending"
},
{
"name": "AJ Ewing",
"description": null,
"context": "MLB · Trending"
},
{
"name": "Jason Collins",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Cavanaugh",
"description": null,
"context": "Trending"
},
{
"name": "Dostal",
"description": null,
"context": "NHL · Trending"
},
{
"name": "$NRED $COPX",
"description": null,
"context": "Trending"
},
{
"name": "Patel",
"description": null,
"context": "Politics · Trending"
},
{
"name": "Demi Moore",
"description": null,
"context": "Entertainment · Trending"
},
{
"name": "Marine Johannes",
"description": null,
"context": "Trending"
},
{
"name": "Adrian Houser",
"description": null,
"context": "MLB · Trending"
},
{
"name": "Bailey Ober",
"description": null,
"context": "MLB · Trending"
},
{
"name": "Helenius",
"description": null,
"context": "Trending"
}
]
},
"requestId": "1aa8142b-67a5-4ec9-a6a0-faae2111b7e5"
}Twitter / X
Trends
GET
/
v1
/
twitter
/
trends
cURL
curl --request GET \
--url 'https://api.keyapi.ai/v1/twitter/trends?country=UnitedStates' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"code": 0,
"message": "success",
"data": {
"trends": [
{
"name": "Tim Apple",
"description": null,
"context": "Trending"
},
{
"name": "#bucciovertimechallenge",
"description": null,
"context": "NHL · Trending"
},
{
"name": "Punisher",
"description": null,
"context": "Trending"
},
{
"name": "Toned",
"description": null,
"context": "News · Trending"
},
{
"name": "Starship",
"description": null,
"context": "Trending"
},
{
"name": "Zara",
"description": null,
"context": "Pop · Trending"
},
{
"name": "Julius Randle",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Eric Haase",
"description": null,
"context": "MLB · Trending"
},
{
"name": "Sarah Ashlee Barker",
"description": null,
"context": "Sports · Trending"
},
{
"name": "Barry Bonds",
"description": null,
"context": "Sports · Trending"
},
{
"name": "Air Force One",
"description": null,
"context": "Trending"
},
{
"name": "McNabb",
"description": null,
"context": "NHL · Trending"
},
{
"name": "Bloodsport",
"description": null,
"context": "Entertainment · Trending"
},
{
"name": "Frank Castle",
"description": null,
"context": "Trending"
},
{
"name": "Pavel Dorofeyev",
"description": null,
"context": "NHL · Trending"
},
{
"name": "Portland Fire",
"description": null,
"context": "WNBA · Trending"
},
{
"name": "#TransferStudentEvanescia",
"description": null,
"context": "Only on X · Trending"
},
{
"name": "Gorka",
"description": null,
"context": "Trending"
},
{
"name": "Van Hollen",
"description": null,
"context": "Politics · Trending"
},
{
"name": "Ted Williams",
"description": null,
"context": "Sports · Trending"
},
{
"name": "#WWENXT",
"description": null,
"context": "Wrestling · Trending"
},
{
"name": "#sweepers",
"description": null,
"context": "Trending"
},
{
"name": "Derek Hill",
"description": null,
"context": "MLB · Trending"
},
{
"name": "#SummerHouse",
"description": null,
"context": "Unscripted reality · Trending"
},
{
"name": "Yuji Ohno",
"description": null,
"context": "Trending"
},
{
"name": "Kash",
"description": null,
"context": "Politics · Trending"
},
{
"name": "Treinen",
"description": null,
"context": "MLB · Trending"
},
{
"name": "Olivia Miles",
"description": null,
"context": "WNBA · Trending"
},
{
"name": "Eichel",
"description": null,
"context": "NHL · Trending"
},
{
"name": "Poehling",
"description": null,
"context": "NHL · Trending"
},
{
"name": "Kreider",
"description": null,
"context": "NHL · Trending"
},
{
"name": "Montreal",
"description": null,
"context": "NHL · Trending"
},
{
"name": "Ice Cube",
"description": null,
"context": "MLB · Trending"
},
{
"name": "Ma Gnucci",
"description": null,
"context": "Trending"
},
{
"name": "Paul Skenes",
"description": null,
"context": "MLB · Trending"
},
{
"name": "Katherine Legge",
"description": null,
"context": "Trending"
},
{
"name": "Nia Coffey",
"description": null,
"context": "Trending"
},
{
"name": "Keldon Johnson",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Muncy",
"description": null,
"context": "MLB · Trending"
},
{
"name": "AJ Ewing",
"description": null,
"context": "MLB · Trending"
},
{
"name": "Jason Collins",
"description": null,
"context": "NBA · Trending"
},
{
"name": "Cavanaugh",
"description": null,
"context": "Trending"
},
{
"name": "Dostal",
"description": null,
"context": "NHL · Trending"
},
{
"name": "$NRED $COPX",
"description": null,
"context": "Trending"
},
{
"name": "Patel",
"description": null,
"context": "Politics · Trending"
},
{
"name": "Demi Moore",
"description": null,
"context": "Entertainment · Trending"
},
{
"name": "Marine Johannes",
"description": null,
"context": "Trending"
},
{
"name": "Adrian Houser",
"description": null,
"context": "MLB · Trending"
},
{
"name": "Bailey Ober",
"description": null,
"context": "MLB · Trending"
},
{
"name": "Helenius",
"description": null,
"context": "Trending"
}
]
},
"requestId": "1aa8142b-67a5-4ec9-a6a0-faae2111b7e5"
}Documentation Index
Fetch the complete documentation index at: https://docs.keyapi.ai/llms.txt
Use this file to discover all available pages before exploring further.
🪙1 creditper request
Copy for AI
🤖 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.
Authorizations
Query Parameters
Available options:
UnitedStates, 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, Columbia, UnitedArabEmirates, Romania, Belgium, Switzerland, Singapore, Sweden, Norway, Austria, Kazakhstan, Algeria, Chile, Czechia, Peru, Iraq, Israel, Ukraine, Denmark, Portugal, Hungary, Greece, Finland, NewZealand, Bulgaria, Belarus, Slovakia, Serbia, Lithuania, Luxembourg, Estonia Response
The response is of type object.
⌘I

