跳转到主要内容
核心版和高级版套餐已停止销售。请考虑迁移到一体化网络爬虫 API;请点击此处查看指南.
youtube_metadata 模板用于以 JSON 格式获取 YouTube 视频元数据。

有用链接

  • 此目标适用于 Web API Advanced 计划
  • 此模板支持实时异步集成方法
  • 还支持批量请求。

输入参数

YouTube 元数据模板可用的请求参数:
参数类型必需描述
targetstring目标类型必须设置为 youtube_metadata
querystring视频 URL 中显示的 11 个字符的 YouTube 视频 ID。
对于此源,解析默认设置为”true” - 这是成功抓取结果所必需的。

请求示例

# 将 'TOKEN VALUE' 更新为您的授权令牌
curl --request 'POST' \
        --url 'https://scraper-api.decodo.com/v2/scrape' \
        --header 'Accept: application/json' \
        --header 'Authorization: Basic TOKEN VALUE' \
        --header 'Content-Type: application/json' \
        --data '
    {
      "target": "youtube_metadata",
      "query": "dFu9aKJoqGg"
    }
'

输出

作为输出,您将获得一个包含 YouTube 元数据的 JSON 文件。

响应示例

{
  "results": [
      {
          "content": {
              "results": {
                  "tags": [
                      "decodo",
                      "smartproxy",
                      "smartdaili",
                      "what is smartproxy",
                      "proxy network",
                      "data collection tool",
                      "best proxy network",
                      "us proxy network",
                      "global proxy network",
                      "fast proxy",
                      "scraping api",
                      "multiple account management tool",
                      "scraping tool",
                      "affordable proxy",
                      "data gathering tool",
                      "data collection infrastructure",
                      "proxy for scraping",
                      "proxy for seo",
                      "what is proxy",
                      "what is proxy network",
                      "residential proxy",
                      "datacenter proxy",
                      "Dedicated proxies",
                      "Mobile proxies",
                      "tool for web scraping",
                      "what is decodo"
                  ],
                  "title": "What is Decodo? (Formerly Smartproxy)",
                  "formats": [
                      {
                          "ext": "mp4",
                          "fps": 30,
                          "url": "https://rr1---sn-ci5gup-g2gs.googlevideo.com/videoplayback?expire=1763407759&ei=LyMbae3YKOCK1d8P3omdsAE&ip=2401%3A4900%3A51f5%3A87aa%3A4c97%3A89ff%3Afe89%3Ae8bd&id=o-AOXaKlr1UraIUqOwhwM5ai0HU0yYzXqmZoM0Ly3s0kfI&itag=18&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&cps=0&met=1763386159%2C&mh=6N&mm=31%2C29&mn=sn-ci5gup-g2gs%2Csn-ci5gup-cvhes&ms=au%2Crdu&mv=m&mvi=1&pl=48&rms=au%2Cau&initcwndbps=396250&bui=AdEuB5SlXYa2kaBtKFWLwtgZnx96sAMwprfq-klSZA1OPm_aasWYh4K8isO6j5zh1-yYbHk0DglfNJMj&spc=6b0G_ABV20DYsXz9DcfpF6MQRI2lLrxLExyV1Ubz6fA1h1NlllBK43tMzKSDolv1&vprv=1&svpuc=1&mime=video%2Fmp4&ns=QNqsOcwvOZ36ZzUGhOo2ZWUQ&rqh=1&gir=yes&clen=4616954&ratebypass=yes&dur=96.060&lmt=1754946288176323&mt=1763385712&fvip=3&fexp=51355912%2C51552689%2C51565115%2C51565682%2C51580968&c=WEB&sefc=1&txp=5438534&n=uKrBtCP2UWiAe3c&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cbui%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Crqh%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&sig=AJfQdSswRQIhAIdadAQh5AgI8uXZKrY_qBawysxpQnKb2rdTDSce52eOAiANKBPUhJrGY8_grIdtmwnJRkM24a_G4BfWZaTnVAVPvg%3D%3D&lsparams=cps%2Cmet%2Cmh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Crms%2Cinitcwndbps&lsig=APaTxxMwRgIhAJc4lyjhnGos-ZmYfh01Xh77YTIPgw6_9YgnJqSe7N7SAiEAy3og0KAULJttlcZNBMgnjVmC7BsI8t2ANWfJpBL9MAs%3D",
                          "acodec": "mp4a.40.2",
                          "vcodec": "avc1.42001E",
                          "format_id": "18",
                          "resolution": "640x360",
                          "format_note": "360p"
                      },
                      {
                          "ext": "webm",
                          "fps": 30,
                          "url": null,
                          "acodec": null,
                          "vcodec": "vp9",
                          "format_id": "313",
                          "resolution": "3840x2160",
                          "format_note": "2160p, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": 30,
                          "url": null,
                          "acodec": null,
                          "vcodec": "vp9",
                          "format_id": "271",
                          "resolution": "2560x1440",
                          "format_note": "1440p, MISSING POT"
                      },
                      {
                          "ext": "mp4",
                          "fps": 30,
                          "url": null,
                          "acodec": null,
                          "vcodec": "avc1.640028",
                          "format_id": "137",
                          "resolution": "1920x1080",
                          "format_note": "1080p, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": 30,
                          "url": null,
                          "acodec": null,
                          "vcodec": "vp9",
                          "format_id": "248",
                          "resolution": "1920x1080",
                          "format_note": "1080p, MISSING POT"
                      },
                      {
                          "ext": "mp4",
                          "fps": 30,
                          "url": null,
                          "acodec": null,
                          "vcodec": "avc1.4d401f",
                          "format_id": "136",
                          "resolution": "1280x720",
                          "format_note": "720p, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": 30,
                          "url": null,
                          "acodec": null,
                          "vcodec": "vp9",
                          "format_id": "247",
                          "resolution": "1280x720",
                          "format_note": "720p, MISSING POT"
                      },
                      {
                          "ext": "mp4",
                          "fps": 30,
                          "url": null,
                          "acodec": null,
                          "vcodec": "avc1.4d401f",
                          "format_id": "135",
                          "resolution": "854x480",
                          "format_note": "480p, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": 30,
                          "url": null,
                          "acodec": null,
                          "vcodec": "vp9",
                          "format_id": "244",
                          "resolution": "854x480",
                          "format_note": "480p, MISSING POT"
                      },
                      {
                          "ext": "mp4",
                          "fps": 30,
                          "url": null,
                          "acodec": null,
                          "vcodec": "avc1.4d401e",
                          "format_id": "134",
                          "resolution": "640x360",
                          "format_note": "360p, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": 30,
                          "url": null,
                          "acodec": null,
                          "vcodec": "vp9",
                          "format_id": "243",
                          "resolution": "640x360",
                          "format_note": "360p, MISSING POT"
                      },
                      {
                          "ext": "mp4",
                          "fps": 30,
                          "url": null,
                          "acodec": null,
                          "vcodec": "avc1.4d4015",
                          "format_id": "133",
                          "resolution": "426x240",
                          "format_note": "240p, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": 30,
                          "url": null,
                          "acodec": null,
                          "vcodec": "vp9",
                          "format_id": "242",
                          "resolution": "426x240",
                          "format_note": "240p, MISSING POT"
                      },
                      {
                          "ext": "mp4",
                          "fps": 30,
                          "url": null,
                          "acodec": null,
                          "vcodec": "avc1.4d400c",
                          "format_id": "160",
                          "resolution": "256x144",
                          "format_note": "144p, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": 30,
                          "url": null,
                          "acodec": null,
                          "vcodec": "vp9",
                          "format_id": "278",
                          "resolution": "256x144",
                          "format_note": "144p, MISSING POT"
                      },
                      {
                          "ext": "m4a",
                          "fps": null,
                          "url": null,
                          "acodec": "mp4a.40.2",
                          "vcodec": null,
                          "format_id": "140",
                          "resolution": null,
                          "format_note": "German (DE), tiny, MISSING POT"
                      },
                      {
                          "ext": "m4a",
                          "fps": null,
                          "url": null,
                          "acodec": "mp4a.40.2",
                          "vcodec": null,
                          "format_id": "140",
                          "resolution": null,
                          "format_note": "Spanish (US), tiny, MISSING POT"
                      },
                      {
                          "ext": "m4a",
                          "fps": null,
                          "url": null,
                          "acodec": "mp4a.40.2",
                          "vcodec": null,
                          "format_id": "140",
                          "resolution": null,
                          "format_note": "French (FR), tiny, MISSING POT"
                      },
                      {
                          "ext": "m4a",
                          "fps": null,
                          "url": null,
                          "acodec": "mp4a.40.2",
                          "vcodec": null,
                          "format_id": "140",
                          "resolution": null,
                          "format_note": "Hindi, tiny, MISSING POT"
                      },
                      {
                          "ext": "m4a",
                          "fps": null,
                          "url": null,
                          "acodec": "mp4a.40.2",
                          "vcodec": null,
                          "format_id": "140",
                          "resolution": null,
                          "format_note": "Indonesian, tiny, MISSING POT"
                      },
                      {
                          "ext": "m4a",
                          "fps": null,
                          "url": null,
                          "acodec": "mp4a.40.2",
                          "vcodec": null,
                          "format_id": "140",
                          "resolution": null,
                          "format_note": "Italian, tiny, MISSING POT"
                      },
                      {
                          "ext": "m4a",
                          "fps": null,
                          "url": null,
                          "acodec": "mp4a.40.2",
                          "vcodec": null,
                          "format_id": "140",
                          "resolution": null,
                          "format_note": "Japanese, tiny, MISSING POT"
                      },
                      {
                          "ext": "m4a",
                          "fps": null,
                          "url": null,
                          "acodec": "mp4a.40.2",
                          "vcodec": null,
                          "format_id": "140",
                          "resolution": null,
                          "format_note": "Portuguese (BR), tiny, MISSING POT"
                      },
                      {
                          "ext": "m4a",
                          "fps": null,
                          "url": null,
                          "acodec": "mp4a.40.2",
                          "vcodec": null,
                          "format_id": "140-drc",
                          "resolution": null,
                          "format_note": "English (US) original (default), tiny, DRC, MISSING POT"
                      },
                      {
                          "ext": "m4a",
                          "fps": null,
                          "url": null,
                          "acodec": "mp4a.40.2",
                          "vcodec": null,
                          "format_id": "140",
                          "resolution": null,
                          "format_note": "English (US) original (default), tiny, MISSING POT"
                      },
                      {
                          "ext": "m4a",
                          "fps": null,
                          "url": null,
                          "acodec": "mp4a.40.2",
                          "vcodec": null,
                          "format_id": "140",
                          "resolution": null,
                          "format_note": "English (US) original (default), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "249",
                          "resolution": null,
                          "format_note": "German (DE), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "249",
                          "resolution": null,
                          "format_note": "Spanish (US), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "249",
                          "resolution": null,
                          "format_note": "French (FR), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "249",
                          "resolution": null,
                          "format_note": "Hindi, tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "249",
                          "resolution": null,
                          "format_note": "Indonesian, tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "249",
                          "resolution": null,
                          "format_note": "Italian, tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "249",
                          "resolution": null,
                          "format_note": "Japanese, tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "249",
                          "resolution": null,
                          "format_note": "Portuguese (BR), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "249-drc",
                          "resolution": null,
                          "format_note": "English (US) original (default), tiny, DRC, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "249",
                          "resolution": null,
                          "format_note": "English (US) original (default), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "249",
                          "resolution": null,
                          "format_note": "English (US) original (default), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "250",
                          "resolution": null,
                          "format_note": "German (DE), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "250",
                          "resolution": null,
                          "format_note": "Spanish (US), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "250",
                          "resolution": null,
                          "format_note": "French (FR), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "250",
                          "resolution": null,
                          "format_note": "Hindi, tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "250",
                          "resolution": null,
                          "format_note": "Indonesian, tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "250",
                          "resolution": null,
                          "format_note": "Italian, tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "250",
                          "resolution": null,
                          "format_note": "Japanese, tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "250",
                          "resolution": null,
                          "format_note": "Portuguese (BR), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "250-drc",
                          "resolution": null,
                          "format_note": "English (US) original (default), tiny, DRC, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "250",
                          "resolution": null,
                          "format_note": "English (US) original (default), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "250",
                          "resolution": null,
                          "format_note": "English (US) original (default), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "251",
                          "resolution": null,
                          "format_note": "German (DE), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "251",
                          "resolution": null,
                          "format_note": "Spanish (US), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "251",
                          "resolution": null,
                          "format_note": "French (FR), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "251",
                          "resolution": null,
                          "format_note": "Hindi, tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "251",
                          "resolution": null,
                          "format_note": "Indonesian, tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "251",
                          "resolution": null,
                          "format_note": "Italian, tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "251",
                          "resolution": null,
                          "format_note": "Japanese, tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "251",
                          "resolution": null,
                          "format_note": "Portuguese (BR), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "251-drc",
                          "resolution": null,
                          "format_note": "English (US) original (default), tiny, DRC, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "251",
                          "resolution": null,
                          "format_note": "English (US) original (default), tiny, MISSING POT"
                      },
                      {
                          "ext": "webm",
                          "fps": null,
                          "url": null,
                          "acodec": "opus",
                          "vcodec": null,
                          "format_id": "251",
                          "resolution": null,
                          "format_note": "English (US) original (default), tiny, MISSING POT"
                      }
                  ],
                  "is_live": false,
                  "duration": 96,
                  "uploader": "Decodo (formerly Smartproxy)",
                  "video_id": "dFu9aKJoqGg",
                  "age_limit": 0,
                  "categories": [
                      "Science & Technology"
                  ],
                  "channel_id": "UCqHoe4Ixju1bcOy0jHPO8Kg",
                  "like_count": 21,
                  "thumbnails": [
                      {
                          "url": "https://i.ytimg.com/vi/dFu9aKJoqGg/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLBLtGCPElL6ZqqpJQ96jata37pcEw",
                          "width": 168,
                          "height": 94
                      },
                      {
                          "url": "https://i.ytimg.com/vi/dFu9aKJoqGg/hqdefault.jpg?sqp=-oaymwEmCMQBEG5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLDTYYShVgP1UYTl0xfeSOTeBONf2w",
                          "width": 196,
                          "height": 110
                      },
                      {
                          "url": "https://i.ytimg.com/vi/dFu9aKJoqGg/hqdefault.jpg?sqp=-oaymwEnCPYBEIoBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLCJDBLCXjPje4EEbvtRunKLdtDcOg",
                          "width": 246,
                          "height": 138
                      },
                      {
                          "url": "https://i.ytimg.com/vi/dFu9aKJoqGg/hqdefault.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLALrbuNNiy2EY0pYB59LqJXnj86cw",
                          "width": 336,
                          "height": 188
                      },
                      {
                          "url": "https://i.ytimg.com/vi_webp/dFu9aKJoqGg/maxresdefault.webp",
                          "width": 1920,
                          "height": 1080
                      },
                      {
                          "url": "https://i.ytimg.com/vi/dFu9aKJoqGg/maxresdefault.jpg",
                          "width": 1280,
                          "height": 720
                      }
                  ],
                  "view_count": 72054,
                  "channel_url": "https://www.youtube.com/channel/UCqHoe4Ixju1bcOy0jHPO8Kg",
                  "description": "Tired of CAPTCHAs and IP blocks? Meet Decodo – the most efficient platform to test, launch, and scale your web data projects. Our service includes a vast residential, mobile, datacenter, and ISP proxy network, a universal Web Scraping API, and a range of free tools to fulfill all your needs in one place.\\n\\nStart scaling your projects today: https://bit.ly/4cAkGIR",
                  "upload_date": "20250423",
                  "uploader_id": "@decodo_official",
                  "uploader_url": "https://www.youtube.com/@decodo_official",
                  "comment_count": 6,
                  "is_transcript_available": true,
                  "user_subtitle_languages": [
                      "en"
                  ],
                  "user_transcript_languages": [
                      "en"
                  ],
                  "generated_subtitle_languages": [
                      "en"
                  ],
                  "generated_transcript_languages": [
                      "en"
                  ]
              },
              "parse_status_code": 12000
          },
          "headers": {},
          "status_code": 200,
          "query": "dFu9aKJoqGg",
          "task_id": "7396177615712708609",
          "created_at": "2025-11-17 13:29:17",
          "updated_at": "2025-11-17 13:29:23"
      }
  ]
}

支持

需要帮助或只是想打个招呼?我们的支持团队全天候为您服务。
您也可以随时通过电子邮件 support@decodo.com 联系我们。

反馈

找不到您要找的内容?请求一篇文章!
有反馈意见?分享您对我们如何改进的想法。