YouTube Trending Shorts
https://api.sandbase.ai/v1/api/youtube/trending-shortsList currently trending YouTube Shorts (title, channel, views, likes, duration).
- Цена
- От $0.0012USD / вызов
- Метод
- POST
- Ответ
- JSON
- Параметры
- 0 обязательных · 0 необязательных
Песочница
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
README по API
YouTube Trending Shorts API
Returns a list of YouTube Shorts that are currently trending. It needs no input: send an empty JSON object {}. Each item has the title, channel, view, like and comment counts, duration, and links.
Use cases
- Spot which Shorts are gaining views right now to find topics for your own content.
- Track the channels and categories that appear most often in the trending list.
- Build a dashboard or feed that shows trending Shorts with thumbnails and links.
- Collect channel IDs from trending Shorts and pass them to a channel lookup for deeper research.
Request
curl -X POST "https://api.sandbase.ai/v1/api/youtube/trending-shorts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"shorts": [
{
"authorHandle": "globalmindapparel",
"authorId": "UC2pn4FHmt3Td-A2kkhcYAqg",
"authorUrl": "https://www.youtube.com/@globalmindapparel",
"category": "People & Blogs",
"channelTitle": "Global Mind Apparel",
"comments": 16000,
"createdUtc": 1790109026,
"duration": "00:02:24",
"durationMs": 144000,
"id": "jm-1NeOounQ",
"image": "https://img.youtube.com/vi/jm-1NeOounQ/maxresdefault.jpg",
"likes": 321806
}
]
},
"found": true
}
Response fields
| Field | Meaning |
|---|---|
data.shorts[].id | The YouTube video ID of the Short. |
data.shorts[].title | The title of the Short. |
data.shorts[].url | Link to the Short on YouTube. |
data.shorts[].image | Thumbnail image URL for the Short. |
data.shorts[].views / likes / comments | Counts of views, likes and comments on the Short. |
data.shorts[].duration / durationMs | Length of the Short as an HH:MM:SS string and in milliseconds. |
data.shorts[].channelTitle / authorHandle | Display name and @ handle of the channel that posted the Short. |
data.shorts[].authorId / authorUrl | The channel ID (starts with UC) and the channel page URL. |
data.shorts[].category | The YouTube category of the Short, for example Entertainment. |
data.shorts[].createdUtc | Creation time of the Short as a Unix timestamp in seconds. |
Notes
- The endpoint takes no parameters. Send
{}as the body. - Use
authorIdwith YouTube Channel or YouTube Channel Shorts to look at the channel behind a Short. - Pass
idto YouTube Video Details to get more data about a single Short. durationcan be longer than one minute, so checkdurationMsif you need to filter by length.
Pricing
Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
Начните разработку
Отправьте свой первый запрос
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/trending-shorts" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Аутентификация
Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
3. Параметры
Для этого API не опубликована схема параметров.
4. Ответ
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
Связанные APIs
| API | Цена | Ответ |
|---|---|---|
YouTube Trending ShortsЭтот API YouTube | От $0.0012 за запрос | JSON |
YouTube | От $0.00045 за запрос | JSON |
YouTube | От $0.0012 за запрос | JSON |
YouTube | От $0.0012 за запрос | JSON |
YouTube | От $0.0012 за запрос | JSON |
YouTube | $0.014286 за запрос | JSON |
Руководства:Best YouTube API in 2026: Pricing Compared
Вопросы
FAQ
Как использовать API YouTube Trending Shorts?
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/youtube/trending-shorts, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
Сколько стоит API YouTube Trending Shorts?
От $0.0012 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Какие параметры принимает API YouTube Trending Shorts?
YouTube Trending Shorts не принимает входных параметров; отправьте пустое тело JSON.
Что возвращает API YouTube Trending Shorts?
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нужен ли мне аккаунт разработчика YouTube или API key?
Нет. YouTube Trending Shorts работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API YouTube.
