---
title: "Admin Youtube Upload Top Trending"
method: POST
path: "/v1/admin/youtube/upload-top-trending"
---

# Admin Youtube Upload Top Trending

`POST /v1/admin/youtube/upload-top-trending`

## Request

- Base URL: `https://api.storyflo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.storyflo.com/v1/admin/youtube/upload-top-trending`
- Auth: none declared

D-6 · pick the top-N trending articles in the last ``days``
window and upload each as a YouTube video via the dispatcher.

YouTube quota is ~6 uploads/day (10K units / 1600 per upload), so
the default top_n=3 leaves headroom for the existing daily-brief
+ highlight reel uploads to coexist. Skips articles that already
have a `__youtube__.article` video_id stamped.

Operator can crontab this endpoint daily, or fire manually.

## Headers

- `x-storyflo-email-token` string, nullable

## Request body

- YouTubeTrendingBody
  - `top_n` integer
  - `days` integer
  - `dry_run` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/storyflo/apis/storyflo-inference-router.md) · [All operations](https://skmtc.dev/storyflo/apis/storyflo-inference-router/llms.txt) · [OpenAPI document](https://skmtc.dev/storyflo/apis/storyflo-inference-router/revisions/c3a1a735ac7a?raw)
