> ## 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.

# Toutiao Trending API

> Trending topics on Toutiao with rank, title, hot value, category, label and URL.

`POST /v1/data/toutiao/trending/run`

**Pricing:** $0.002 per topic ($2.00 per 1,000).

## Request

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

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

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

Max `100`.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/toutiao/trending/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "maxResults": 15
  }
}'
```

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

r = requests.post(
    "https://api.mindcase.co/v1/data/toutiao/trending/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "maxResults": 15
}},
)
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/toutiao/trending/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "maxResults": 15
} }),
});
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 topic, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `topicId` | Topic ID | text |
| `rank` | Rank | number |
| `title` | Title | text |
| `hotValue` | Hot Value | number |
| `url` | URL | url |
| `category` | Category | text |
| `label` | Label | text |
| `imageUrl` | Image URL | url |
| `capturedAt` | Captured At | datetime |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "toutiao/trending",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "rank": 1,
      "url": "https://www.toutiao.com/trending/7702652501526318633",
      "imageUrl": "https://p3-sign.toutiaoimg.com/top-static-files-outer/breaknews/b4a287ad-0c70-4fa8-91d7-407e228ef235~tplv-tt-shrink:960:540.jpeg?_iz=30575&from=sign_default&...",
      "title": "五中全会《决定》全文发布",
      "category": null,
      "capturedAt": "2026-11-01T12:19:45.922Z",
      "topicId": "7702652501526318633",
      "label": null,
      "hotValue": 8315615
    }
  ]
}
```


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