# YouTube Scraper via StableApify (apidojo/youtube-scraper)

> YouTube Scraper via StableApify (apidojo/youtube-scraper) is a paid API for AI agents from stableapify.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-01).

Starts an Apify actor run to scrape YouTube search results, channels, playlists, videos, and profiles, returning a run ID and token for fetching results.

## Facts

- Endpoint: POST https://stableapify.dev/api/actors/apidojo/youtube-scraper/call?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/youtube-scraper-via-stableapify-apidojo-youtube-scraper-4bddd9ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R2TBpV3qi9oclDjGXt2Xp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability youtube-scraper-via-stableapify-apidojo-youtube-scraper-4bddd9ab -d '<json body>'
```

Example prompt: Scrape the YouTube channel for username 'mkbhd' — get up to 200 items and use 1024 MB memory — I need the video titles, URLs, and any available email address.

## When to prefer this

Choose this endpoint when you need programmatic, large-scale extraction of YouTube data — including channels, search results, playlists, or user profiles — especially when email discovery or bulk video metadata is required. Prefer over manual browsing or YouTube Data API when you need to bypass quota limits, scrape unlisted metadata, or extract data not exposed by the official API. Best suited for competitive intelligence, content auditing, influencer research, and SEO analysis workflows.

## Known failure modes

- Invalid or non-existent YouTube username returns empty dataset
- Actor run fails to start if memory limit is too low for the requested scrape scope
- Token expiry after 30 days makes dataset inaccessible
- Rate limits or YouTube blocks may result in partial data
- Missing required input fields causes actor initialization failure
- Exceeding maxItems limits may truncate results silently

## How this service works

Start the "🏯 Youtube Scraper (Pay Per Result)" Apify actor (apidojo/youtube-scraper). Experience unparalleled efficiency and depth with its ultra-fast capabilities in searching, URL, playlist, channel, and profile scraping. It comes equipped wit…

## Output

Returns a JSON object containing the Apify actor run ID, initial status ('READY'), the actor ID, start timestamp, total USD usage (initially 0), the default dataset ID where results will be stored, and a JWT token used to poll for results from the dataset endpoint.

## Example request

```json
{
 "input": {
  "username": "sarptecimer",
  "includeEmail": false
 },
 "options": {
  "memory": 1024,
  "maxItems": 100
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "gl",
    "hl"
   ],
   "properties": {
    "gl": {
     "enum": [
      "us",
      "af",
      "al",
      "dz",
      "as",
      "ad",
      "ao",
      "ai",
      "aq",
      "ag",
      "ar",
      "am",
      "aw",
      "au",
      "at",
      "az",
      "bs",
      "bh",
      "bd",
      "bb",
      "by",
      "be",
      "bz",
      "bj",
      "bm",
      "bt",
      "bo",
      "ba",
      "bw",
      "bv",
      "br",
      "io",
      "bn",
      "bg",
      "bf",
      "bi",
      "kh",
      "cm",
      "ca",
      "cv",
      "ky",
      "cf",
      "td",
      "cl",
      "cn",
      "cx",
      "cc",
      "co",
      "km",
      "cg",
      "cd",
      "ck",
      "cr",
      "ci",
      "hr",
      "cu",
      "cy",
      "cz",
      "dk",
      "dj",
      "dm",
      "do",
      "ec",
      "eg",
      "sv",
      "gq",
      "er",
      "ee",
      "et",
      "fk",
      "fo",
      "fj",
      "fi",
      "fr",
      "gf",
      "pf",
      "tf",
      "ga",
      "gm",
      "ge",
      "de",
      "gh",
      "gi",
      "gr",
      "gl",
      "gd",
      "gp",
      "gu",
      "gt",
      "gn",
      "gw",
      "gy",
      "ht",
      "hm",
      "va",
      "hn",
      "hk",
      "hu",
      "is",
      "in",
      "id",
      "ir",
      "iq",
      "ie",
      "il",
      "it",
      "jm",
      "jp",
      "jo",
      "kz",
      "ke",
      "ki",
      "kp",
      "kr",
      "kw",
      "kg",
      "la",
      "lv",
      "lb",
      "ls",
      "lr",
      "ly",
      "li",
      "lt",
      "lu",
      "mo",
      "mk",
      "mg",
      "mw",
      "my",
      "mv",
      "ml",
      "mt",
      "mh",
      "mq",
      "mr",
      "mu",
      "yt",
      "mx",
      "fm",
      "md",
      "mc",
      "mn",
      "ms",
      "ma",
      "mz",
      "mm",
      "na",
      "nr",
      "np",
      "nl",
      "an",
      "nc",
      "nz",
      "ni",
      "ne",
      "ng",
      "nu",
      "nf",
      "mp",
      "no",
      "om",
      "pk",
      "pw",
      "ps",
      "pa",
      "pg",
      "py",
      "pe",
      "ph",
      "pn",
      "pl",
      "pt",
      "pr",
      "qa",
      "re",
      "ro",
      "ru",
      "rw",
      "sh",
      "kn",
      "lc",
      "pm",
      "vc",
      "ws",
      "sm",
      "st",
      "sa",
      "sn",
      "cs",
      "sc",
      "sl",
      "sg",
      "sk",
      "si",

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/youtube-scraper-via-stableapify-apidojo-youtube-scraper-4bddd9ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stableapify.dev](https://www.zero.xyz/host/stableapify.dev/llms.txt)
