{"id":48670553,"url":"https://github.com/apify/apify-openclaw-plugin","last_synced_at":"2026-05-20T14:01:13.641Z","repository":{"id":339611192,"uuid":"1162650009","full_name":"apify/apify-openclaw-plugin","owner":"apify","description":"OpenClaw extension integration","archived":false,"fork":false,"pushed_at":"2026-05-18T08:44:14.000Z","size":467,"stargazers_count":23,"open_issues_count":11,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-18T10:43:32.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-20T14:25:19.000Z","updated_at":"2026-05-11T16:37:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/apify/apify-openclaw-plugin","commit_stats":null,"previous_names":["apify/apify-openclaw-integration","apify/apify-openclaw-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/apify/apify-openclaw-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Fapify-openclaw-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Fapify-openclaw-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Fapify-openclaw-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Fapify-openclaw-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apify","download_url":"https://codeload.github.com/apify/apify-openclaw-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apify%2Fapify-openclaw-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33262695,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-20T04:48:54.280Z","status":"ssl_error","status_checked_at":"2026-05-20T04:48:10.851Z","response_time":356,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-10T12:07:11.195Z","updated_at":"2026-05-20T14:01:13.635Z","avatar_url":"https://github.com/apify.png","language":"TypeScript","funding_links":[],"categories":["Skills \u0026 Plugins"],"sub_categories":["Notable Skills \u0026 Plugins"],"readme":"# Apify Plugin for OpenClaw\n\nUniversal web scraping and data extraction via [Apify](https://apify.com) — 20k+ Actors across Instagram, Facebook, TikTok, YouTube, Google Maps, Google Search, e-commerce, and more.\n\n## Install\n\n```bash\nopenclaw plugins install @apify/apify-openclaw-plugin\n```\n\nRestart the Gateway after installation.\n\n## Upgrading from 0.1.x to 0.2.x\n\nVersion 0.2.0 renamed the plugin id from `apify` to `apify-openclaw-plugin` to match the unscoped npm package name. If you installed 0.1.x, `openclaw plugins update apify` will fail with:\n\n```\nFailed to update apify: plugin id mismatch: expected apify, got apify-openclaw-plugin\n```\n\nDownload and run the migration script once **before** updating:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/apify/apify-openclaw-plugin/main/scripts/migrate-id.mjs -o /tmp/apify-migrate-id.mjs\nnode /tmp/apify-migrate-id.mjs\n```\n\n(Inspect `/tmp/apify-migrate-id.mjs` first if you prefer.)\n\nThen update normally:\n\n```bash\nopenclaw plugins update apify-openclaw-plugin\n```\n\nThe script reads `~/.openclaw/openclaw.json` (or `$OPENCLAW_CONFIG_PATH`), renames the `apify` id to `apify-openclaw-plugin` in `plugins.installs`, `plugins.entries`, `plugins.allow`, `plugins.deny`, and `plugins.slots.memory`, then writes the file back. It is safe to re-run.\n\n**Note:** if your config is JSON5 (has comments or trailing commas), the script will refuse to parse it — apply the rename by hand instead.\n\n## How it works\n\nThe plugin registers a single tool — `apify` — with three actions:\n\n| Action | Purpose |\n|--------|---------|\n| `discover` + `query` | Search the Apify Store for Actors by keyword |\n| `discover` + `actorId` | Fetch an Actor's input schema + README |\n| `start` + `actorId` + `input` | Run any Apify Actor, returns `runId` / `datasetId` |\n| `collect` + `runs` | Poll status and return results for completed runs |\n\nThe tool uses a **two-phase async pattern**: `start` fires off a run and returns immediately. `collect` fetches results when the run completes. The agent does other work in between.\n\n## Get an API key\n\n1. Create an Apify account at [https://console.apify.com/](https://console.apify.com/)\n2. Generate an API token in Account Settings → Integrations.\n3. Store it in plugin config or set the `APIFY_API_KEY` environment variable.\n\n## Configure\n\n```json5\n{\n  plugins: {\n    entries: {\n      \"apify-openclaw-plugin\": {\n        config: {\n          apiKey: \"apify_api_...\",     // optional if APIFY_API_KEY env var is set\n          baseUrl: \"https://api.apify.com\",\n          maxResults: 20,\n          enabledTools: [],           // empty = all tools enabled\n        },\n      },\n    },\n  },\n  // Make the tool available to agents:\n  tools: {\n    alsoAllow: [\"apify\"],   // or \"apify\" or \"group:plugins\"\n  },\n}\n```\n\nOr use the interactive setup wizard:\n\n```bash\nopenclaw apify setup\n```\n\n## apify\n\n### Workflow\n\n```\ndiscover (search) → discover (schema) → start → collect\n```\n\n1. **Search** — Find Actors: `{ action: \"discover\", query: \"amazon price scraper\" }`\n2. **Schema** — Get input params: `{ action: \"discover\", actorId: \"apify~google-search-scraper\" }`\n3. **Start** — Run the Actor: `{ action: \"start\", actorId: \"apify~google-search-scraper\", input: { queries: [\"OpenAI\"] } }`\n4. **Collect** — Get results: `{ action: \"collect\", runs: [{ runId: \"...\", actorId: \"...\", datasetId: \"...\" }] }`\n\n### Actor ID format\n\nActor IDs use the `username~actor-name` format (tilde separator, not slash).\n\n### Known Actors\n\nThe tool description includes 20k+ Actors across these categories:\n\n- **Instagram** — profiles, posts, comments, hashtags, reels, search, followers, tagged posts\n- **Facebook** — pages, posts, comments, likes, reviews, groups, events, ads, reels, photos, marketplace\n- **TikTok** — search, profiles, videos, comments, followers, hashtags, sounds, ads, trends, live\n- **YouTube** — search, channels, comments, shorts, video-by-hashtag\n- **Google Maps** — places, reviews, email extraction\n- **Other** — Google Search, Google Trends, Booking.com, TripAdvisor, contact info, e-commerce\n\n### Batching\n\nMost Actors accept arrays of URLs/queries in their input (e.g., `startUrls`, `queries`). Always batch multiple targets into a single run — one run with 5 URLs is cheaper and faster than 5 separate runs.\n\n### Examples\n\n```javascript\n// 1. Search the Apify Store\nconst search = await apify({\n  action: \"discover\",\n  query: \"linkedin company scraper\",\n});\n\n// 2. Get an Actor's input schema\nconst schema = await apify({\n  action: \"discover\",\n  actorId: \"compass~crawler-google-places\",\n});\n\n// 3. Start a Google Search scrape\nconst started = await apify({\n  action: \"start\",\n  actorId: \"apify~google-search-scraper\",\n  input: { queries: [\"OpenAI\", \"Anthropic\"], maxPagesPerQuery: 1 },\n  label: \"search\",\n});\n// -\u003e { runs: [{ runId, actorId, datasetId, status }] }\n\n// 4. Collect results\nconst results = await apify({\n  action: \"collect\",\n  runs: started.runs,\n});\n// -\u003e { completed: [...], pending: [...] }\n\n// Instagram profile scraping\nawait apify({\n  action: \"start\",\n  actorId: \"apify~instagram-profile-scraper\",\n  input: { usernames: [\"natgeo\", \"nasa\"] },\n});\n\n// TikTok search\nawait apify({\n  action: \"start\",\n  actorId: \"clockworks~tiktok-scraper\",\n  input: { searchQueries: [\"AI tools\"], resultsPerPage: 20 },\n});\n```\n\n### Sub-agent delegation\n\nThe tool description instructs agents to delegate `apify` calls to a sub-agent. The sub-agent handles the full discover → start → collect workflow and returns only the relevant extracted data — not raw API responses or run metadata.\n\n## Security\n\n- **API keys** are resolved from plugin config or `APIFY_API_KEY` env var — never logged or included in output.\n- **Base URL validation** — only `https://api.apify.com` prefix is allowed (SSRF prevention).\n- **External content wrapping** — all scraped results are wrapped with untrusted content markers.\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Type check\nnpx tsc --noEmit\n\n# Run tests\nnpx vitest run\n\n# Pack (dry run)\nnpm pack --dry-run\n```\n\n## Support\n\nFor issues with this integration, contact [integrations@apify.com](mailto:integrations@apify.com).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapify%2Fapify-openclaw-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapify%2Fapify-openclaw-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapify%2Fapify-openclaw-plugin/lists"}