=============== LIBRARY RULES =============== From library maintainers: - Actors: openclawai/reddit-scraper, openclawai/influencer-finder, openclawai/tiktok-douyin-bilibili-scraper and openclawai/tiktok-scraper, all run through the Apify API. - Authenticate with an Apify API token in the Authorization: Bearer header, read from the APIFY_TOKEN environment variable. Never put the token in the input JSON or in committed code. - Set a cost cap on every run: maxTotalChargeUsd (query parameter or JavaScript option) or max_total_charge_usd (Python). Runs bill per result to the caller's Apify account. - Reddit tasks need no Reddit API key, Reddit app or Reddit login: the actor reads public Reddit data. - Start from a task's input and change only the values (subreddit, keyword, creator, dates). Keep the first run small, about 20 to 50 results, and raise limits once the output looks right. - run-sync-get-dataset-items returns the rows in one request for runs under 5 minutes. For longer runs, start the run, wait for it to finish, then read its default dataset. - Influencer Finder: set onlyWithEmail to true to keep, and pay for, only creators who published an email. - Dataset rows can also be downloaded as CSV, Excel or JSONL: GET /v2/datasets/{datasetId}/items?format=csv. ### Run Podcast Host Emails by Topic with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/influencer-finder/podcast-hosts-with-emails.md Uses the official Apify client (pip install apify-client). max_total_charge_usd caps the cost of the run. Requires APIFY_TOKEN environment variable. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "keywords": ["marketing", "entrepreneurship"], "platforms": ["podcast"], "onlyWithEmail": True, "maxCreators": 25, } run = client.actor("openclawai/influencer-finder").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Podcast Host Emails by Topic with JavaScript Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/influencer-finder/podcast-hosts-with-emails.md Uses the official Apify client for Node.js (npm install apify-client) as an ES module. maxTotalChargeUsd caps the cost of the run. Requires APIFY_TOKEN environment variable. ```javascript import { ApifyClient } from "apify-client"; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const input = { "keywords": [ "marketing", "entrepreneurship" ], "platforms": [ "podcast" ], "onlyWithEmail": true, "maxCreators": 25 }; const run = await client.actor("openclawai/influencer-finder").call(input, { maxTotalChargeUsd: 1 }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items); ``` -------------------------------- ### Run task with Python Apify client Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-product-recommendations.md Uses the official Apify client (pip install apify-client). max_total_charge_usd caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "searches": ["best noise cancelling headphones"], "sort": "relevance", "time": "year", "includeComments": True, "maxCommentsPerPost": 30, "maxItems": 20, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run with Python using ApifyClient Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/subreddit-new-posts-monitor.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "subreddits": ["technology"], "sort": "new", "maxItems": 100, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Douyin Downloader with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-douyin-bilibili-scraper/douyin-downloader-hd-videos.md Uses the official Apify client (pip install apify-client). max_total_charge_usd caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "mode": "video_detail", "platform": "douyin", "urls": ["https://www.douyin.com/video/7448118827402972455"], "downloadVideos": True, } run = client.actor("openclawai/tiktok-douyin-bilibili-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Reddit Scraper with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-dataset-json-csv.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "subreddits": ["datasets"], "sort": "top", "time": "year", "maxItems": 200, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Subreddit Finder with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/find-subreddits-by-topic.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "searches": ["machine learning"], "searchType": "communities", "maxItems": 100, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run with JavaScript using ApifyClient Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/subreddit-new-posts-monitor.md Uses the official Apify client for Node.js (`npm install apify-client`), as an ES module. `maxTotalChargeUsd` caps the cost of the run. ```js import { ApifyClient } from "apify-client"; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const input = { "subreddits": [ "technology" ], "sort": "new", "maxItems": 100 }; const run = await client.actor("openclawai/reddit-scraper").call(input, { maxTotalChargeUsd: 1 }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items); ``` -------------------------------- ### Run Reddit Lead Generation with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-lead-generation-posts.md Uses the official Apify client (pip install apify-client). max_total_charge_usd caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "searches": ["looking for a CRM", "recommend a CRM"], "sort": "relevance", "time": "month", "maxItems": 50, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run task with JavaScript Apify client Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-product-recommendations.md Uses the official Apify client for Node.js (npm install apify-client), as an ES module. maxTotalChargeUsd caps the cost of the run. ```javascript import { ApifyClient } from "apify-client"; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const input = { "searches": [ "best noise cancelling headphones" ], "sort": "relevance", "time": "year", "includeComments": true, "maxCommentsPerPost": 30, "maxItems": 20 }; const run = await client.actor("openclawai/reddit-scraper").call(input, { maxTotalChargeUsd: 1 }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items); ``` -------------------------------- ### Run Douyin Downloader with JavaScript Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-douyin-bilibili-scraper/douyin-downloader-hd-videos.md Uses the official Apify client for Node.js (npm install apify-client), as an ES module. maxTotalChargeUsd caps the cost of the run. ```javascript import { ApifyClient } from "apify-client"; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const input = { "mode": "video_detail", "platform": "douyin", "urls": [ "https://www.douyin.com/video/7448118827402972455" ], "downloadVideos": true }; const run = await client.actor("openclawai/tiktok-douyin-bilibili-scraper").call(input, { maxTotalChargeUsd: 1 }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items); ``` -------------------------------- ### Run Reddit Videos task with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-video-posts-only.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "subreddits": ["videos"], "sort": "top", "time": "week", "maxItems": 100, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Kuaishou Downloader with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-douyin-bilibili-scraper/kuaishou-video-downloader.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "mode": "user_posts", "platform": "kuaishou", "urls": ["https://v.kuaishou.com/KcdKDwFp"], "maxItems": 10, "downloadVideos": True, } run = client.actor("openclawai/tiktok-douyin-bilibili-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Reddit Post History with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-post-history-of-user.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "users": ["thisisbillgates"], "maxItems": 50, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Douyin Trending Videos with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-douyin-bilibili-scraper/douyin-trending-videos.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "mode": "trending", "platform": "douyin", "maxItems": 20, } run = client.actor("openclawai/tiktok-douyin-bilibili-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Reddit AMA Threads with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-ama-threads.md Uses the official Apify client (pip install apify-client). max_total_charge_usd caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "subreddits": ["IAmA"], "sort": "top", "time": "month", "includeComments": True, "maxCommentsPerPost": 300, "maxItems": 10, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Subreddit Finder with JavaScript Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/find-subreddits-by-topic.md Uses the official Apify client for Node.js (`npm install apify-client`), as an ES module. `maxTotalChargeUsd` caps the cost of the run. ```javascript import { ApifyClient } from "apify-client"; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const input = { "searches": [ "machine learning" ], "searchType": "communities", "maxItems": 100 }; const run = await client.actor("openclawai/reddit-scraper").call(input, { maxTotalChargeUsd: 1 }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items); ``` -------------------------------- ### Subreddit Stats: Members, Description and Age with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/subreddit-stats-members.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "searches": ["personal finance"], "searchType": "communities", "maxItems": 25, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run TikTok and Douyin Creator Videos with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-douyin-bilibili-scraper/tiktok-and-douyin-creator-videos.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "mode": "user_posts", "urls": [ "https://www.tiktok.com/@tiktok", "https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE", ], "maxItems": 20, } run = client.actor("openclawai/tiktok-douyin-bilibili-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Reddit Scraper with JavaScript Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-dataset-json-csv.md Uses the official Apify client for Node.js (`npm install apify-client`), as an ES module. `maxTotalChargeUsd` caps the cost of the run. ```javascript import { ApifyClient } from "apify-client"; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const input = { "subreddits": [ "datasets" ], "sort": "top", "time": "year", "maxItems": 200 }; const run = await client.actor("openclawai/reddit-scraper").call(input, { maxTotalChargeUsd: 1 }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items); ``` -------------------------------- ### Run task with Python using apify-client Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/influencer-finder/nano-influencers-tiktok-instagram.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "keywords": ["beauty", "makeup"], "platforms": ["tiktok", "instagram"], "minFollowers": 1000, "maxFollowers": 10000, "onlyWithEmail": True, "maxCreators": 25, } run = client.actor("openclawai/influencer-finder").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Reddit Search Tool with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-keyword-search-posts.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "searches": ["claude code"], "sort": "relevance", "time": "month", "maxItems": 100, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run task with Python using apify-client Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/influencer-finder/instagram-fashion-micro-influencers.md Uses official Apify client (pip install apify-client). max_total_charge_usd caps cost. Requires APIFY_TOKEN environment variable. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "keywords": ["fashion", "outfit ideas"], "platforms": ["instagram"], "minFollowers": 5000, "maxFollowers": 100000, "onlyWithEmail": True, "maxCreators": 25, } run = client.actor("openclawai/influencer-finder").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Douyin Trending Videos with JavaScript Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-douyin-bilibili-scraper/douyin-trending-videos.md Uses the official Apify client for Node.js (`npm install apify-client`), as an ES module. `maxTotalChargeUsd` caps the cost of the run. ```js import { ApifyClient } from "apify-client"; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const input = { "mode": "trending", "platform": "douyin", "maxItems": 20 }; const run = await client.actor("openclawai/tiktok-douyin-bilibili-scraper").call(input, { maxTotalChargeUsd: 1 }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items); ``` -------------------------------- ### Run task with Python Apify client Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/influencer-finder/high-engagement-tiktok-creators.md Uses official apify-client (pip install apify-client). max_total_charge_usd caps run cost. Requires APIFY_TOKEN environment variable. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "keywords": ["cooking", "recipes"], "platforms": ["tiktok"], "minEngagementRate": "5", "onlyWithEmail": True, "maxCreators": 25, } run = client.actor("openclawai/influencer-finder").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Search Reddit Comments: Keyword Threads with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/search-reddit-comments-by-keyword.md Uses the official Apify client (pip install apify-client). max_total_charge_usd caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "searches": ["best password manager"], "sort": "relevance", "time": "year", "includeComments": True, "maxCommentsPerPost": 50, "maxItems": 20, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run task with Python Apify client Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-startup-feedback-threads.md Uses official Apify client (pip install apify-client). max_total_charge_usd caps run cost. Requires APIFY_TOKEN environment variable. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "subreddits": ["startups", "SaaS"], "sort": "new", "includeComments": True, "maxCommentsPerPost": 30, "maxItems": 50, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run task with JavaScript Apify client Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-startup-feedback-threads.md Uses official Apify client for Node.js (npm install apify-client) as ES module. maxTotalChargeUsd caps run cost. Requires APIFY_TOKEN environment variable. ```javascript import { ApifyClient } from "apify-client"; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const input = { "subreddits": [ "startups", "SaaS" ], "sort": "new", "includeComments": true, "maxCommentsPerPost": 30, "maxItems": 50 }; const run = await client.actor("openclawai/reddit-scraper").call(input, { maxTotalChargeUsd: 1 }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items); ``` -------------------------------- ### Run task with JavaScript using apify-client Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/influencer-finder/nano-influencers-tiktok-instagram.md Uses the official Apify client for Node.js (`npm install apify-client`), as an ES module. `maxTotalChargeUsd` caps the cost of the run. ```js import { ApifyClient } from "apify-client"; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const input = { "keywords": [ "beauty", "makeup" ], "platforms": [ "tiktok", "instagram" ], "minFollowers": 1000, "maxFollowers": 10000, "onlyWithEmail": true, "maxCreators": 25 }; const run = await client.actor("openclawai/influencer-finder").call(input, { maxTotalChargeUsd: 1 }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items); ``` -------------------------------- ### Run Reddit scraper with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/best-of-reddit-top-posts-all-time.md Uses the official Apify client (pip install apify-client). max_total_charge_usd caps the cost of the run. Requires APIFY_TOKEN environment variable. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "subreddits": ["all"], "sort": "top", "time": "all", "maxItems": 100, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### TikTok Followers List Export with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-scraper/nba-tiktok-followers-list.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "mode": "followers", "urls": ["@nba"], "maxItems": 1000, } run = client.actor("openclawai/tiktok-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run task with curl and get dataset items Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-startup-feedback-threads.md Runs the task and returns rows as JSON array in one request. maxTotalChargeUsd=1 stops the run at $1 cost. Requires APIFY_TOKEN environment variable. ```bash curl -s -X POST "https://api.apify.com/v2/acts/openclawai~reddit-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=1" \ -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \ --data @- <<'JSON' { "subreddits": [ "startups", "SaaS" ], "sort": "new", "includeComments": true, "maxCommentsPerPost": 30, "maxItems": 50 } JSON ``` -------------------------------- ### Run WallStreetBets Tracker with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/wallstreetbets-tracker-top-posts.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "subreddits": ["wallstreetbets"], "sort": "top", "time": "day", "includeComments": True, "maxCommentsPerPost": 30, "maxItems": 25, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### JSON input for Startup Feedback Threads task Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-startup-feedback-threads.md Exact JSON input for the task. Change values to customize. Includes subreddits, sort, includeComments, maxCommentsPerPost, and maxItems. ```json { "subreddits": [ "startups", "SaaS" ], "sort": "new", "includeComments": true, "maxCommentsPerPost": 30, "maxItems": 50 } ``` -------------------------------- ### Run Reddit Controversial Posts with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-controversial-posts.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "subreddits": ["technology"], "sort": "controversial", "time": "month", "maxItems": 100, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run task with curl and maxTotalChargeUsd=1 Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-product-recommendations.md Runs the task and returns rows as a JSON array in one request. maxTotalChargeUsd=1 stops the run once it has cost $1. Needs an Apify API token in APIFY_TOKEN. ```bash curl -s -X POST "https://api.apify.com/v2/acts/openclawai~reddit-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=1" \ -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \ --data @- <<'JSON' { "searches": [ "best noise cancelling headphones" ], "sort": "relevance", "time": "year", "includeComments": true, "maxCommentsPerPost": 30, "maxItems": 20 } JSON ``` -------------------------------- ### Run Reddit Comment History with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-comment-history-of-user.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "users": ["GovSchwarzenegger"], "maxItems": 100, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run with curl using run-sync-get-dataset-items Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/subreddit-new-posts-monitor.md Runs the task and returns rows as a JSON array in one request. `maxTotalChargeUsd=1` stops the run once it has cost $1. Needs an Apify API token in `APIFY_TOKEN`. ```bash curl -s -X POST "https://api.apify.com/v2/acts/openclawai~reddit-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=1" \ -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \ --data @- <<'JSON' { "subreddits": [ "technology" ], "sort": "new", "maxItems": 100 } JSON ``` -------------------------------- ### Run task with Python using apify-client Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/influencer-finder/tiktok-fitness-influencers-by-keyword.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "keywords": ["fitness coach", "home workout"], "platforms": ["tiktok"], "onlyWithEmail": True, "maxCreators": 25, } run = client.actor("openclawai/influencer-finder").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run BookTok Videos with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-scraper/booktok-tiktok-hashtag-videos.md Uses official Apify client (`pip install apify-client`). `max_total_charge_usd` caps run cost. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "mode": "hashtag_videos", "urls": ["#booktok"], "maxItems": 200, } run = client.actor("openclawai/tiktok-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run TikTok profile stats with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-douyin-bilibili-scraper/tiktok-influencer-profile-stats.md Uses the official Apify client (pip install apify-client). max_total_charge_usd caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "mode": "user_profile", "platform": "tiktok", "urls": ["https://www.tiktok.com/@charlidamelio"], } run = client.actor("openclawai/tiktok-douyin-bilibili-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Reddit Lead Generation with JavaScript Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-lead-generation-posts.md Uses the official Apify client for Node.js (npm install apify-client), as an ES module. maxTotalChargeUsd caps the cost of the run. ```javascript import { ApifyClient } from "apify-client"; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const input = { "searches": [ "looking for a CRM", "recommend a CRM" ], "sort": "relevance", "time": "month", "maxItems": 50 }; const run = await client.actor("openclawai/reddit-scraper").call(input, { maxTotalChargeUsd: 1 }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items); ``` -------------------------------- ### Run TikTok Fake Views Checker with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-douyin-bilibili-scraper/tiktok-fake-views-checker.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "mode": "fake_view_check", "platform": "tiktok", "urls": ["7460937381265411370"], } run = client.actor("openclawai/tiktok-douyin-bilibili-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run r/ClaudeAI Top Posts with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/claudeai-subreddit-top-posts.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "subreddits": ["ClaudeAI"], "sort": "top", "time": "week", "includeComments": True, "maxCommentsPerPost": 20, "maxItems": 50, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Douyin Downloader with curl Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-douyin-bilibili-scraper/douyin-downloader-hd-videos.md Runs the task and returns rows as a JSON array in one request. maxTotalChargeUsd=1 stops the run once it has cost $1. Needs an Apify API token in APIFY_TOKEN. ```bash curl -s -X POST "https://api.apify.com/v2/acts/openclawai~tiktok-douyin-bilibili-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=1" \ -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \ --data @- <<'JSON' { "mode": "video_detail", "platform": "douyin", "urls": [ "https://www.douyin.com/video/7448118827402972455" ], "downloadVideos": true } JSON ``` -------------------------------- ### Run TikTok Comments Export with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-douyin-bilibili-scraper/tiktok-video-comments.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "mode": "video_comments", "platform": "tiktok", "urls": ["https://www.tiktok.com/@khaby.lame/video/7644214443265625375"], "maxItems": 50, } run = client.actor("openclawai/tiktok-douyin-bilibili-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Podcast Host Emails by Topic with curl Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/influencer-finder/podcast-hosts-with-emails.md Runs the task and returns rows as a JSON array in one request. maxTotalChargeUsd=1 stops the run once it has cost $1. Requires APIFY_TOKEN environment variable. ```bash curl -s -X POST "https://api.apify.com/v2/acts/openclawai~influencer-finder/run-sync-get-dataset-items?maxTotalChargeUsd=1" \ -H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \ --data @- <<'JSON' { "keywords": [ "marketing", "entrepreneurship" ], "platforms": [ "podcast" ], "onlyWithEmail": true, "maxCreators": 25 } JSON ``` -------------------------------- ### Run Kuaishou Downloader with JavaScript Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-douyin-bilibili-scraper/kuaishou-video-downloader.md Uses the official Apify client for Node.js (`npm install apify-client`), as an ES module. `maxTotalChargeUsd` caps the cost of the run. ```javascript import { ApifyClient } from "apify-client"; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const input = { "mode": "user_posts", "platform": "kuaishou", "urls": [ "https://v.kuaishou.com/KcdKDwFp" ], "maxItems": 10, "downloadVideos": true }; const run = await client.actor("openclawai/tiktok-douyin-bilibili-scraper").call(input, { maxTotalChargeUsd: 1 }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items); ``` -------------------------------- ### Bilibili Subtitles Download: Video Captions with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-douyin-bilibili-scraper/bilibili-subtitles-download.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "mode": "subtitles", "platform": "bilibili", "urls": ["BV1rpWjevEip"], } run = client.actor("openclawai/tiktok-douyin-bilibili-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### JSON input for What Reddit Recommends: Product Reviews Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-product-recommendations.md Exact JSON input for the task. Change the values to make your own version. ```json { "searches": [ "best noise cancelling headphones" ], "sort": "relevance", "time": "year", "includeComments": true, "maxCommentsPerPost": 30, "maxItems": 20 } ``` -------------------------------- ### Run TikTok and Douyin Creator Videos with JavaScript Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-douyin-bilibili-scraper/tiktok-and-douyin-creator-videos.md Uses the official Apify client for Node.js (`npm install apify-client`), as an ES module. `maxTotalChargeUsd` caps the cost of the run. ```js import { ApifyClient } from "apify-client"; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const input = { "mode": "user_posts", "urls": [ "https://www.tiktok.com/@tiktok", "https://www.douyin.com/user/MS4wLjABAAAANXSltcLCzDGmdNFI2Q_QixVTr67NiYzjKOIP5s03CAE" ], "maxItems": 20 }; const run = await client.actor("openclawai/tiktok-douyin-bilibili-scraper").call(input, { maxTotalChargeUsd: 1 }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items); ``` -------------------------------- ### Run TikTok scraper with JavaScript Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/tiktok-douyin-bilibili-scraper/tiktok-video-downloader.md Uses official Apify client for Node.js (npm install apify-client) as ES module. maxTotalChargeUsd caps run cost. Requires APIFY_TOKEN environment variable. ```javascript import { ApifyClient } from "apify-client"; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); const input = { "mode": "video_detail", "platform": "tiktok", "urls": [ "https://www.tiktok.com/@khaby.lame/video/7649410784241405214" ], "downloadVideos": true }; const run = await client.actor("openclawai/tiktok-douyin-bilibili-scraper").call(input, { maxTotalChargeUsd: 1 }); const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(items); ``` -------------------------------- ### Run Reddit User History with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-user-profile-and-history.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "users": ["spez"], "maxItems": 50, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Reddit User Search with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-user-search.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "searches": ["python"], "searchType": "users", "maxItems": 50, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Reddit User Lookup with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-user-lookup-karma.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "searches": ["spez"], "searchType": "users", "maxItems": 10, } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ``` -------------------------------- ### Run Reddit Answers Scraper with Python Source: https://github.com/lnvestor/datapika-tasks/blob/main/docs/reddit-scraper/reddit-ai-answers.md Uses the official Apify client (`pip install apify-client`). `max_total_charge_usd` caps the cost of the run. ```python import os from apify_client import ApifyClient client = ApifyClient(os.environ["APIFY_TOKEN"]) run_input = { "answerQueries": ["best budget mechanical keyboard", "is uv better than pip"], } run = client.actor("openclawai/reddit-scraper").call(run_input=run_input, max_total_charge_usd=1) dataset_id = run["defaultDatasetId"] if isinstance(run, dict) else run.default_dataset_id for row in client.dataset(dataset_id).iterate_items(): print(row) ```