Get Trends By Woeid
curl --request GET \
--url https://api.aisa.one/apis/v1/twitter/trends \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/twitter/trends"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/twitter/trends', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/twitter/trends",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/twitter/trends"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/twitter/trends")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/twitter/trends")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"msg": "<string>",
"status": "success",
"trends": [
{
"meta_description": "<string>",
"name": "<string>",
"rank": 123,
"target": {
"query": "<string>"
}
}
]
}趋势
Get Trends By Woeid
按 Yahoo WOEID(Where On Earth ID)获取某个地区的热门话题,可选 count(默认 30)。
GET
https://api.aisa.one
/
apis
/
v1
/
twitter
/
trends
Get Trends By Woeid
curl --request GET \
--url https://api.aisa.one/apis/v1/twitter/trends \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/twitter/trends"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/twitter/trends', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/twitter/trends",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/twitter/trends"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/twitter/trends")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/twitter/trends")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"msg": "<string>",
"status": "success",
"trends": [
{
"meta_description": "<string>",
"name": "<string>",
"rank": 123,
"target": {
"query": "<string>"
}
}
]
}按 Yahoo WOEID(Where On Earth ID)获取某个地区的热门话题,可选
在你的 agent 里把这个端点跑起来 →
count(默认 30)。适合用于实时了解某个市场当下在讨论什么——对内容发布时机把握和捕捉新兴话题很有用。
在 trends 下返回话题名称和热度。
选定某个话题后,可用 get_twitter_tweet_advanced_search 搜索其相关帖子。
第一次用? 把任意 MCP 客户端指向
https://mcp.aisa.one/mcp —— Claude Code、
Codex、Cursor、VS Code 都可以。鉴权走 OAuth:客户端打开浏览器,你点一次
Allow,不需要粘贴任何 key。之后智能体通过几个元工具调用所有端点:
search、list_categories、get_details 和 batch_quote 免费,batch_use
按次计费。各客户端的接入步骤见通过 MCP 连接;实时工具列表和
每次调用的价格见 aisa.one/zh-cn/mcp。请求规范
- 方法与路径: GET /apis/v1/twitter/trends
- 可用状态: enabled
- 请求 URL 模板: https://api.aisa.one/apis/v1/twitter/trends
- count: query; 可选
- woeid: query; 可选
- Runtime 事实版本: bf5a62671fcd8c35ae2726a52eb98202ca01c5f4508e39d1b2bd8ec2dbdd09ef
{
"operationId": "get_twitter_trends",
"method": "GET",
"path": "/apis/v1/twitter/trends",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "The number of trends to return. Default is 30.\n\nProvider reference (supplier schema): `{\"default\":30,\"format\":\"int64\",\"minimum\":30,\"type\":\"integer\"}`.",
"in": "query",
"name": "count",
"required": false,
"schema": {
"type": "string"
}
},
{
"description": "The WOEID of the location. Example: 2418046.\n\nProvider reference (supplier schema): `{\"format\":\"int64\",\"type\":\"integer\"}`.",
"in": "query",
"name": "woeid",
"required": false,
"schema": {
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"x-aisa-pricing": {
"cost_contract": "plan_units",
"customer_multiplier": 1.0,
"customer_pricing": "provider_cost_multiplier",
"default_request_estimate_usd": 0.00015,
"estimate_source": "profile_seed",
"evidence_source": "request_snapshot",
"request_cost_drivers": {
"formula": {
"fixed_units": 15
},
"inputs": [],
"kind": "plan_units"
},
"unit": "provider_credit",
"unit_rate_usd": 1e-05
},
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按用量计费;默认请求预估费用:$0.00015 USD(不是固定价格)。 声明的单位费率:每 provider_credit $0.00001 USD。 最终费用以账户适用价格及实际结算为准。 公开参考值不是你的账户报价或最终扣费。对于支持 X-AISA-Cost-Mode: quote 的接口,执行前请针对完整请求获取免费报价;执行后通过响应费用元数据和 Usage Logs 核对结算费用。1 USD 等于 1,000,000 个整数 micro-USD。- 默认请求参考估价(USD): 0.00015
- 声明的单位费率(USD): 1e-05
- 计费单位: provider_credit
- 计费依据: plan_units
- 公开参考倍率: 1.0
- 结算证据来源: request_snapshot
声明的请求计费单位
- 单位数: 15
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
查询参数
The number of trends to return. Default is 30.
Provider reference (supplier schema): {"default":30,"format":"int64","minimum":30,"type":"integer"}.
The WOEID of the location. Example: 2418046.
Provider reference (supplier schema): {"format":"int64","type":"integer"}.