YouTube Trending Shorts
https://api.sandbase.ai/v1/api/youtube/trending-shortsList currently trending YouTube Shorts (title, channel, views, likes, duration).
- Cena
- Od $0.0012USD / wywołanie
- Metoda
- POST
- Odpowiedź
- JSON
- Parametry
- 0 wymaganych · 0 opcjonalnych
Playground
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
Zacznij tworzyć
Wyślij pierwsze żądanie
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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. Uwierzytelnianie
Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
3. Parametry
Nie opublikowano schematu parametrów dla tego API.
4. Odpowiedź
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
Powiązane APIs
| API | Cena | Odpowiedź |
|---|---|---|
YouTube Trending ShortsTo API YouTube | Od $0.0012 za wywołanie | JSON |
YouTube | Od $0.00045 za wywołanie | JSON |
YouTube | Od $0.0012 za wywołanie | JSON |
YouTube | Od $0.0012 za wywołanie | JSON |
YouTube | Od $0.0012 za wywołanie | JSON |
YouTube | $0.014286 za wywołanie | JSON |
Przewodniki:Best YouTube API in 2026: Pricing Compared
Pytania
FAQ
Jak używać API YouTube Trending Shorts?
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/youtube/trending-shorts z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
Ile kosztuje API YouTube Trending Shorts?
Od $0.0012 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Jakie parametry przyjmuje API YouTube Trending Shorts?
YouTube Trending Shorts nie przyjmuje żadnych parametrów wejściowych; wyślij pustą treść JSON.
Co zwraca API YouTube Trending Shorts?
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Czy potrzebuję konta deweloperskiego YouTube lub klucza API?
Nie. YouTube Trending Shorts działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API YouTube.
