YouTube Trending Shorts
https://api.sandbase.ai/v1/api/youtube/trending-shortsList currently trending YouTube Shorts (title, channel, views, likes, duration).
- Preis
- Ab $0.0012USD / Aufruf
- Methode
- POST
- Antwort
- JSON
- Parameter
- 0 erforderlich · 0 optional
Playground
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
API-README
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.
Jetzt loslegen
Senden Sie Ihre erste Anfrage
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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. Authentifizierung
Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
3. Parameter
Für diese API wurde kein Parameterschema veröffentlicht.
4. Antwort
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
Verwandte APIs
| API | Preis | Antwort |
|---|---|---|
YouTube Trending ShortsDiese API YouTube | Ab $0.0012 pro Aufruf | JSON |
YouTube | Ab $0.00045 pro Aufruf | JSON |
YouTube | Ab $0.0012 pro Aufruf | JSON |
YouTube | Ab $0.0012 pro Aufruf | JSON |
YouTube | Ab $0.0012 pro Aufruf | JSON |
YouTube | $0.014286 pro Aufruf | JSON |
Anleitungen:Best YouTube API in 2026: Pricing Compared
Fragen
FAQ
Wie verwende ich die YouTube Trending Shorts API?
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/youtube/trending-shorts mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Was kostet die YouTube Trending Shorts API?
Ab $0.0012 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Welche Parameter akzeptiert die YouTube Trending Shorts API?
YouTube Trending Shorts benötigt keine Eingabeparameter; senden Sie einen leeren JSON-Body.
Was gibt die YouTube Trending Shorts API zurück?
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Benötige ich ein YouTube-Entwicklerkonto oder einen API-Schlüssel?
Nein. YouTube Trending Shorts läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für YouTube API beantragen.
