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

Yandex Videos Search

Docs da API
https://api.sandbase.ai/v1/api/yandex/videos

Yandex Videos results for a keyword: titles, thumbnails, durations and source sites.

Preço
$0.015USD / chamada
Método
POST
Resposta
JSON
Parâmetros
1 obrigatórios · 0 opcionais

Playground

Entrada
text
SaídaPronto

Sua saída aparecerá aqui

Preencha as entradas e clique em Executar.

README da API

Yandex Videos Search API

This API returns Yandex Videos search results for a keyword. Each result has a description, a rank position and a thumbnail URL. It needs one input, the search text in text.

Use cases

  • Check which videos Yandex ranks first for a keyword such as coffee.
  • Collect video descriptions for a topic to study how creators word their content.
  • Download thumbnail URLs to build a visual overview of a topic.
  • Compare the video results for several keywords by running one call per keyword.

Request

curl -X POST "https://api.sandbase.ai/v1/api/yandex/videos" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "coffee"}'

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

Parameters

NameTypeRequiredDescription
textstringYestext

Example response

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

{
  "search_information": {
    "within": null
  },
  "videos_results": [
    {
      "description": "In this video Jimmy is teaching us how to make the 3 most popular milk coffees w…",
      "position": 1,
      "thumbnail": "https://avatars.mds.yandex.net/get-vthumb/1650686/4b503447f957aa8cc8e5b3f605be6a…"
    }
  ]
}

Response fields

FieldMeaning
videos_results[]List of video results for the keyword, in ranked order.
videos_results[].positionRank of the video in the results. The first result has position 1.
videos_results[].descriptionText snippet describing the video. Long descriptions are cut and end with an ellipsis.
videos_results[].thumbnailURL of the video preview image. The URL ends in 564x318_1, which suggests a 564 by 318 pixel image.
search_information.withinExtra search information. It is null in this response.

Notes

  • Pass the search keyword in the text parameter. It is the only parameter and it is required.
  • The response in this example has no title, duration or source site fields, even though the API description mentions them. Rely on description, position and thumbnail.
  • For image results on the same keyword, call Yandex Images Search.

Pricing

$0.015 per successful call. Failed calls are not charged.

Explorar mais

APIs relacionadas

Todas as APIs
APIPreçoResposta
Yandex$0.015 por chamadaJSON
Yandex$0.015 por chamadaJSON
Yandex$0.01 por chamadaJSON

Perguntas

FAQ

Como eu uso a API Yandex Videos Search?

Envie uma solicitação POST para https://api.sandbase.ai/v1/api/yandex/videos 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 Yandex Videos Search?

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

Quais parâmetros a API Yandex Videos Search aceita?

Obrigatórios: text (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.

O que a API Yandex Videos 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 Yandex ou de uma chave de API?

Não. Yandex Videos 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 Yandex separadamente.