{"uid":"cap_R2TBpV3qi9oclDjGXt2Xp","slug":"youtube-scraper-via-stableapify-apidojo-youtube-scraper-4bddd9ab","name":"YouTube Scraper via StableApify (apidojo/youtube-scraper)","description":"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…","url":"https://stableapify.dev/api/actors/apidojo/youtube-scraper/call?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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","sb","so","za","gs","es","lk","sd","sr","sj","sz","se","ch","sy","tw","tj","tz","th","tl","tg","tk","to","tt","tn","tr","tm","tc","tv","ug","ua","ae","gb","um","uy","uz","vu","ve","vn","vg","vi","wf","eh","ye","zm","zw"],"type":"string","default":"us","description":"Location for the search results, which is passed to YouTube as the gl URL query parameter. (US, AF, AL, etc...)"},"hl":{"enum":["en","af","ak","sq","ws","am","ar","hy","az","eu","be","bem","bn","bh","xx-bork","bs","br","bg","bt","km","ca","chr","ny","zh-cn","zh-tw","co","hr","cs","da","nl","xx-elmer","eo","et","ee","fo","tl","fi","fr","fy","gaa","gl","ka","de","el","kl","gn","gu","xx-hacker","ht","ha","haw","iw","hi","hu","is","ig","id","ia","ga","it","ja","jw","kn","kk","rw","rn","xx-klingon","kg","ko","kri","ku","ckb","ky","lo","la","lv","ln","lt","loz","lg","ach","mk","mg","my","ml","mt","mv","mi","mr","mfe","mo","mn","sr-me","ne","pcm","nso","no","nn","oc","or","om","ps","fa","xx-pirate","pl","pt","pt-br","pt-pt","pa","qu","ro","rm","nyn","ru","gd","sr","sh","st","tn","crs","sn","sd","si","sk","sl","so","es","es-419","su","sw","sv","tg","ta","tt","te","th","ti","to","lua","tum","tr","tk","tw","ug","uk","ur","uz","vu","vi","cy","wo","xh","yi","yo","zu"],"type":"string","default":"en","description":"Language for the search results, which is passed to YouTube as the hl URL query parameter. (af, tr, de, etc...)"},"sort":{"enum":["r","ra","u","v"],"type":"string","description":"Sorts search results by the given option. Only works with search keywords."},"duration":{"enum":["all","s","l"],"type":"string","description":"Duration of the video for the search results, which is passed to YouTube as the duration URL query parameter. (any, short, long)"},"features":{"enum":["3","4","all","h","hd","s","c","3d","li","lo"],"type":"string","description":"Features for video. (any, 4k, hd, live, movie, cc, 3d, hdr, location, purchased, subtitles, vr180, vr360)"},"keywords":{"type":"array","items":{"type":"string"},"description":"Search keywords you want to search on YouTube."},"maxItems":{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991,"description":"Maximum number of items that you want as output."},"startUrls":{"type":"array","items":{"type":"string"},"description":"Paste the Youtube URLs, and get the results immediately. Video, Channel, Playlist, Shorts and Search URLs are supported."},"uploadDate":{"enum":["all","l","t","w","m","y"],"type":"string","description":"Upload date for the search results, which is passed to YouTube as the upload date URL query parameter. (any, hour, today, week, month, year)"},"getTrending":{"type":"boolean","description":"If selected, returns trending videos."},"includeShorts":{"type":"boolean","description":"When searching for channel videos, includes shorts."},"youtubeHandles":{"type":"array","items":{"type":"string"},"description":"Youtube handles that you want to search on Youtube (e.g. @MrBeast, @babishculinaryuniverse)"},"customMapFunction":{"type":"string","description":"Function that takes each of the objects as argument and returns data that will be mapped by the function itself. This function is not intended for filtering, please don't use it for filtering purposes or you will get banned automatically."}},"description":"Normalized actor input. See field descriptions for the simplified shape; native Apify input also accepted (passed through).","additionalProperties":{}},"options":{"type":"object","properties":{"build":{"type":"string","maxLength":100,"minLength":1},"memory":{"type":"integer","maximum":32768,"minimum":128},"maxItems":{"type":"integer","maximum":100000,"minimum":1}},"description":"Optional Apify run options.","additionalProperties":false}}},"responseSchema":null,"example":{"request":{"input":{"username":"sarptecimer","includeEmail":false},"options":{"memory":1024,"maxItems":100}},"response":{"run":{"id":"ick4LXnJTyOQOvq0q","status":"READY","actorId":"1p1aa7gcSydPkAE0d","startedAt":"2026-06-16T17:44:49.893Z","usageTotalUsd":0,"defaultDatasetId":"qzYq8njboE66ocPsk"},"token":"eyJhbGciOiJIUzI1NiJ9.eyJydW5JZCI6ImljazRMWG5KVHlPUU92cTBxIiwiYWN0b3JJZCI6ImFwaWRvam8veW91dHViZS1zY3JhcGVyIiwiZGVmYXVsdERhdGFzZXRJZCI6InF6WXE4bmpib0U2Nm9jUHNrIiwidyI6IjB4OWNjNDJmM2Q5MjQ1Yjg2N2FjY2NkNjMwYjQzZjkwNmMxNjY1YjE3NiIsImlhdCI6MTc4MTYzMTg5MCwiZXhwIjoxNzg0MjIzODkwfQ.FMxQMgxaRCanOUy6S59COotGD_Pv5mJgHHLYZD4shQA"}},"exampleRequest":{"input":{"username":"sarptecimer","includeEmail":false},"options":{"memory":1024,"maxItems":100}},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EQKsOklggucbYvFuAaAqD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Starts an Apify actor run to scrape YouTube search results, channels, playlists, videos, and profiles, returning a run ID and token for fetching results.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"YouTube channel video audit","prompt":"Scrape the YouTube channel at youtube.com/c/Veritasium and pull up to 500 videos with their titles, view counts, and publish dates — use 2048 MB memory."},{"title":"YouTube keyword research scrape","prompt":"Search YouTube for 'best mechanical keyboards 2024' and scrape the top 100 results including video URLs, channel names, and view counts."},{"title":"YouTube playlist content extraction","prompt":"Extract all videos from this YouTube playlist — https://www.youtube.com/playlist?list=PLbpi6ZahtOH6Ar_3GPy3workIY6IA — get up to 300 items with 1024 MB memory."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T12:40:14.709Z","isFirstParty":false,"canonicalSlug":"youtube-scraper-via-stableapify-apidojo-youtube-scraper-4bddd9ab"}