API Hop 文档
Threads 接口参考
通过 12 个需要鉴权的 Threads 接口查询用户资料、帖子、回复、转发、评论及搜索结果。
通过 12 个需要鉴权的 Threads 接口查询用户资料、帖子、回复、转发、评论及搜索结果。
使用 GET 查询参数,不接受请求体。未知、重复或非法字段会被拒绝。ID 须保留为字符串,包括超出 JavaScript 安全整数范围的值。请求超时为 60 秒,不会自动重试。
默认按每次成功请求 $0.002(2000 credits)计费,包括成功返回的空数组或空对象,不按条数计费。账户专属价格优先。上游失败会释放预占;结算失败返回错误,不会再次调用上游。
用户帖子、转发、回复、帖子评论、热门搜索及最新搜索不支持分页。end_cursor 是无效的保留字段,请勿根据 next_cursor 或 has_more 请求后续页。用户列表仅返回当前可得的一批数据(约 25 条),并非完整历史。所有接口均不会自动追加抓取。
web-fetch_user_info
用户资料
GET https://api.apihop.ai/v1/threads/web/users/profile
每次成功请求价格: $0.002 (2000 credits).
| 字段 | 必填 | 约束 |
|---|---|---|
username | 是 | string; 用户名 |
curl --get "https://api.apihop.ai/v1/threads/web/users/profile" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "username=jlo"web-fetch_user_info_by_id
按 ID 查询用户资料
GET https://api.apihop.ai/v1/threads/web/users/profile/by-id
每次成功请求价格: $0.002 (2000 credits).
| 字段 | 必填 | 约束 |
|---|---|---|
user_id | 是 | string; 纯数字用户 ID; ^[0-9]+$ |
curl --get "https://api.apihop.ai/v1/threads/web/users/profile/by-id" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "user_id=67027868801"web-fetch_user_posts
用户帖子
GET https://api.apihop.ai/v1/threads/web/users/posts
每次成功请求价格: $0.002 (2000 credits).
| 字段 | 必填 | 约束 |
|---|---|---|
user_id | 是 | string; 纯数字用户 ID; ^[0-9]+$ |
end_cursor | 否 | string; 保留字段,不支持分页 |
curl --get "https://api.apihop.ai/v1/threads/web/users/posts" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "user_id=63625256886"web-fetch_user_reposts
用户转发
GET https://api.apihop.ai/v1/threads/web/users/reposts
每次成功请求价格: $0.002 (2000 credits).
| 字段 | 必填 | 约束 |
|---|---|---|
user_id | 是 | string; 纯数字用户 ID; ^[0-9]+$ |
end_cursor | 否 | string; 保留字段,不支持分页 |
curl --get "https://api.apihop.ai/v1/threads/web/users/reposts" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "user_id=63625256886"web-fetch_user_replies
用户回复
GET https://api.apihop.ai/v1/threads/web/users/replies
每次成功请求价格: $0.002 (2000 credits).
| 字段 | 必填 | 约束 |
|---|---|---|
user_id | 是 | string; 纯数字用户 ID; ^[0-9]+$ |
end_cursor | 否 | string; 保留字段,不支持分页 |
curl --get "https://api.apihop.ai/v1/threads/web/users/replies" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "user_id=63625256886"web-fetch_post_detail
按数字 ID 查询帖子
GET https://api.apihop.ai/v1/threads/web/posts/by-id
每次成功请求价格: $0.002 (2000 credits).
| 字段 | 必填 | 约束 |
|---|---|---|
post_id | 是 | string; 纯数字帖子 ID; ^[0-9]+$ |
curl --get "https://api.apihop.ai/v1/threads/web/posts/by-id" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "post_id=3349029093483693129"web-fetch_post_detail_v2
按短代码或 URL 查询帖子
GET https://api.apihop.ai/v1/threads/web/posts/detail
每次成功请求价格: $0.002 (2000 credits).
至少提供一个: post_id, url.
| 字段 | 必填 | 约束 |
|---|---|---|
post_id | 否 | string; 帖子短代码 |
url | 否 | string; 完整帖子 URL |
curl --get "https://api.apihop.ai/v1/threads/web/posts/detail" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "post_id=DPVUglOjOUu"web-fetch_post_comments
帖子评论
GET https://api.apihop.ai/v1/threads/web/posts/comments
每次成功请求价格: $0.002 (2000 credits).
| 字段 | 必填 | 约束 |
|---|---|---|
post_id | 是 | string; 纯数字帖子 ID; ^[0-9]+$ |
end_cursor | 否 | string; 保留字段,不支持分页 |
curl --get "https://api.apihop.ai/v1/threads/web/posts/comments" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "post_id=3390920896561588969"web-search_top
热门搜索
GET https://api.apihop.ai/v1/threads/web/search/top
每次成功请求价格: $0.002 (2000 credits).
| 字段 | 必填 | 约束 |
|---|---|---|
query | 是 | string; 搜索关键词 |
end_cursor | 否 | string; 保留字段,不支持分页 |
curl --get "https://api.apihop.ai/v1/threads/web/search/top" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=bitcoin"web-search_recent
最新搜索
GET https://api.apihop.ai/v1/threads/web/search/recent
每次成功请求价格: $0.002 (2000 credits).
| 字段 | 必填 | 约束 |
|---|---|---|
query | 是 | string; 搜索关键词 |
end_cursor | 否 | string; 保留字段,不支持分页 |
curl --get "https://api.apihop.ai/v1/threads/web/search/recent" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=bitcoin"web-search_posts
帖子搜索
GET https://api.apihop.ai/v1/threads/web/search/posts
每次成功请求价格: $0.002 (2000 credits).
| 字段 | 必填 | 约束 |
|---|---|---|
query | 是 | string; 搜索关键词 |
curl --get "https://api.apihop.ai/v1/threads/web/search/posts" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=bitcoin"web-search_profiles
用户搜索
GET https://api.apihop.ai/v1/threads/web/search/profiles
每次成功请求价格: $0.002 (2000 credits).
| 字段 | 必填 | 约束 |
|---|---|---|
query | 是 | string; 搜索关键词 |
curl --get "https://api.apihop.ai/v1/threads/web/search/profiles" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=mark"响应
保留原始 JSON code/data 结构及数字精度。成功要求 code=200 且 data 非 null。HTTP 200 中的业务错误仍视为失败。各接口响应结构不同;以下为说明性示例,不是实时响应。
{"code":200,"data":{"post":{"code":"DPVUglOjOUu"},"replies":[]}}错误
HTTP 400:参数错误;401:鉴权失败;402:余额不足;403:无访问权限;405:方法不支持;408:请求取消;429:限流;5xx:服务或上游错误,其中 504 表示超时。排查时请保留 X-Request-Id。
来源
于 2026-10-31 核对官方 OpenAPI V5.3.2 和端点价格。仅出现在价目表中的 fetch_post_id_from_url 不在 OpenAPI 中,因此不纳入接入范围。