Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

YouTube Trending Shorts

Documentación de la API
https://api.sandbase.ai/v1/api/youtube/trending-shorts

List currently trending YouTube Shorts (title, channel, views, likes, duration).

Precio
Desde $0.0012USD / llamada
Método
POST
Respuesta
JSON
Parámetros
0 obligatorios · 0 opcionales

Entorno de pruebas

Entrada
No hay esquema de entrada disponible
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la 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

FieldMeaning
data.shorts[].idThe YouTube video ID of the Short.
data.shorts[].titleThe title of the Short.
data.shorts[].urlLink to the Short on YouTube.
data.shorts[].imageThumbnail image URL for the Short.
data.shorts[].views / likes / commentsCounts of views, likes and comments on the Short.
data.shorts[].duration / durationMsLength of the Short as an HH:MM:SS string and in milliseconds.
data.shorts[].channelTitle / authorHandleDisplay name and @ handle of the channel that posted the Short.
data.shorts[].authorId / authorUrlThe channel ID (starts with UC) and the channel page URL.
data.shorts[].categoryThe YouTube category of the Short, for example Entertainment.
data.shorts[].createdUtcCreation time of the Short as a Unix timestamp in seconds.

Notes

  • The endpoint takes no parameters. Send {} as the body.
  • Use authorId with YouTube Channel or YouTube Channel Shorts to look at the channel behind a Short.
  • Pass id to YouTube Video Details to get more data about a single Short.
  • duration can be longer than one minute, so check durationMs if 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.

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
YouTubeDesde $0.0012 por llamadaJSON
YouTubeDesde $0.00045 por llamadaJSON
YouTubeDesde $0.0012 por llamadaJSON
YouTubeDesde $0.0012 por llamadaJSON
YouTubeDesde $0.0012 por llamadaJSON
YouTube$0.014286 por llamadaJSON

Guías:Best YouTube API in 2026: Pricing Compared

Preguntas

FAQ

¿Cómo uso la API de YouTube Trending Shorts?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/youtube/trending-shorts con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de YouTube Trending Shorts?

Desde $0.0012 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de YouTube Trending Shorts?

YouTube Trending Shorts no acepta parámetros de entrada; envía un cuerpo JSON vacío.

¿Qué devuelve la API de YouTube Trending Shorts?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de YouTube?

No. YouTube Trending Shorts funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de YouTube por separado.