Sand AISand AI MAGI-2MAGI-2 agora está na SandBase: vídeo em 1080p com áudio nativoExperimente agora

YouTube Shorts Search

Docs da 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.

Preço
A partir de $0.0012USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 3 opcionais

Playground

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.
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da 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 mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
YouTubeA partir de $0.0012 por chamadaJSON
YouTubeA partir de $0.00045 por chamadaJSON
YouTubeA partir de $0.0012 por chamadaJSON
YouTubeA partir de $0.0012 por chamadaJSON
YouTubeA partir de $0.0012 por chamadaJSON
YouTube$0.014286 por chamadaJSON

Guias:Best YouTube API in 2026: Pricing Compared

Perguntas

FAQ

Como eu uso a API YouTube Shorts Search?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/youtube/search-shorts com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.

Quanto custa a API YouTube Shorts Search?

A partir de $0.0012 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.

Quais parâmetros a API YouTube Shorts Search aceita?

Obrigatórios: query (string). Opcionais: cursor (string), sortBy (um de relevance, popular) e uploadDate (um de today, this_week, this_month, this_year). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API YouTube Shorts Search retorna?

Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.

Preciso de uma conta de desenvolvedor YouTube ou de uma chave de API?

Não. YouTube Shorts Search funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do YouTube separadamente.