# Weibo User Timeline API Documentation

Retrieve the first page of public posts from a Weibo user timeline. Each post carries the post ID, creation date, text (HTML stripped), repost count, comment count, like count and the author summary. Anonymous visitors can access page 1 only; deeper pagination requires a login session. A valid empty result (user with no posts) is a successful response.

- **Documentation:** [https://scrappa.co/docs/weibo-api/weibo_posts](https://scrappa.co/docs/weibo-api/weibo_posts)
- **API group:** Weibo API
- **Endpoint:** `GET https://scrappa.co/api/weibo/posts`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `uid` | string | Yes | Weibo user ID (numeric string). Example: 7857214613. |
| `page` | integer | No | 1-based page number. Anonymous visitors: page 1 only. Defaults to 1. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/weibo/posts?uid=7857214613&page=1"
```

## Example response

```json
{
    "success": true,
    "data": {
        "uid": "7857214613",
        "total": 19711,
        "has_more": true,
        "posts": [
            {
                "id": "5327551727668908",
                "mid": "5327551727668908",
                "bid": "RlrTs3y7X",
                "created_at": "2026-08-21T13:06:32Z",
                "text": "Post text...",
                "reposts_count": 10,
                "comments_count": 20,
                "attitudes_count": 30,
                "user": {
                    "id": 7857214613,
                    "screen_name": "\u5e74\u7cd5\u6761\u597d\u9999"
                }
            }
        ]
    },
    "meta": {
        "endpoint_family": "user_timeline"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The uid parameter is missing or not a numeric string. This response is not billable. |
| 404 | User Not Found | The requested Weibo user was not found. This response is not billable. |
| 503 | Upstream Unavailable | The Weibo API is temporarily unavailable. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
