| name | apify-data-pipeline |
| description | Run Apify Actors from Codex with a repeatable pipeline (discover actor, run sync/async, fetch dataset, and save outputs). Use when the user asks to scrape or collect structured data and wants files saved locally. |
Apify Data Pipeline
Overview
Use this skill to run Apify Actors from Codex and persist results to local files in a predictable way.
This skill is for operational data collection, not actor development. For building or editing actors, use apify-actor-development.
Prerequisites
APIFY_TOKEN is available in environment.
curl and jq are installed.
Quick checks:
apify info
openclaw skills info apify
Workflow
- Discover candidate actors by keyword.
- Inspect actor input schema.
- Run actor with sync endpoint when possible.
- If runtime is long, use async run and poll.
- Fetch dataset items.
- Save JSON and CSV/Markdown in a task folder under
output/.
Commands
1) Search actor
scripts/search_actor.sh "sec filings"
2) Run sync
scripts/run_actor_sync.sh <actor_id> '<json_input>' <output_json_path>
Example:
scripts/run_actor_sync.sh constant_quadruped~sec-edgar-filings-scraper '{"searchType":"ticker","tickers":["XPEV"],"formTypes":["20-F","6-K"],"limit":20}' /Users/tommy/Documents/output/apify/sec_xpev.json
3) Run async + fetch dataset
scripts/run_actor_async.sh <actor_id> '<json_input>'
scripts/fetch_dataset.sh <dataset_id> <output_json_path>
Output conventions
- Default directory:
/Users/tommy/Documents/output/apify/
- Keep raw output as
*_raw.json.
- Write cleaned tables to
*.csv and *.md when user asks.
- Keep source URLs and extraction timestamp in final output.
Safety rules
- Never print token values.
- Do not hardcode credentials into files.
- Validate JSON input before run.
- Prefer primary sources (issuer IR, regulator filings, official docs).