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

YouTube Shorts Search

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

Search YouTube Shorts by keyword and get matching Shorts (title, views, URL) with cursor pagination as normalized JSON.

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

Entorno de pruebas

Entrada
The keyword to search Shorts for.
Continuation token from a previous response for pagination.
Sort order: "relevance" (default) or "popular" (most-viewed).
Filter by upload recency. Omit for any time.
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

YouTube Shorts Search API

Returns YouTube Shorts that match a keyword. Each result has an ID, title, URL and view count. You only need a query, and you can sort, filter by upload date and page through results.

Use cases

  • Find the most-viewed Shorts for a topic by setting sortBy to popular.
  • Track new Shorts about a brand or keyword by setting uploadDate to today or this_week.
  • Build a list of Short URLs and IDs to pass to a video details lookup.
  • Compare view counts across Shorts that cover the same topic.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/search-shorts" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "cats"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesThe keyword to search Shorts for.
cursorstringNoContinuation token from a previous response for pagination.
sortBystringNoSort order: "relevance" (default) or "popular" (most-viewed).
uploadDatestringNoFilter by upload recency. Omit for any time.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "nextCursor": "cur_fPTLy4Ok3x74uh2aBTeYXQ",
    "shorts": [
      {
        "contentType": "short",
        "id": "M93h41hyPsM",
        "title": "Ranking Funny Cat Moment",
        "url": "https://www.youtube.com/watch?v=M93h41hyPsM",
        "views": 17000000,
        "viewsAvailable": true
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.shorts[]List of Shorts that match the query.
data.shorts[].idYouTube video ID of the Short.
data.shorts[].titleTitle of the Short. It can include hashtags and emoji.
data.shorts[].urlWatch URL for the Short, in the form https://www.youtube.com/watch?v=<id>.
data.shorts[].viewsView count as a number.
data.shorts[].viewsAvailabletrue when a view count was found for the Short. Check it before you use views.
data.shorts[].contentTypeType of the result. The value is short for these results.
data.nextCursorToken for the next page of results. Send it as cursor in the next request.
foundtrue when the search returned results.

Notes

  • For the next page, repeat the same request and add cursor with the value of data.nextCursor.
  • Use the id value with YouTube Video Details to get more data about a single Short.
  • To list the Shorts of one channel instead of searching by keyword, use YouTube Channel Shorts.

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 Shorts Search?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/youtube/search-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 Shorts Search?

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 Shorts Search?

Requeridos: query (string). Opcionales: cursor (string), sortBy (una de relevance, popular) y uploadDate (una de today, this_week, this_month, this_year). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de YouTube Shorts Search?

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 Shorts Search 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.