cliqtomedia-apify: run Apify scrapers from Python or the command line
Run any public Apify Actor and get its dataset items as JSON, JSONL or CSV: Reddit, YouTube, Trustpilot, Amazon, Google Search, Indeed, Zillow, Booking.com and more. One command, no dependencies.

What you get
- A
cliqtomedia-apify run command that starts an Actor, waits for it to finish and prints the results.
- A
run_actor() function that returns the dataset items as a Python list.
- Output as
json, jsonl or csv.
- Clear errors and exit codes for a missing token, a wrong Actor name and a failed run.
- Standard library only. It needs Python 3.9 or newer and installs no other packages.
The package works with any public Actor on Apify, not only ours. It reads dataset items with clean=true, so hidden helper fields and empty items are dropped. The Popular Actors section below lists Actors you can run right away.
Install
pip install cliqtomedia-apify
Get your Apify token
The package uses your own Apify account. It never ships a token.
- Create a free account at apify.com.
- In Apify Console, open Settings, then API & Integrations. Copy the Personal API token (how to find it).
- Set it as the
APIFY_TOKEN environment variable:
export APIFY_TOKEN=your_token_here
On Windows PowerShell: $env:APIFY_TOKEN = "your_token_here".
You can also pass the token with --token on the command line or token= in Python. Prefer the environment variable: a --token value can end up in your shell history. Keep the token out of code you share.
Quick start: command line
cliqtomedia-apify run cliqtomedia/youtube-transcript-scraper \
--input '{"videoUrls": ["jNQXAC9IVRw"]}' --format json
Read the input from a file:
cliqtomedia-apify run cliqtomedia/youtube-transcript-scraper --input-file input.json --format jsonl > items.jsonl
| Option |
Meaning |
--input |
Actor input as a JSON string |
--input-file |
Path to a JSON file with the Actor input |
--limit N |
Fetch at most N items |
--format |
json (default), jsonl or csv |
--timeout SECONDS |
How long to wait for the run (default 300) |
--token |
Apify token (default: APIFY_TOKEN) |
--version |
Print the package version |
Exit codes: 0 success, 1 Apify or run error, 2 usage error such as a missing token, a bad option or bad input JSON, 130 interrupted with Ctrl+C (the run may still be active in Apify Console).
python -m cliqtomedia_apify run ... works the same way.
Quick start: Python
from cliqtomedia_apify import run_actor
items = run_actor(
"cliqtomedia/youtube-transcript-scraper",
{"videoUrls": ["jNQXAC9IVRw"]},
limit=10,
)
print(items[0]["status"], items[0]["text"][:80])
run_actor(actor, run_input=None, *, token=None, limit=None, timeout=300, poll_interval=2.0) returns a list of dicts. It raises ApifyError (or the subclasses ApifyHTTPError and MissingTokenError) on failure.
Examples
YouTube transcript to JSON
Input for the YouTube Transcript Scraper:
{
"videoUrls": ["jNQXAC9IVRw"]
}
Output, shortened to the main fields of the first dataset item:
[
{
"status": "SUCCEEDED",
"complete": true,
"videoId": "jNQXAC9IVRw",
"canonicalUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"track": {
"sourceLanguageCode": "en",
"sourceIsGenerated": false,
"isTranslated": false
},
"segments": [
{
"sequence": 0,
"text": "All right, so here we are, in front of the elephants",
"startSeconds": 1.2,
"durationSeconds": 2.16
}
],
"segmentCount": 6
}
]
Trustpilot reviews to CSV
The latest 5 reviews of a company with the Trustpilot Reviews Scraper:
cliqtomedia-apify run cliqtomedia/trustpilot-reviews-scraper \
--input '{"companyDomains": ["apify.com"], "maxReviews": 5}' \
--format csv > reviews.csv
The CSV has one row per review. Main columns: company, companyTrustScore, rating, title, text, language, date, country, verified, replyText, url.
Reddit posts to JSONL
The 5 newest posts of r/Python with the Reddit Scraper:
cliqtomedia-apify run cliqtomedia/reddit-scraper \
--input '{"mode": "subreddit", "subreddits": ["python"], "maxPosts": 5}' \
--format jsonl > posts.jsonl
Each line is one post with title, text, author, score, numComments, url and createdAt.
Each Actor has its own input and output fields. Read them on the Actor page.
Popular Actors
Copy the Actor name into cliqtomedia-apify run <name> or run_actor("<name>", ...). The input fields and an example input are on each Actor page.
Social media and video
| Actor name |
What you get |
Details |
cliqtomedia/reddit-scraper |
Reddit posts, comments and subreddits |
Page |
cliqtomedia/youtube-transcript-scraper |
YouTube transcripts and subtitles with timestamps |
Page |
cliqtomedia/youtube-comments-scraper |
YouTube comments and replies |
Page |
cliqtomedia/youtube-channel-videos |
YouTube channel videos with views, likes and Shorts |
Page |
cliqtomedia/tiktok-transcript |
TikTok captions and speech to text |
Page |
cliqtomedia/threads-scraper |
Threads posts, profiles and replies |
Page |
cliqtomedia/telegram-channel-scraper |
Telegram channel posts and views |
Page |
cliqtomedia/facebook-ad-library |
Facebook Ad Library: competitor ads |
Page |
Search and web pages
| Actor name |
What you get |
Details |
cliqtomedia/google-search-scraper |
Google search results (SERP) |
Page |
cliqtomedia/google-news-scraper |
Google News articles with real URLs |
Page |
cliqtomedia/google-trends-scraper |
Google Trends interest by time, region and query |
Page |
cliqtomedia/rag-web-search |
Google results as clean Markdown for RAG and LLMs |
Page |
cliqtomedia/website-to-markdown |
Website pages as Markdown for RAG |
Page |
cliqtomedia/website-contacts-scraper |
Emails, phones and social links from websites |
Page |
E-commerce and prices
| Actor name |
What you get |
Details |
cliqtomedia/amazon-scraper |
Amazon products, prices, reviews and BSR |
Page |
cliqtomedia/walmart-scraper |
Walmart products and reviews |
Page |
cliqtomedia/ebay-sold-listings |
eBay sold listings with prices and dates |
Page |
cliqtomedia/shopify-products-scraper |
Products from any Shopify store |
Page |
cliqtomedia/aliexpress-scraper |
AliExpress products, prices and reviews |
Page |
cliqtomedia/temu-scraper |
Temu products, prices, variants and reviews |
Page |
Reviews and travel
| Actor name |
What you get |
Details |
cliqtomedia/trustpilot-reviews-scraper |
Trustpilot reviews, ratings and company replies |
Page |
cliqtomedia/google-play-reviews-scraper |
Google Play app reviews |
Page |
cliqtomedia/apple-app-store-reviews-scraper |
Apple App Store app reviews |
Page |
cliqtomedia/booking-scraper |
Booking.com hotels, prices and reviews |
Page |
cliqtomedia/tripadvisor-scraper |
Tripadvisor places, reviews and hotel prices |
Page |
cliqtomedia/yelp-scraper |
Yelp businesses and reviews |
Page |
cliqtomedia/airbnb-scraper |
Airbnb listings, prices and calendar |
Page |
Jobs, companies and real estate
| Actor name |
What you get |
Details |
cliqtomedia/indeed-scraper |
Indeed jobs with salaries |
Page |
cliqtomedia/glassdoor-scraper |
Glassdoor jobs and company reviews |
Page |
cliqtomedia/upwork-jobs-scraper |
Upwork jobs with pay and client details |
Page |
cliqtomedia/wellfound-jobs-scraper |
Wellfound startup jobs |
Page |
cliqtomedia/crunchbase-companies |
Crunchbase companies and funding |
Page |
cliqtomedia/zillow-scraper |
Zillow listings with Zestimates |
Page |
cliqtomedia/idealista-scraper |
Idealista listings in Spain, Italy, Portugal and France |
Page |
cliqtomedia/email-verifier |
Bulk email verification: MX, disposable and role checks |
Page |