# Kuaishou Trending API (kuaishou.trending)

- Canonical page: https://everyinfra.com/en/kuaishou-api/trending
- Endpoint: POST /api/v1/social with {"platform": "kuaishou", "action": "trending", "params": {...}}
- Price: $0.000806 per call ($0.81 per 1,000 requests); failed and empty results are not charged
- Returns: list, default 50, max 50 per call (larger values are capped)
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=kuaishou&action=trending

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| limit | integer (1–50) | no | 50 | The most rows to return in this call, an integer from 1 to 50. The default applies when you leave it out, and a call can return fewer rows. Larger values are accepted and capped at the maximum. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| rank | Hot-list position from 1 (trending), in Kuaishou's order; the pinned entry is first. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| hot_value | Heat value shown on the hot list (trending), converted from text such as 12.442 million to the whole number 12442000; the pinned entry may have none. Compare it only within the list. |
| label | Hot-list badge as shown (trending), such as pinned, new or exclusive; absent when there is no badge. |
| cover_url | Cover image; on trending, the picture for the hot-list entry. |
| video_ids | Short IDs (starting with 3x) of the videos behind a hot-list entry (trending); pass one as `url` to video or comments. Sometimes the list carries no video IDs, and the field is then absent. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "kuaishou",
  "action": "trending",
  "params": {}
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "kuaishou",
        "action": "trending",
        "params": {},
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "kuaishou",
  "action": "trending",
  "results": [
    {
      "rank": …,
      "title": …,
      "hot_value": …,
      "label": …,
      "cover_url": …,
      "video_ids": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=kuaishou
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
