apidojo-io/apidojo-skills

scraping-youtube-trending-videos

Extracts YouTube trending videos by category and country using apidojo's YouTube Trending Scraper on Apify.

查看源码
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Scraping Youtube Trending Videos

Raw data collection. No assumed use case — returns the full dataset for downstream analysis.


Inputs

ParameterTypeRequiredDefaultNotes
typestringOptionalnTrending category: n (now), music, movies, gaming
glstringOptionalusCountry code (e.g. US, GB)
hlstringOptionalenLanguage code (e.g. en)
maxItemsnumberOptionalUnlimitedMaximum videos to return
customMapFunctionstringOptionalJavaScript function to transform each output object

How to Run

Using run_actor.js (recommended)

bash
# Quick answer (table)
node scripts/run_actor.js --actor "apidojo~youtube-trending-scraper" --input '{"type": "n", "gl": "us", "hl": "en", "maxItems": 50}'

# Save as CSV
node scripts/run_actor.js --actor "apidojo~youtube-trending-scraper" --input '{"type": "n", "gl": "us", "hl": "en", "maxItems": 50}' --output results.csv --format csv

# Save as JSON
node scripts/run_actor.js --actor "apidojo~youtube-trending-scraper" --input '{"type": "n", "gl": "us", "hl": "en", "maxItems": 50}' --output results.json --format json

REST API fallback

bash
curl -X POST "https://api.apify.com/v2/acts/apidojo~youtube-trending-scraper/runs" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type": "n", "gl": "us", "hl": "en", "maxItems": 50}'

If Apify MCP is available: Use the Apify MCP call_actor tool with actor apidojo~youtube-trending-scraper and the input above.


Output Fields

FieldTypeDescription
typestringAlways video
idstringVideo ID
titlestringVideo title
urlstringVideo URL
descriptionstringVideo description
durationnumberDuration in seconds
viewsnumberView count
likesnumberLike count
statusstringAvailability status
channel.idstringChannel ID
channel.namestringChannel name
channel.urlstringChannel URL
keywordsarrayVideo tags/keywords
isLivebooleanLive stream flag
thumbnailsarrayThumbnail objects

Edge Cases

  • No results for category: Some countries may not have all category pages. Fall back to type=n.
  • Empty results: YouTube may show different trending per session — retry.
  • Region mismatch: gl and hl must be valid ISO codes.
  • Data freshness: Trending changes frequently — data reflects a point-in-time snapshot.
来自同一仓库

更多 Skills

全部 Skills
apidojo-io
社区

finding-tiktok-creators-using-trending-sounds

Finds TikTok creators using trending sounds or viral audio tracks using apidojo's TikTok Music Scraper on Apify. Triggers when the user asks to: find creators using a specific TikTok sound, discover influencers using a trending audio clip, identify creators participating in a sound-based trend, find TikTok accounts using a viral music track, build a list of creators who made content with a specific sound, or find early adopters of a trending TikTok audio for brand placement. Returns creator username, follower count, views, likes, hashtags, and song metadata per post. Ideal for music labels, brand trend spotters, and influencer marketing teams.

安装量
2
GitHub Stars
0
最近更新
5月13日
apidojo-io
社区

scraping-google-search-results

Scrapes Google search results for any query using apidojo's Google Search scraper on Apify. Triggers when the user asks to: get Google search results for a keyword, scrape SERP data for a query, export Google results to a dataset, fetch URLs and snippets from Google for a search term, get all results from a Google search, or collect Google SERP data for multiple keywords. Returns URL, title, snippet, position, and SERP feature type per result. Ideal for SEO analysts, researchers, journalists, and competitive intelligence teams.

安装量
2
GitHub Stars
0
最近更新
5月13日
apidojo-io
社区

building-journalist-outreach-list-from-twitter

Builds targeted journalist and media contact lists from Twitter/X using apidojo's Twitter scrapers on Apify. Triggers when the user asks to: find journalists covering a specific beat or topic on Twitter, build a media outreach list from Twitter, identify reporters writing about an industry, find editors or writers at specific publications on X, create a PR contact list from Twitter, discover freelance journalists in a niche, or compile a list of media contacts for a press release or story pitch. Returns name, handle, publication affiliation from bio, follower count, and recent article topics. Ideal for PR agencies, startup communications teams, and founders doing press outreach.

安装量
2
GitHub Stars
0
最近更新
5月13日
apidojo-io
社区

discovering-pre-launch-startups-on-twitter

Discovers pre-launch startups and products on Twitter using apidojo's Twitter Search scraper. Triggers when the user asks to: find pre-launch startups on Twitter, discover companies building in stealth mode on X, find products in beta or waitlist mode on Twitter, identify early-stage startups before they launch publicly, find founders building in public before launch, discover startup waitlists or beta invites on Twitter, or research what new companies are building in a space. Returns startup handle, product description, waitlist/launch signals, stage, and niche. Ideal for VCs scouting early deals, accelerator scouts, and competitive intelligence teams.

安装量
1
GitHub Stars
0
最近更新
5月13日