No-code scraping guide

YouTube Channel Scraper API tutorial with Apify

Run the Newbs YouTube Channel Scraper through the Apify API, retrieve its dataset, and build a repeatable JSON workflow with a tested input shape.

Opens the matching public Apify Store listing in a new tab.

Checked against the actor

Current inputs and outputs, not generic scraping advice.

Reviewed against the Newbs actor documentation and schema on August 17, 2026. Marketplace behavior and pricing can change, so confirm the live listing before a production run.

Validate the input in the Apify Console first

The fastest way to avoid API debugging is to run the exact JSON input once in the Apify Console. Confirm that the dataset contains the fields you need, then reuse the same input body in your API call.

Start with one channel and two results. Large channel lists make it harder to distinguish an input mistake from a source-specific data issue.

Keep the token outside your code

Store the Apify token in an environment variable or secret manager. Do not place a real token in browser code, a public repository, screenshots, or a client-side application.

The examples below use YOUR_APIFY_TOKEN as a placeholder. Replace it only in your local environment or server-side secret configuration.

Start a run and read the dataset

An asynchronous run is the safer pattern for larger jobs: start the actor, poll the run until it reaches a terminal status, then read the default dataset ID returned by the run object.

For a tiny workflow, Apify also provides synchronous endpoints. Use the API tab on the live listing to confirm the current endpoint and client examples before production use.

Design for partial field availability

YouTube does not expose every metric, About link, or transcript for every video. Your integration should accept null values, inspect transcriptStatus and scrapingStatus, and keep videoUrl or id as the stable record key.

Do not fail an entire batch because one channel has only Shorts or one video has no caption track. Handle those states explicitly in downstream code.

Workflow

Move from a small test to a repeatable data workflow.

Validate the input and output on a small run first. Save a Task, schedule it, or connect the dataset only after the collected fields match the decision you need to make.

  1. Open the actor through the affiliate link and create or reuse an Apify account.
  2. Create an Apify API token and keep it in an environment variable rather than source code.
  3. Start a small actor run with channel, keywords, numberOfResults, and needVideoDetails.
  4. Wait for the run to succeed, then read items from its default dataset.
  5. Move the validated input into an Apify Task or scheduled workflow.

Start an asynchronous actor run

Use a server-side token. The request body matches the current actor input schema.

bash
curl "https://api.apify.com/v2/acts/newbs~Youtube-Channel/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "channel": ["https://www.youtube.com/@adidas/videos"],
    "keywords": false,
    "numberOfResults": 2,
    "needVideoDetails": true,
    "proxyMode": "auto"
  }'

Read dataset items after the run succeeds

Use the defaultDatasetId returned by the completed run.

bash
curl "https://api.apify.com/v2/datasets/DATASET_ID/items?token=YOUR_APIFY_TOKEN&clean=true&format=json"

Best-fit use cases

These workflows benefit from repeatable cloud scraping, scheduling, dataset exports, and API access.

backend integrationsscheduled channel monitoringJSON pipelinesdata enrichmentAI workflows

Recommended actor

Scrape YouTube channel videos, metadata, profile links, and public signals for creator research, lead generation, and content intelligence.

View current listing on Apify
Next step

Turn the guide into a repeatable data pipeline.

After the first run, save the input, schedule recurring runs in Apify, and connect the dataset output to your spreadsheet, CRM, dashboard, or AI workflow.

Questions

Frequently asked questions

Do I need a YouTube API key?

No YouTube API key is required for this actor. You need an Apify account token when calling the actor through the Apify API.

Should the Apify token be used in frontend JavaScript?

No. Keep the token on a server, automation platform, or secret manager where visitors cannot inspect it.

How do I know when the dataset is ready?

Wait until the actor run reaches SUCCEEDED, then read the defaultDatasetId from the run and fetch its dataset items.

Ready-to-run actor

Start with the public actor before wiring the API

Open the current Newbs YouTube Channel Scraper listing, inspect its Input and API tabs, and validate a small run before adding the endpoint to production code.

Run this workflow on Apify

Affiliate disclosure: Newbs may earn a commission from an eligible referral, at no additional cost to you.