Youtube API Search By Category avatar

Youtube API Search By Category

Pricing

from $0.20 / 1,000 results

Go to Apify Store
Youtube API Search By Category

Youtube API Search By Category

Search for videos using a specific hashtag. Provide hashtag without #.

Pricing

from $0.20 / 1,000 results

Rating

0.0

(0)

Developer

Scrappa

Scrappa

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Share

YouTube Search By Category Scraper

Get YouTube search results from predefined category searches such as education, music, gaming, news, sports, and technology. The Actor returns one dataset item per YouTube result, so you can export videos to JSON, CSV, Excel, or connect them to downstream Apify integrations.

What You Can Get

  • Category-based YouTube video results
  • Titles, descriptions, thumbnails, video IDs, durations, view counts, and publish times
  • Channel metadata including channel ID, name, URL, thumbnail, and verification status
  • Badges such as CC, New, 4K, or other labels returned by YouTube
  • Live, Shorts, and Premium flags when available
  • Continuation tokens in logs when another page is available

Input

FieldTypeRequiredDescription
categoryarrayYesCategory to search in. Examples: education, music, gaming, news, sports, tech.
sortarrayNoSort order. One of relevance, rating, upload_date, or view_count. Defaults to relevance.
durationarrayNoVideo duration filter. One of short, medium, or long.
upload_datearrayNoUpload date filter. One of hour, today, week, month, or year.
limitintegerNoMaximum results to request, from 1 to 1024. The upstream API can return a smaller page with a continuation token.
continuationstringNoContinuation token for the next page of results.
contentTypearrayNoFilter by content type: live, recorded, or premiere.
featuresstringNoComma-separated feature filters such as hd,cc.

Apify select fields are arrays in JSON input. Use a single selected value in each array, for example "category": ["education"].

Example Inputs

Education Videos

{
"category": ["education"],
"sort": ["relevance"],
"duration": ["short"],
"limit": 10
}

High-View Music Videos

{
"category": ["music"],
"sort": ["view_count"],
"limit": 20
}

Recent Tech Videos

{
"category": ["tech"],
"sort": ["upload_date"],
"upload_date": ["week"],
"limit": 20
}

Continue to the Next Page

{
"category": ["education"],
"sort": ["relevance"],
"limit": 20,
"continuation": "PASTE_CONTINUATION_TOKEN_FROM_PREVIOUS_RUN"
}

When the API returns a next-page token, the Actor logs it as Continuation token available for next page: ....

Output

Each result is saved as one dataset item. Fields vary by YouTube result, but video results commonly include:

{
"type": "Video",
"id": "KVLTxKyxioA",
"title": "The Science of Teaching, Effective Education, and Great Schools",
"description": "Scientific evidence suggests that the secret to thriving students...",
"thumbnail": "https://i.ytimg.com/vi/KVLTxKyxioA/hq720.jpg",
"duration": "6:21",
"viewCount": "824,846 views",
"publishedTime": "8 years ago",
"channel": {
"id": "UC-RKpEc4eE9PwJaupN91xYQ",
"name": "Sprouts",
"thumbnail": "https://yt3.ggpht.com/...",
"verified": true,
"isVerifiedArtist": false,
"url": "https://www.youtube.com/@sprouts"
},
"badges": ["CC"],
"isLive": false,
"isShort": false,
"isPremium": false,
"expandableMetadata": {
"label": "Summary"
}
}

Pricing

$0.30 per 1,000 results. No additional API keys required.

Support

For issues or questions, contact us through Apify.