Baidu Tieba Get Post Detail
Read a Baidu Tieba thread's detail and opening post. Required input: request_body containing exactly one of thread_id (the numeric thread ID as a string, not a link) or url (the full thread URL). Search-result thread_id or post_url can be used. This interface has no pagination parameters and does not return the complete reply list. Returns the thread ID, title, opening-post plain text, post URL, publication time in Unix seconds, author, forum ID/name, opening-post images and videos, and like, share, collection, reply, and valid-floor counts. Media links may expire, and images are not guaranteed to be watermark-free. HTTP 200 may instead contain a business error with code and message.
Pricing
| Condition | Charge |
|---|---|
| Each call | 28.01 credits/call |
Each call has a fixed charge of 28.01 credits.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
request_body | object | Yes | 查询请求:填写 thread_id 或 url,二选一。 | — |
request_body.url | string | null | No | 百度贴吧主题帖完整链接,可取搜索结果的 post_url;与 thread_id 二选一。 | null |
request_body.thread_id | string | null | No | 主题帖数字 ID,以字符串填写,可取搜索结果的 thread_id;不要传帖子链接,与 url 二选一。 | null |
Invocation example
Copy the request and explore its response example.
/agent-api/v1/tool/executeX-Api-Keycurl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_baidu_tieba_get_post_detail' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"request_body": {
"thread_id": "11177657812"
}
}
}'{
"author": {
"avatar_url": "https://gss0.bdstatic.com/6LZ1dD3d1sgCo2Kml5_Y_D3/sys/portrait/item/tb.1.ee1c741b.8xu2RQL1bpRB8WRcIta-VA?t=1794370662",
"name": "贴吧用户_GQDN9EK",
"profile_url": "https://tieba.baidu.com/home/main?id=tb.1.ee1c741b.8xu2RQL1bpRB8WRcIta-VA%3Ft%3D1794370662&fr=frs",
"user_id": "5433572121"
},
"collect_count": 0,
"content": "如图,为了增加风味,本吧某大神才用了极具艺术感的挤酱料包方式,挤出空闲绝后的艺术造型。据说可以有效的增加方便面的风味。",
"floor_count": 2,
"forum_id": "28176889",
"title": "方便面大神别具一格的挤酱料方式"
}This example shows part of the response. Copied content is valid JSON.

