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

# Pipixia Posts API

> Pipixia posts with type, caption, topic, posted date and views. Search by keyword.

`POST /v1/data/pipixia/posts/run`

**Pricing:** $0.0065 per post ($6.50 per 1,000).

## Request

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

**queries** `string[]` *required*

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

**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/pipixia/posts/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "queries": [
      "猫",
      "搞笑",
      "原神"
    ],
    "maxResults": 10
  }
}'
```

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

r = requests.post(
    "https://api.mindcase.co/v1/data/pipixia/posts/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "queries": [
        "猫",
        "搞笑",
        "原神"
    ],
    "maxResults": 10
}},
)
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/pipixia/posts/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "queries": [
    "猫",
    "搞笑",
    "原神"
  ],
  "maxResults": 10
} }),
});
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 |
| `postType` | Post Type | text |
| `caption` | Caption | text |
| `topic` | Topic | text |
| `postedDate` | Posted Date | date |
| `views` | Views | number |
| `plays` | Plays | number |
| `likes` | Likes | number |
| `comments` | Comments | number |
| `shares` | Shares | number |
| `saves` | Saves | number |
| `durationS` | Duration S | number |
| `imageCount` | Image Count | number |
| `thumbnail` | Thumbnail | image |
| `videoUrl` | Video URL | url |
| `ipLocation` | IP Location | text |
| `author` | Author | object |
| `sourceQuery` | Source Query | text |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "pipixia/posts",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "imageCount": null,
      "videoUrl": "https://v3-dy-o.zjcdn.com/c39cb05a211964af56d51c8046f956ac/6ae738d7/video/tos/cn/tos-cn-ve-0076/oYKYk3QbfAIlPJvWLBY1IaAmJighiCGTLB2EN6/?a=1319&ch=0&cr=7&dr=3...",
      "author": {
        "id": "800872259130936",
        "name": "迪丽冷芭",
        "avatarUrl": "https://p6-ppx-sign.byteimg.com/tos-cn-i-8gu37r9deh/5f54facb5fdd4251a262b382d80a1ed4~tplv-f3gpralwbh-noop-v4:200:200:q60.webp?lk3s=1e780327&x-expires=1825070...",
        "followers": 16270
      },
      "topic": null,
      "saves": 678,
      "postedDate": "2026-10-21T02:35:24+00:00",
      "shares": 35,
      "postUrl": "https://h5.pipix.com/ppx/item/7698944159180134697",
      "plays": 173143,
      "likes": 1654,
      "views": 246239,
      "comments": 39,
      "ipLocation": "江苏",
      "postType": "video",
      "sourceQuery": "猫",
      "thumbnail": "https://p9-ppx-sign.byteimg.com/tos-cn-p-0076/886baeb5301f4cebaf33a743a76a7d6d_1792550146~tplv-f3gpralwbh-noop-v4:712:1272:q60.webp?lk3s=1e780327&x-expires=1...",
      "postId": "7698944159180134697",
      "durationS": 18,
      "caption": "猫：真的不需要叫家鼠吗"
    }
  ]
}
```


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