YouTubeYouTubeSocial

Set a custom thumbnail on your YouTube video

youtube.youtube.video.thumbnail.set

Set the custom thumbnail on one of your YouTube videos

Price
freePelo preço do provedor
Success rate
—Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
Latency p50
——
Last verified
—Not verified yet
POSThttps://toolswitch.dev/v1/tools/youtube.youtube.video.thumbnail.setPreview
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parâmetros

same /upload/ host path as the video upload. Custom thumbnails need the channel to be verified — an unverified channel gets HTTP 403 forbidden even though the scope is correct, which reads like a permissions bug and is not one

ParâmetroTipoObrigatórioDescriçãoExemplo
Parâmetros de consulta
videoIdstringObrigatóriothe id videos.insert returneddQw4w9WgXcQ
uploadTypestringOpcionalmedia for a straight single-shot upload of the image bytesmedia
  • Parâmetros de consulta
  • videoIdstringObrigatório

    the id videos.insert returned

    Exemplo: dQw4w9WgXcQ

  • uploadTypestringOpcional

    media for a straight single-shot upload of the image bytes

    Exemplo: media

Exemplos de código

Substitua $TOOLSWITCH_KEY pela chave criada no console.

Preview
curl -X POST 'https://toolswitch.dev/v1/tools/youtube.youtube.video.thumbnail.set' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.