Index of every page on this site: llms.txt
All skills
Run it yourself

Run your first Apify Actor and retrieve results via apify-client. Use when starting a new Apify integration, testing connectivity, or learning the Actor call/dataset retrieval pattern. Trigger with "apify hello world", "apify example", "run an apify actor", "apify quick start", "first apify scrape".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/apify-hello-world

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencespatterns.md

≈735 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Apify Run & Retrieval Patterns

Deeper reference for the call-wait-collect workflow: sync vs async execution, dataset/key-value retrieval, and run configuration. Read this after the ## Core Pattern in SKILL.md when you need more than the happy path.

Synchronous vs Asynchronous Runs

// SYNCHRONOUS — .call() waits for the Actor to finish (simple, blocking)
const run = await client.actor('apify/web-scraper').call(input);

// ASYNCHRONOUS — .start() returns immediately, poll later
const run = await client.actor('apify/web-scraper').start(input);
// ... do other work ...
const finishedRun = await client.run(run.id).waitForFinish();

Use .call() for short scrapes and scripts where blocking is fine. Use .start() + .waitForFinish() when you want to kick off a long run and do other work (or track progress) before collecting results.

Working with Results

// Get all items (paginated internally)
const { items } = await client.dataset(run.defaultDatasetId).listItems();

// Get items with pagination control
const page1 = await client.dataset(run.defaultDatasetId).listItems({
  limit: 100,
  offset: 0,
});

// Download entire dataset as CSV/JSON/etc.
const buffer = await client.dataset(run.defaultDatasetId).downloadItems('csv');

// Get a named output from the key-value store
const screenshot = await client
  .keyValueStore(run.defaultKeyValueStoreId)
  .getRecord('screenshot');

Datasets hold the structured scrape output; the key-value store holds named artifacts (screenshots, HTML snapshots, run metadata). listItems() paginates internally, so it is safe on large datasets; use limit/offset when you want explicit control.

Run Configuration Options

const run = await client.actor('apify/web-scraper').call(
  input,       // Actor-specific input object
  {
    memory: 1024,          // Memory in MB (128–32768, powers of 2)
    timeout: 300,          // Timeout in seconds (default: Actor's setting)
    build: 'latest',       // Which build to use
    waitSecs: 120,         // Max wait for .call() (0 = don't wait)
  }
);

More memory generally means faster runs but higher compute-unit cost. timeout caps total Actor runtime; waitSecs caps how long .call() blocks the client (set 0 to fire-and-forget and poll later, as in the async pattern above).

Popular Starter Actors

Actor ID Purpose Typical Input
apify/website-content-crawler Crawl and extract text { startUrls, maxCrawlPages }
apify/web-scraper General-purpose scraper { startUrls, pageFunction }
apify/cheerio-scraper Fast HTML scraper { startUrls, pageFunction }
apify/google-search-scraper Google SERP results { queries, maxPagesPerQuery }

Browse the full catalog at apify.com/store. Each Actor's page documents its exact input schema.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a standard integration for Apify, a well-known web scraping and automation platform. It demonstrates best practices for secret management by using environment variables for API tokens and uses official client libraries. The skill involves running scripts and processing data from external websites, which are expected activities for its stated purpose.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: MEDIUM · 1 issue

Signed by skilld at 820dfc8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 months ago
What it can do
Reads files Edits files Runs commands
version
1.5.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "scraping",
  "automation",
  "apify"
]
All 6 allowed tools
ReadWriteEditBash(npm:*)Bash(npx:*)Bash(node:*)
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/apify-hello-world