YouTubeYouTubeSocial

YouTube video stats by video id — views, likes, duration

youtube.youtube.video.detail

Get a YouTube video's metadata and stats (views, likes, comments, duration)

Price
freeプロバイダー原価
Success rate
100%Last 30 days · 7,337 calls
Latency p50
186 msp95 395 ms
Last verified
2026/07/28Verified working
GEThttps://toolswitch.dev/v1/tools/youtube.youtube.video.detail?id=dQw4w9WgXcQ&part=snippet%2CstatisticsPreview
  • Uses platform quota
  • Synchronous response
  • Reads public data

パラメータ

batching 50 ids costs the same 1 unit as one id — always batch

パラメータ型必須説明例
クエリパラメータ
id文字列必須video id (the v= parameter of the watch URL); up to 50 comma-separated ids in one calldQw4w9WgXcQ
part文字列必須snippet=title/description/tags, statistics=counts, contentDetails=durationsnippet,statistics,contentDetails
  • クエリパラメータ
  • id文字列必須

    video id (the v= parameter of the watch URL); up to 50 comma-separated ids in one call

    例:dQw4w9WgXcQ

  • part文字列必須

    snippet=title/description/tags, statistics=counts, contentDetails=duration

    例:snippet,statistics,contentDetails

コード例

$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。

Preview
curl -X GET 'https://toolswitch.dev/v1/tools/youtube.youtube.video.detail?id=dQw4w9WgXcQ&part=snippet%2Cstatistics' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。