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
| Actor | Actor ID |
|---|---|
| Agoda and Trip.com Reviews Scraper | arcadium/agoda-tripcom-reviews |
| ATS Lookup | arcadium/ats-lookup |
| Booking.com Reviews Scraper | arcadium/booking-reviews |
| Capterra Products Scraper | arcadium/capterra-products |
| Capterra Reviews Scraper | arcadium/capterra-reviews |
| Career Site Jobs Scraper | arcadium/career-site-jobs |
| AutoScout24 Scraper | arcadium/eu-car-listings |
| Google Hotel Reviews Scraper | arcadium/google-hotel-reviews |
| Google Hotels Scraper | arcadium/google-hotels |
| Google News Scraper | arcadium/google-news |
| Google Trends Scraper | arcadium/google-trends |
| Hotel Reviews Scraper | arcadium/hotel-reputation |
| Review Monitor | arcadium/reputation-monitor |
| Seek Jobs Scraper | arcadium/seek-jobs |
| Software Reviews Scraper | arcadium/software-reviews |
| Tripadvisor Reviews Scraper | arcadium/tripadvisor-reviews |
| TrustRadius Reviews Scraper | arcadium/trustradius-reviews |
| YouTube Transcript & Subtitles Scraper | arcadium/youtube-transcripts |
| YouTube Scraper | arcadium/youtube-videos |