API de YouTube

API de YouTube: Shorts en tendencia

Lista los YouTube Shorts en tendencia en este momento (título, canal, vistas, me gusta, duración).

US$1.20/1k solic., pagas por solicitud, sin suscripción.

Shorts - YouTube
youtube.com/shorts/jT7zZb3WqDu

@wrenbuildsSubscribe

built a treehouse in 24 hours

942K
12.4K
Share
Lo que devolvió la APIshorts[0]
{
"id": "jT7zZb3WqDu",
"url": "https://www.youtube.com/shorts/jT7zZb3WqDu",
"title": "built a treehouse in 24 hours",
"channelTitle": "Wren Builds",
"views": 18400000,
"likes": 942000,
"duration": "0:58",
"image": "https://i.ytimg.com/vi/jT7zZb3WqDu/hqdefault.jpg",
... 7 campos más
}
Disponibilidad
97.30%
30d · 333 llamadas
Solicitudes
333
30d · semanal, últimas 12 sem.
Respuesta
10.0s
mediana · 30d

Precios

Precios del endpoint Shorts en tendencia de la API de YouTube

Pagas
US$12.00
US$1.20/1k solic., solo por lo que usas. Sin plan mensual.
Tus primeras 83 solicitudes son gratis con el saldo inicial de US$0.10.

Pruébalo

Obtén Shorts en tendencia de YouTube en una sola solicitud

Esta API no recibe entrada. Solo ejecútala.

Abrir en
Respuesta de ejemplo
Las ejecuciones gratis devuelven solo los primeros 3 resultados. Agrega fondos a una clave para obtener la respuesta completa.

Este ejemplo muestra 18 de 19 campos. Ver todos los campos

{
  "found": true,
  "data": {
    "shorts": [
      {
        "id": "jT7zZb3WqDu",
        "url": "https://www.youtube.com/shorts/jT7zZb3WqDu",
        "title": "built a treehouse in 24 hours",
        "channelTitle": "Wren Builds",
        "views": 18400000,
        "likes": 942000,
        "duration": "0:58",
        "image": "https://i.ytimg.com/vi/jT7zZb3WqDu/hqdefault.jpg",
        "createdUtc": 1758844800,
        "comments": 12400,
        "authorId": "UC1oPn9q2rXwLm4bSzVcT5Hi",
        "authorUrl": "https://www.youtube.com/@wrenbuilds",
        "authorHandle": "wrenbuilds",
        "category": "Howto & Style",
        "durationMs": 58000
      },
      {
        "id": "kU8aAc4XrEv",
        "url": "https://www.youtube.com/shorts/kU8aAc4XrEv",
        "title": "rating airport food at every gate",
        "channelTitle": "Dana Ferris",
        "views": 9200000,
        "likes": 511000,
        "duration": "0:35",
        "image": "https://i.ytimg.com/vi/kU8aAc4XrEv/hqdefault.jpg",
        "createdUtc": 1758672000,
        "comments": 8300,
        "authorId": "UC2pQo0r3sYxMn5cTaWdU6Ij",
        "authorUrl": "https://www.youtube.com/@danaferris",
        "authorHandle": "danaferris",
        "category": "Travel & Events",
        "durationMs": 35000
      },
      {
        "id": "lV9bBd5YsFw",
        "url": "https://www.youtube.com/shorts/lV9bBd5YsFw",
        "title": "this $8 kitchen gadget actually works",
        "channelTitle": "Test Kitchen Theo",
        "views": 5600000,
        "likes": 298000,
        "duration": "0:47",
        "image": "https://i.ytimg.com/vi/lV9bBd5YsFw/hqdefault.jpg",
        "createdUtc": 1758499200,
        "comments": 4100,
        "authorId": "UC3qRp1s4tZyNo6dUbXeV7Jk",
        "authorUrl": "https://www.youtube.com/@testkitchentheo",
        "authorHandle": "testkitchentheo",
        "category": "Howto & Style",
        "durationMs": 47000
      }
    ]
  }
}

Referencia completa de parámetros y respuesta: cada campo, tipo y ejemplo de este endpoint.

Referencia

Una solicitud, un formato de respuesta.

Cada campo que envías y cada campo que recibes, cada uno con un ejemplo real.

Verificado por última vez el 2026-11-14 · disponibilidad y latencia medidas en 30d

Cuerpo de la solicitud

JSON, enviado por POST a este endpoint.

Este endpoint no tiene campos publicados.

Envías. Un cuerpo JSON pequeño. Los valores que se muestran son ejemplos para reemplazar por los tuyos.

Respuesta

JSON, un valor de ejemplo por campo.

each shortdata.shorts[]

Populated whenever the provider has data for the entity.

  • authorHandlestring

    wrenbuilds

    The publishing channel's @handle, without the leading @.

  • authorIdstring

    UC1oPn9q2rXwLm4bSzVcT5Hi

    YouTube channel ID of the publishing channel.

  • authorUrlstring

    https://www.youtube.com/@wrenbuilds

    Canonical URL of the publishing channel, tracking query parameters stripped.

  • categorystring

    Howto & Style

    YouTube category the short is filed under.

  • channelTitlestring

    Wren Builds

    Populated whenever the provider has data for the entity.

  • commentsinteger

    12400

    Number of comments on the short. Rounded as YouTube shows it on Shorts (1.2K, 15K), so counts of 1,000 or more are approximate.

  • createdUtcnumber

    1758844800

    UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.

  • durationstring

    0:58

    Populated whenever the provider has data for the entity.

  • durationMsinteger

    58000

    Length of the short in milliseconds.

  • idstring

    jT7zZb3WqDu

    Populated whenever the provider has data for the entity.

  • imagestring

    https://i.ytimg.com/vi/jT7zZb3WqDu/hqdefault.jpg

    URL of the short thumbnail image, tracking query parameters stripped.

  • likesinteger

    942000

  • titlestring

    built a treehouse in 24 hours

    Populated whenever the provider has data for the entity.

  • urlstring

    https://www.youtube.com/shorts/jT7zZb3WqDu

    Populated whenever the provider has data for the entity.

  • viewsinteger

    18400000

top level
  • foundboolean

    true

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Recibes. Campos con nombre y tipo, con el mismo formato sin importar qué fuente responda.

Preguntas frecuentes

Acerca del endpoint Shorts en tendencia de la API de YouTube

El endpoint Shorts en tendencia de AnyAPI para YouTube devuelve datos de YouTube como JSON normalizado con una sola llamada POST a /v1/run/youtube.trending_shorts. Lista los YouTube Shorts en tendencia en este momento (título, canal, vistas, me gusta, duración). AnyAPI devuelve un único esquema normalizado sin importar qué fuente atienda la solicitud. Cuesta desde US$1.20 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. En los últimos 30 días, el 97.3% de las llamadas al endpoint Shorts en tendencia de la API de YouTube a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 10.0 segundos en 333 llamadas medidas.

Cuesta desde US$1.20 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. Agregas fondos a una billetera en dólares y cada llamada descuenta de ella. Algunas solicitudes fallidas pagadas con la billetera generan cargos de procesamiento que trasladamos al costo, sin margen; la respuesta de error muestra el monto cobrado.

Lista los YouTube Shorts en tendencia en este momento (título, canal, vistas, me gusta, duración). La respuesta es JSON normalizado con el mismo envoltorio que devuelve cada endpoint de AnyAPI, así que procesar un segundo endpoint es solo cambiar la URL.

En los últimos 30 días, el 97.3% de las llamadas al endpoint Shorts en tendencia de la API de YouTube a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 10.0 segundos en 333 llamadas medidas. Estas son mediciones propias de AnyAPI sobre el tráfico que pasa por el gateway, recalculadas continuamente, no un objetivo de nivel de servicio publicado.

Sí. Una cuenta nueva de AnyAPI empieza con US$0.10 de saldo gratis, sin tarjeta, que alcanza para 83 llamadas a Shorts en tendencia de YouTube a US$0.0012 cada una.

Envía una solicitud POST a https://api.getanyapi.com/v1/run/youtube.trending_shorts con tu clave de AnyAPI en un encabezado "Authorization: Bearer" y la entrada como cuerpo JSON. La misma clave y la misma billetera sirven para todos los endpoints de AnyAPI.

No. Agregas dólares a un solo saldo prepagado de AnyAPI y cada solicitud descuenta de él. No hay plan mensual ni mínimo, y el mismo saldo paga todos los endpoints de AnyAPI.

Sí. Instala @getanyapi/sdk desde npm para TypeScript o getanyapi desde pip para Python. Ambos llaman a todos los endpoints de AnyAPI con la misma clave, y también sirve cualquier cliente HTTP.

Sí. Un agente puede conectarse al servidor MCP de AnyAPI en https://api.getanyapi.com/mcp, o crear su propia clave de prueba gratis con un solo POST sin autenticar a https://api.getanyapi.com/agent/signup y llamar a este endpoint por HTTP.