Weibo-App-API

获取用户发布的微博/Get user timeline

Changed on

[中文]

用途:

  • 获取指定用户发布的微博列表,支持分页和多种内容筛选。

参数:

  • uid: 用户ID(必填)
  • page: 页码,从1开始(默认1)
  • filter_type: 筛选类型(默认"all")
    • all: 全部微博
    • original: 原创微博
    • likes: 她/他的赞
    • video: 视频微博
    • pic: 图片微博
    • location: 签到足迹
    • month: 按时间筛选(需要同时传入month参数)
  • month: 时间筛选参数,格式YYYYMMDD(仅当filter_type=month时使用)

返回:

  • 微博列表数据,包含微博内容、图片、视频等信息

注意:

  • 如果用户设置了隐私保护,可能无法获取微博列表
  • 每页返回数量约为20条微博
  • 使用时间筛选时必须同时指定filter_type=month和month参数

[English]

Purpose:

  • Get the list of posts published by specified user, support pagination and multiple content filters.

Parameters:

  • uid: User ID (required)
  • page: Page number, starts from 1 (default 1)
  • filter_type: Filter type (default "all")
    • all: All posts
    • original: Original posts
    • likes: Liked posts
    • video: Video posts
    • pic: Picture posts
    • location: Location check-in posts
    • month: Filter by time (must pass month parameter)
  • month: Time filter parameter, format YYYYMMDD (only used when filter_type=month)

Return:

  • Post list data, including post content, images, videos, etc.

Note:

  • If user has set privacy protection, post list may not be available
  • About 20 posts per page
  • When using time filter, must specify both filter_type=month and month parameter

[示例/Example]

uid = "7648703289" page = 1 filter_type = "all"

or filter_type = "video" for videos only

or filter_type = "month" with month = "20251010" for time filter

get/api/v1/weibo/app/fetch_user_timeline

Request

  • Base URL
    https://api.tikhub.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Query parameters

uidstring required

用户ID

pageinteger

页码

filter_typestring

筛选类型

monthstring nullable

时间筛选(YYYYMMDD格式)

Response

Successful Response

codeinteger

HTTP status code | HTTP状态码

request_idstring nullable

Unique request identifier | 唯一请求标识符

messagestring

Response message (EN-US) | 响应消息 (English)

message_zhstring

Response message (ZH-CN) | 响应消息 (中文)

supportstring

Support message | 支持消息

timestring

The time the response was generated | 生成响应的时间

time_stampinteger

The timestamp the response was generated | 生成响应的时间戳

time_zonestring

The timezone of the response time | 响应时间的时区

docsstring nullable

Link to the API Swagger documentation for this endpoint | 此端点的 API Swagger 文档链接

cache_messagestring nullable

Cache message (EN-US) | 缓存消息 (English)

cache_message_zhstring nullable

Cache message (ZH-CN) | 缓存消息 (中文)

cache_urlstring nullable

The URL to access the cached result | 访问缓存结果的 URL

routerstring

The endpoint that generated this response | 生成此响应的端点

paramsunknown
dataunknown

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      the response's property default value changed from This request will be cached. You can access the cached result directly using the URL below valid for 24 hours. Accessing the cache will not incur additional charges. to This response is cached and accessible via the URL below for 24 hours at no extra cost. The cache is for request tracing only — it doesn't affect the API's data freshness and won't be returned through the API again. for the status

    • info

      the response's property default value changed from 本次请求将被缓存,你可以使用下面的 URL 直接访问缓存结果,有效期为 24 小时,访问缓存不会产生额外费用。 to 本次响应已缓存,可通过下方 URL 直接查看,有效期 24 小时,访问缓存链接无额外费用。缓存仅用于请求溯源,不影响接口数据的时效性,也不会再次通过接口返回。 for the status