Social media5 min readBy Purrkey teamUpdated

How to fetch a Weibo user's timeline posts by UID

Fetch a Weibo user's timeline posts by UID so an agent can review recent account activity and page through supplier JSON results

On this page

You have eight Weibo accounts to check each week and need the timeline posts for each one before a competitor digest goes out. The work is a paged fetch per account, followed by a table that marks which accounts need closer monitoring

The table below is the deliverable design. Values here are placeholders showing the shape; no page has been mapped into it

Example input and the digest table

Example input, to be replaced with your target: query.uid 7449707763, query.page 1. The UID comes from the account you are monitoring

The contract lists query.uid as required. It also lists query.filter_type with a default, query.month as an optional YYYYMMDD string, and query.page with a default of 1 and a minimum of 1. Adjust query.month for a narrower window and raise query.page for deeper collection. Do not treat that list as the full set of accepted input; the contract was edited to remove other routing options, and this guide does not state that the input is exhaustive

If your digest also needs video posts, the companion guide for listing a user's videos by ID uses the same account identifier: List a Weibo user's videos by ID

categorycard_typeopenurlanchorIdpagecountmax_iderrorNotes
(string)(integer)(URL or empty)(string)(integer)(integer)(integer)(error or empty)(your note)

Use the Notes column to mark an account for closer monitoring; the contract does not set a threshold for that decision

Fetch one page per call

Call tikhub.weibo.app.fetch_user_timeline once per page. Agents call it through POST /v1/runs with toolId tikhub.weibo.app.fetch_user_timeline. Start at query.page 1, then increase the page number for each later call. Set a page cap before the run because the contract does not define a stop rule. A successful page with no items is still charged under the fixed per-call price

Read the output fields that drive the digest

The output is the supplier's raw JSON with no fixed schema. This limit sits beside the mapping step because keys may vary across inputs; read the field names from the first page before you map later pages

data.items is the array to iterate. For each item, record category at the item level, plus data.card_type and data.openurl under the item's data object, and itemExt.anchorId under itemExt. Those fields fill the first table columns

Paging metadata sits under data.moreInfo. Record data.moreInfo.params.page, data.moreInfo.params.count, data.moreInfo.params.max_id and data.moreInfo.error on the same row as the items from that call. A non-empty error is a review cue for the Notes column; the contract does not define a retry rule

This tool cannot return a normalized post table. It preserves supplier JSON, so your worksheet is the mapping layer

What one real call returned

On 2026-11-13, one real call was made with query.uid set to 7449707763, query.filter_type at its default, query.month null, and query.page 1

Billing status was SETTLED, charged 0.001 USD against a ceiling of 0.001 USD

Top-level keys of data were dsl, items, config, navInfo, moreInfo, pageData, loadedInfo and refreshInfo. data.items was an array with 13 items; the first item keys were data, style, itemExt and category. data.config, data.navInfo, data.pageData, data.loadedInfo and data.refreshInfo were each {}

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch a Weibo
user timeline for the UID below. Check the current inputs and price of
tikhub.weibo.app.fetch_user_timeline before running anything. Start at
page 1 and repeat the call for pages 2 through 5. Read the field names
from the first page, then map later pages to those names. Return a table
with category, card_type, openurl, anchorId, page, count, max_id, error
and Notes. Leave a cell empty when the response has no value for it. Do
not infer missing fields.

UID: 7449707763

Replace the UID with your target account. The prompt caps the run at five pages; change the cap if your digest needs a deeper review

Estimated tool cost

Price read through inspect on November 13, 2026: $0.001 per call. The totals below are ceilings: each line assumes one call per page at the fixed per-call price, and the price rule says successful empty results are charged. Agent model fees are not counted

StepFormulaUnit pricePlanned quantityTotal
One-page timeline checkcalls x per-call price$0.001 per call1$0.001
Five-page timeline reviewcalls x per-call price$0.001 per call5$0.005
Eight accounts, one page eachcalls x per-call price$0.001 per call8$0.008
Eight accounts, five pages eachcalls x per-call price$0.001 per call40$0.040

A weekly digest for eight accounts costs at most $0.008 for one page per account and at most $0.040 for five pages per account. Both plans assume each page call succeeds; an empty successful page is charged the same fixed price

Run the first page

Open the Weibo timeline tool and run the one-page check with your first UID

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Weibo.
Explore Weibo tools and pricing

FAQ

How do I fetch a Weibo user's timeline posts by UID?

Send the UID as query.uid to tikhub.weibo.app.fetch_user_timeline, with query.page starting at 1, then repeat with higher page numbers for deeper collection. The response preserves supplier JSON, so record fields from data.items and data.moreInfo as they appear.

What inputs does tikhub.weibo.app.fetch_user_timeline take?

The contract lists query.uid as required, plus query.filter_type, query.month in YYYYMMDD and query.page starting at 1. Do not treat that list as exhaustive.

What does the response contain?

The observed run had top-level keys dsl, items, config, navInfo, moreInfo, pageData, loadedInfo and refreshInfo. data.items is an array, and paging fields sit under data.moreInfo.

How much does a five-page timeline review cost?

Five calls are listed at $0.001 per call, so the five-page review is $0.005 at most. The price rule says successful empty results are charged.

What happens when a page has no posts?

A successful empty result is still charged one call at the fixed per-call price. The page can still carry data.moreInfo fields for your table.

Can this tool return a normalized post table?

No. The output preserves supplier JSON, so field names can vary across inputs and your worksheet supplies the mapping.

How should I record paging fields?

Record data.moreInfo.params.page, count, max_id and data.moreInfo.error with the item rows from that call. The contract does not define a cross-page merge rule.

Next step

Try this with Weibo

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See Weibo tools

Share this article