Arcadium Data Scrapers
Home / Integrations / Apify API (curl, JavaScript, Python)

Apify API (curl, JavaScript, Python)

Run an actor and read its rows over HTTP or the official clients. The example uses YouTube Transcript & Subtitles Scraper; swap in any actor ID below.

curl

curl -X POST "https://api.apify.com/v2/acts/arcadium~youtube-transcripts/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],"languages":[],"captionType":"any","maxVideosPerSource":10,"subtitleFormat":"none"}'

JavaScript

// npm install apify-client
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('arcadium/youtube-transcripts').call({
  "urls": [
    "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
  ],
  "languages": [],
  "captionType": "any",
  "maxVideosPerSource": 10,
  "subtitleFormat": "none"
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Python

# pip install apify-client
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("arcadium/youtube-transcripts").call(run_input={
    "urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"],
    "languages": [],
    "captionType": "any",
    "maxVideosPerSource": 10,
    "subtitleFormat": "none",
})
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)

Actor IDs

ActorActor ID
Agoda and Trip.com Reviews Scraperarcadium/agoda-tripcom-reviews
ATS Lookuparcadium/ats-lookup
Booking.com Reviews Scraperarcadium/booking-reviews
Capterra Products Scraperarcadium/capterra-products
Capterra Reviews Scraperarcadium/capterra-reviews
Career Site Jobs Scraperarcadium/career-site-jobs
AutoScout24 Scraperarcadium/eu-car-listings
Google Hotel Reviews Scraperarcadium/google-hotel-reviews
Google Hotels Scraperarcadium/google-hotels
Google News Scraperarcadium/google-news
Google Trends Scraperarcadium/google-trends
Hotel Reviews Scraperarcadium/hotel-reputation
Review Monitorarcadium/reputation-monitor
Seek Jobs Scraperarcadium/seek-jobs
Software Reviews Scraperarcadium/software-reviews
Tripadvisor Reviews Scraperarcadium/tripadvisor-reviews
TrustRadius Reviews Scraperarcadium/trustradius-reviews
YouTube Transcript & Subtitles Scraperarcadium/youtube-transcripts
YouTube Scraperarcadium/youtube-videos