> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Weibo Posts API

> Weibo posts with text, posted date and author details. Search by keyword or pass user IDs.

`POST /v1/data/weibo/posts/run`

**Pricing:** $0.02 per post ($21.00 per 1,000).

## Ways to call it

* **Search Query**: set `query` (optional: `postedAfter`, `postedBefore`, `maxResults`)
* **User IDs**: set `userIds` (optional: `postedAfter`, `postedBefore`, `maxResults`)

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**query** `string[]`

One or more search query. One request reads them all.

**userIds** `string[]`

One or more user ids. One request reads them all.

**postedAfter** `date`

Posted After as a date (YYYY-MM-DD).

**postedBefore** `date`

Posted Before as a date (YYYY-MM-DD).

**maxResults** `integer` (default: 100)

How many posts to return in total. Defaults to 100; use 0 for all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/weibo/posts/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "query": [
      "小米"
    ]
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/weibo/posts/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "query": [
        "小米"
    ]
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/weibo/posts/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "query": [
    "小米"
  ]
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one post, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `postUrl` | Post URL | url |
| `postId` | Post ID | text |
| `text` | Text | text |
| `posted` | Posted | text |
| `authorId` | Author ID | text |
| `authorName` | Author Name | text |
| `authorProfileUrl` | Author Profile URL | url |
| `authorVerified` | Author Verified | boolean |
| `authorVerifiedReason` | Author Verified Reason | text |
| `authorFollowers` | Author Followers | number |
| `likes` | Likes | number |
| `comments` | Comments | number |
| `reposts` | Reposts | number |
| `region` | Region | text |
| `hashtags` | Hashtags | array |
| `images` | Images | array |
| `videoUrl` | Video URL | url |
| `durationS` | Duration S | number |
| `isRepost` | Is Repost | boolean |
| `repostOf` | Repost Of | object |
| `isPromoted` | Is Promoted | boolean |
| `input` | Input | text |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "weibo/posts",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "videoUrl": null,
      "images": [],
      "isRepost": false,
      "repostOf": null,
      "authorId": "2803301701",
      "posted": "2026-11-01T07:49:26+00:00",
      "authorVerified": true,
      "authorName": "人民日报",
      "authorVerifiedReason": "《人民日报》法人微博",
      "reposts": 843,
      "authorProfileUrl": "https://weibo.com/u/2803301701",
      "postUrl": "https://weibo.com/2803301701/Rpn825UqC",
      "text": "【中共中央关于持之以恒推进全面从严治党若干重大问题的决定】#二十届五中全会决定全文# #新征程上持之以恒推进全面从严治党# 中共中央关于持之以恒推进全面从严治党若干重大问题的决定",
      "authorFollowers": 158000000,
      "likes": 973,
      "region": null,
      "comments": 532,
      "postId": "5360471101408554",
      "isPromoted": false,
      "hashtags": [
        "二十届五中全会决定全文",
        "新征程上持之以恒推进全面从严治党"
      ],
      "durationS": null,
      "input": "user:2803301701"
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.