Skip to content
AI & Agents
Skill

/apify-index-actor-development

Build a two-Actor "scraper + index" pair on Apify in TypeScript. Actor A is a scheduled scraper that accumulates records in a named dataset (idempotent via a seen-set, keeps partial records on failure, optional HTML-to-Markdown enrichment). Actor B is an index/search Actor that

From plugin
awesome-skills
30333 skills

Claude Code

$ npx -y skills add apify/awesome-skills --skill apify-index-actor-development --agent claude-code

SKILL.md

apify-index-actor-development.SKILL.md
name: apify-index-actor-development
description: Build a two-Actor "scraper + index" pair on Apify in TypeScript. Actor A is a scheduled scraper that accumulates records in a named dataset (idempotent via a seen-set, keeps partial records on failure, optional HTML-to-Markdown enrichment). Actor B is an index/search Actor that reads A's named dataset and exposes filters in two modes from one codebase - a one-shot run (input filters to default dataset) and a Standby HTTP API (query params to JSON) - with pay-per-event charging in both. Covers the platform traps that break this setup - empty Output tab, OpenAPI 3.1 nullable syntax rejected at build, and the 403 on cross-Actor named-dataset access under limited permissions. Use when the user asks to "build an index Actor", "build a search API over my scraped dataset", "make a dual-mode / Standby + batch Actor", "expose a named dataset as an API", "scraper + search Actor pair", or "query another Actor's dataset". Extends apify-actor-development.
author: Fabian Maume
author_url: https://github.com/fmaume
metadata:
  category: actor-development
  keywords: "index-actor, search-api, standby, dual-mode, named-dataset, scheduled-scraper, seen-set, idempotent, pay-per-event, openapi, limited-permissions, cross-actor, typescript, express, turndown, actor-development"

Apify index Actor development (scraper + index pair)

This skill extends [apify-actor-development](https://github.com/apify/agent-skills/tree/main/skills/apify-actor-development) with one specific architecture: a **pair of Actors** where one collects data and the other serves it.

 ┌───────────────────────┐   named dataset    ┌──────────────────────────────┐
 │ Actor A - scraper     │ ─────────────────▶ │ Actor B - index / search      │
 │ scheduled, idempotent │  (accumulates      │ one-shot run: input → dataset │
 │ writes named + default│   across runs)     │ Standby: GET /search → JSON   │
 └───────────────────────┘                    │ pay-per-event `result`        │
                                              └──────────────────────────────┘
  • **Actor A - scraper**: runs on a schedule, writes structured records to a **named** dataset so results accumulate across runs, and skips items it has already seen.
  • **Actor B - index/search**: reads Actor A's named dataset and exposes filters. **Dual mode**: a standard run (input filters → default dataset) and a Standby HTTP API (query params → JSON response). Pay-per-result pricing.

Every pattern here came out of fixing a real failure on the Apify platform. Follow them to skip the same traps. For generic Actor rules (logging, crawlers, proxies, schemas, README) the base skill still applies; the parts this pair needs are condensed into `references/`.

Example prompts

Prompts this skill handles:

  • "Build an index Actor that lets people search the startups my scraper collects, both as a batch run and as an API."
  • "My scraper writes to a named dataset - make a second Actor that exposes it as a Standby search endpoint with pay-per-result pricing."
  • "My index Actor gets a 403 when it opens the other Actor's named dataset on the platform. Fix it."

Out of scope (the boundary):

  • "Build a single Actor that scrapes a site" - use [apify-actor-development](https://github.com/apify/agent-skills/tree/main/skills/apify-actor-development).
  • "Chain three Store Actors and an LLM step into one run" - use `apify-orchestrator-actor-development`.
  • Python Actors - the patterns transfer, but every code sample here is TypeScript.

Prerequisites

  • Apify account ([sign up](https://apify.com)) and the Apify CLI: `npm install -g apify-cli` or `brew install apify-cli` (never `curl | bash`).
  • Authentication via one of:
  • `apify login` (prints a URL and a one-time code; show both to the user)
  • `APIFY_TOKEN` environment variable (headless). Create it in [Apify Console → Settings → Integrations](https://console.apify.com/settings/integrations). Pass it only through the environment, never on the command line.
  • Node 24+, TypeScript, ESM. Known-good stack: `apify ^3.7`, `@crawlee/cheerio ^3.15`, `express ^4.21`, `turndown ^7` + `@types/turndown`, `apify-client` (transitive). Pin exact versions and commit the lockfile.

Telemetry attribution (required)

Append `--user-agent apify-awesome-skills/apify-index-actor-development` to **every** `apify` command run from this skill (`create`, `run`, `push`, `call`, `actors info`, ...). It is a global flag that only tags the call.

Before writing code, set `meta.generatedBy` in each `.actor/actor.json` to the tool and model in use (e.g. `"Claude Code with Claude Opus 5.5"`).

Workflow

Build Actor A first - Actor B needs real records to test against. Skip steps that do not apply when modifying an existing pair.

Step 0 - Agree on the record shape

Before any code, write down with the user:

1. The record type (one TypeScript interface, shared by both Actors - copy it, don't import across repos). 2. The **named dataset** name (e.g. `startup-funding-records`) and the **seen-set KV store** name (e.g. `startup-scraper-state`). 3. Which fields Actor B filters on (e.g. `sector`, `minAmount`, `fromDate`) and which are returned. 4. The pricing event (default: `result`, charged per returned record).

Step 1 - Scaffold both Actors

apify create <scraper-name> -t ts-crawlee-cheerio --user-agent apify-awesome-skills/apify-index-actor-development
apify create <index-name> -t ts-empty --user-agent apify-awesome-skills/apify-index-actor-development

Use `ts-crawlee-playwright-chrome` for the scraper if the source renders with JavaScript. Run `apify templates ls` for other stacks. `cd` into each and `npm install express turndown` / `npm install -D @types/express @types/turndown` as needed. Use `.js` suffixes on relative imports even in `.ts` files (ESM).

Step 2 - Implement Actor A (scraper)

Follow [references/scraper-actor.md](references/scraper-actor.md). Done when the scrap

Read more
@apify
Ships withawesome-skills

Community collection of Apify agent skills for AI coding assistants

Stars on GitHub

Momentum

stars in total
303
Star history of apify/awesome-skills on GitHub, a chart by star-history.com

Other skills on awesome-skills.

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3w393k
@openclaw@openclawInstall Skill

Questions about apify-index-actor-development.

Which coding agents can use apify-index-actor-development?
apify-index-actor-development installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.