Threads 话题搜索 API
Threads 话题搜索 API 参数、分页、真实响应与计费说明。
查询公开数据,使用明确的参数与真实响应示例。
打开产品页并测试POST https://api.goanyapi.com/api/v1/threads/search-tags请求与鉴权
同步 POST JSON 接口,不生成任务、无需轮询。使用 Authorization: Bearer YOUR_API_KEY。没有 Path 或 Query 参数。
输入参数
| 参数 | 位置 | 类型 | 必填 | 默认值 | 范围与说明 |
|---|---|---|---|---|---|
| Authorization | Header | string | 是 | — | Bearer YOUR_API_KEY |
| Content-Type | Header | string | 是 | application/json | application/json |
| tag_name | JSON body | string | 是 | — | 话题名称。 maxLength: 2048 |
使用完整资源 URL 优先;Threads 用户接口也接受用户名或 @用户名,内部标识无需自行获取,不额外收费。first、count、limit 不作为公开输入,使用服务默认条数;实际返回可能更少。
请求示例
POST /api/v1/threads/search-tags
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"tag_name": "bitcoin"
}输出字段
成功返回 HTTP 200,业务数据位于 data.result。null、空字符串、空数组、缺失字段原样保留,不补造数据。false 和 0 是合法业务值,不等于空结果。
| 字段 | 类型 | 说明 |
|---|---|---|
| code | string | 成功为 ok,失败为公开错误码 |
| message | string | 请求状态说明 |
| data.result | object / null | 实际公开结果,可为空 |
| data.creditsUsed | integer | 本次实际扣费,空结果为 0;非空价格来自数据库 |
| data.remainingCredits | number | 结算后的账户积分余额 |
| data.result.xdt_text_app_tags_search | object | 实际公开业务字段;保留 null、空值与字段缺失 |
| data.result.xdt_text_app_tags_search.edges | array | 实际公开业务字段;保留 null、空值与字段缺失 |
| data.result.xdt_text_app_tags_search.edges[].node | object | 实际公开业务字段;保留 null、空值与字段缺失 |
| data.result.xdt_text_app_tags_search.edges[].node.entity | object | 实际公开业务字段;保留 null、空值与字段缺失 |
| data.result.xdt_text_app_tags_search.edges[].node.entity.display_text | string | 实际公开业务字段;保留 null、空值与字段缺失 |
| data.result.xdt_text_app_tags_search.edges[].node.entity.id | string | 实际公开业务字段;保留 null、空值与字段缺失 |
分页与结果边界
本接口不接受分页参数,不自动请求后续页。
真实响应示例
采集时间: 2026-11-18T09:31:27Z
保存自真实成功请求,完整保留公开结果列表。结构省略 data.creditsUsed 与 data.remainingCredits,实际响应包含按当前配置计算的费用与余额。保存示例不会请求或扣费;媒体地址可能过期。
{
"code": "ok",
"message": "ok",
"data": {
"result": {
"xdt_text_app_tags_search": {
"edges": [
{
"node": {
"entity": {
"display_text": "Bitcoin",
"id": "18396707710032171"
}
}
},
{
"node": {
"entity": {
"display_text": "Bitcoin ETF",
"id": "18326189809109316"
}
}
},
{
"node": {
"entity": {
"display_text": "Bitcoin News",
"id": "18275144518092784"
}
}
},
{
"node": {
"entity": {
"display_text": "Bitcoin Trading",
"id": "18388823359065668"
}
}
},
{
"node": {
"entity": {
"display_text": "Bitcoin Price",
"id": "18405877255049926"
}
}
},
{
"node": {
"entity": {
"display_text": "Bitcoin Brasil",
"id": "18432615571012359"
}
}
},
{
"node": {
"entity": {
"display_text": "Bitcoin Mining",
"id": "18407927041006797"
}
}
},
{
"node": {
"entity": {
"display_text": "Bitcoin Halving",
"id": "18331921540103566"
}
}
}
]
}
}
}
}计费
…
仅非空成功结果按数据库当前配置扣费;空结果和失败不扣费,内部标识处理不单独收费。每页独立结算;false、0 等合法结果不按空结果处理。
状态码
| HTTP | 含义 |
|---|---|
| 200 | 成功,包含免费空结果 |
| 400 | JSON、参数或资源 URL 无效 |
| 401 | 未鉴权或凭证无效 |
| 402 | 积分不足 |
| 429 | 请求过于频繁,遵循 Retry-After |
| 502 | 数据请求失败 |
| 503 | 接口或价格未配置 |