Youtube Channel

Web Scraping API Youtube Channel Target

The youtube_channel target is built to obtain key metrics (subscribers, views, video counts), metadata, and a list of videos.

📘

Useful Links

Input parameters

General parameters:

Parameter

Type

Required

Description

target

string

Target type must be set to youtube_channel.

query

string

The unique handle identifying the target YouTube channel (e.g., @channelname).

headless

string

html value enables JavaScript rendering. Read more.

parse

boolean

Automatically parses results when set to true.
Default value is false.

limit

integer

Specifies the maximum number of videos returned in the response.
Default value is 20.


Request Example

curl --request 'POST' \
        --url 'https://scraper-api.decodo.com/v2/scrape' \
        --header 'Accept: application/json' \
        --header 'Authorization: Basic TOKEN VALUE' \ // update with your authorization token\
        --header 'Content-Type: application/json' \
        --data '
    {
      "target": "youtube_channel",
      "query": "@decodo_official"
    }
'
const scrape = async() => {
  const response = await fetch("https://scraper-api.decodo.com/v2/scrape", {
    method: "POST",
    body: JSON.stringify({
      "target": "youtube_channel",
      "query": "@decodo_official",
      "parse": true,
    }),
    headers: {
      "Content-Type": "application/json",
      "Authorization": "Basic TOKEN VALUE" // update with your authorization token
    },
  }).catch(error => console.log(error));

  console.log(await response.json())
}

scrape()
import requests
  
url = "https://scraper-api.decodo.com/v2/scrape"
  
payload = {
      "target": "youtube_channel",
      "query": "@decodo_official",
      "parse": true
}
  
headers = {
    "accept": "application/json",
    "content-type": "application/json",
    "authorization": "Basic TOKEN VALUE" # update with your authorization token
}
  
response = requests.post(url, json=payload, headers=headers)
  
print(response.text)

Output

As an output, you will get a JSON file with YouTube Channel.

Output example
{
  "results": [
      {
          "content": {
              "results": {
                  "id": "UCqHoe4Ixju1bcOy0jHPO8Kg",
                  "name": "Decodo (formerly Smartproxy)",
                  "links": [
                      {
                          "url": "bigmarker.com/decodo/from-raw-data-to-insights-leveraging-ai-for-public-data-analysis?utm_bmcr_source=youtube",
                          "title": "FREE WEBINAR"
                      },
                      {
                          "url": "decodo.com",
                          "title": "decodo.com"
                      },
                      {
                          "url": "discord.gg/gvJhWJPaB4",
                          "title": "Discord Decodo"
                      },
                      {
                          "url": "linkedin.com/company/decodo",
                          "title": "LinkedIn Decodo"
                      },
                      {
                          "url": "github.com/decodo",
                          "title": "GitHub Decodo"
                      },
                      {
                          "url": "direct.lc.chat/12092754",
                          "title": "Live chat"
                      }
                  ],
                  "videos": [
                      {
                          "pos": 1,
                          "url": "https://www.youtube.com/watch?v=Aokh2L5SYuw",
                          "title": "How to Scrape Nasdaq Stock Prices With Python | Web Scraping Tutorial",
                          "view_count": "118",
                          "upload_date_relative": "2 weeks ago"
                      },
                      {
                          "pos": 2,
                          "url": "https://www.youtube.com/watch?v=MJJsb5wy3SI",
                          "title": "How To Add Proxies In MoreLogin | Proxy Integration Tutorial",
                          "view_count": "209",
                          "upload_date_relative": "2 weeks ago"
                      },
                      {
                          "pos": 3,
                          "url": "https://www.youtube.com/watch?v=J7reGbrzCNE",
                          "title": "How to Scrape Craigslist With Python: Jobs, Housing, For Sale Listings",
                          "view_count": "122",
                          "upload_date_relative": "3 weeks ago"
                      },
                      {
                          "pos": 4,
                          "url": "https://www.youtube.com/watch?v=tLDQxKsku_k",
                          "title": "Free Webinar: Build n8n Workflows That Do the Work for You",
                          "view_count": "76",
                          "upload_date_relative": "1 month ago"
                      },
                      {
                          "pos": 5,
                          "url": "https://www.youtube.com/watch?v=mTTtHRYw4Sk",
                          "title": "Automate With Decodo & n8n: Free Webinar",
                          "view_count": "83",
                          "upload_date_relative": "1 month ago"
                      },
                      {
                          "pos": 6,
                          "url": "https://www.youtube.com/watch?v=Pbj_KOMVcbE",
                          "title": "Free Webinar: Building Automation Workflows with n8n",
                          "view_count": "50",
                          "upload_date_relative": "1 month ago"
                      },
                      {
                          "pos": 7,
                          "url": "https://www.youtube.com/watch?v=VnzVgHQh5cU",
                          "title": "How to Automate Marketing Workflows With n8n: Free Webinar",
                          "view_count": "57",
                          "upload_date_relative": "1 month ago"
                      },
                      {
                          "pos": 8,
                          "url": "https://www.youtube.com/watch?v=0468SRMNNSU",
                          "title": "How to Set Up Proxies in AdsPower Anti-detect Browser",
                          "view_count": "478",
                          "upload_date_relative": "1 month ago"
                      },
                      {
                          "pos": 9,
                          "url": "https://www.youtube.com/watch?v=rKYCelcOqRU",
                          "title": "How to Automate ITOps and SecOps Workflows With n8n: Free Webinar",
                          "view_count": "52",
                          "upload_date_relative": "1 month ago"
                      },
                      {
                          "pos": 10,
                          "url": "https://www.youtube.com/watch?v=_e1_kkUgfU8",
                          "title": "How to Set up Proxies on iOS With Potatso App in 2025 | Proxy Integration Tutorial",
                          "view_count": "1,212",
                          "upload_date_relative": "1 month ago"
                      },
                      {
                          "pos": 11,
                          "url": "https://www.youtube.com/watch?v=y3SXEsUpieU",
                          "title": "LangChain + Web Scraping API Tutorial | How to Build Scraping Agents",
                          "view_count": "225",
                          "upload_date_relative": "2 months ago"
                      },
                      {
                          "pos": 12,
                          "url": "https://www.youtube.com/watch?v=dlHu-gAyglw",
                          "title": "How to Scrape YouTube Comments With Python",
                          "view_count": "327",
                          "upload_date_relative": "2 months ago"
                      },
                      {
                          "pos": 13,
                          "url": "https://www.youtube.com/watch?v=aQCcdRpOFvc",
                          "title": "How to Use Proxies With FoxyProxy | Proxy Integration Tutorial",
                          "view_count": "1,809",
                          "upload_date_relative": "2 months ago"
                      },
                      {
                          "pos": 14,
                          "url": "https://www.youtube.com/watch?v=ROet8sHU_Gw",
                          "title": "How to Set Up and Use Video Downloader | Decodo Product Guide",
                          "view_count": "147",
                          "upload_date_relative": "2 months ago"
                      },
                      {
                          "pos": 15,
                          "url": "https://www.youtube.com/watch?v=gSieUHJ3eG0",
                          "title": "How to Use Decodo AI Parser | Parse HTML Data Without Coding",
                          "view_count": "80",
                          "upload_date_relative": "2 months ago"
                      },
                      {
                          "pos": 16,
                          "url": "https://www.youtube.com/watch?v=in8LMYlfxcI",
                          "title": "The Websites Everyone's Scraping in 2025 (and Why It Matters for AI)",
                          "view_count": "234",
                          "upload_date_relative": "3 months ago"
                      },
                      {
                          "pos": 17,
                          "url": "https://www.youtube.com/watch?v=Ue9R9AYNx78",
                          "title": "Building AI Web Scraping Workflows With n8n & Decodo Scraping API",
                          "view_count": "327",
                          "upload_date_relative": "3 months ago"
                      },
                      {
                          "pos": 18,
                          "url": "https://www.youtube.com/watch?v=L_40-jijcII",
                          "title": "AI Agents vs. Agentic AI vs. Generative AI | What’s the Difference?",
                          "view_count": "163",
                          "upload_date_relative": "3 months ago"
                      },
                      {
                          "pos": 19,
                          "url": "https://www.youtube.com/watch?v=Bkeol9GZ9z0",
                          "title": "What Is an API and How Does It Work | API Basics Explained",
                          "view_count": "279",
                          "upload_date_relative": "3 months ago"
                      },
                      {
                          "pos": 20,
                          "url": "https://www.youtube.com/watch?v=FGxcnqcTQ8I",
                          "title": "How to Set Up MCP Server | Web Scraping API Tutorial",
                          "view_count": "1,003",
                          "upload_date_relative": "3 months ago"
                      }
                  ],
                  "country": "Lithuania",
                  "avatar_url": "https://yt3.googleusercontent.com/VtRQP7W-38A3T9s1F4kCaN4FUc8kc1n6TLRWsg2nnlsObpTkB2Ru5ZhMHybDnGp3eletE-g24Q=s900-c-k-c0x00ffffff-no-rj",
                  "view_count": "1,914,113",
                  "description": "Decodo (formerly Smartproxy) is the most efficient platform to run and scale your web data projects. With a vast proxy pool, web scraping infrastructure, and free antidetection tools, Decodo allows you to bypass geo-restrictions, avoid IP bans, and ensure anonymity online. Our services are invaluable for multi-accounting, web scraping, price aggregation, AI, ad tech, and SEO projects. \n\nOn this YouTube channel, we break down the world of web scraping, data gathering, and proxy technology: one expert tutorial at a time. Whether you're a developer looking to scale your scraping projects, a data analyst in need of reliable insights, or just curious about how proxies work, you're in the right place.\n",
                  "joined_date": "Mar 4 2019",
                  "video_count": 247,
                  "subscriber_count": "8.36K",
                  "parse_status_code": 12000
              },
              "errors": [],
              "status_code": 12000,
              "task_id": "7414219897040819201"
          },
          "headers": {},
          "status_code": 200,
          "query": "@decodo_official",
          "task_id": "7414219897040819201",
          "created_at": "2026-01-06 08:22:52",
          "updated_at": "2026-01-06 08:22:56"
      }
  ]
}

Support

Still can't find an answer? Want to say hi? We take pride in our 24/7 customer support. Alternatively, you can reach us via our support email at [email protected].

Feedback

Something's missing? Request an article!
Got feedback? Let us know how we're doing and what can be improved.