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

# videos_trending

> What is trending today.

> [!NOTE]
>
> Uses credits · Your own key only

TikTok's US feed or YouTube Shorts, best outliers first. Instagram has no trending feed: use `videos_find`. Takes 5-15 s and uses a few Constella credits.

Call it at `POST /platform/v1/me/tools/videos_trending`. On MCP, your AI tool calls `videos_trending` with the same arguments.

## Arguments

Send these inside `arguments`.

**platform** `string` (default: "tiktok")

`tiktok` or `youtube`.

## Returns

The tool's answer comes back under `result`.

**videos** `Video[]`

A Video has `platform`, `id`, `url`, `author`, `followers`, `caption`, `views`, `likes`, `comments`, `shares`, `saves`, `posted_at`, `duration_s`, `thumbnail`, `video` and `outlier` (how many times better than usual).

```bash Your key theme={"system"}
curl https://api.constella.app/platform/v1/me/tools/videos_trending \
  -H "Authorization: Bearer $CONSTELLA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"arguments": {"platform": "youtube"}}'
```

```python Python theme={"system"}
import os, requests

r = requests.post(
    "https://api.constella.app/platform/v1/me/tools/videos_trending",
    headers={"Authorization": f"Bearer {os.environ['CONSTELLA_API_KEY']}", "X-Constella-Client": "my-script"},
    json={"arguments": {"platform": "youtube"}},
)
print(r.json()["result"])
```

```javascript JavaScript theme={"system"}
const res = await fetch("https://api.constella.app/platform/v1/me/tools/videos_trending", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CONSTELLA_API_KEY}`,
    "X-Constella-Client": "my-script",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"arguments": {"platform": "youtube"}}),
});
const { result } = await res.json();
```

```json 200 theme={"system"}
{
  "result": {
    "videos": [
      {
        "platform": "youtube",
        "views": 880000,
        "outlier": 12.4
      }
    ]
  }
}
```


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