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
趋势话题
获取指定国家或地区的 Twitter / X 趋势话题列表,返回热门趋势及相关指标。适用于热点监测、舆情发现和内容选题。
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"
}🪙1 credit每次请求
Copy for AI
🤖 让 AI 帮你写调用代码
点击按钮复制一段结构化提示词,可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。
授权
查询参数
国家或地区代码,用于指定趋势榜单所在市场。
可用选项:
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 响应
请求成功
The response is of type object.
⌘I

