apify-hello-world

Featured

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: "apify hello world", "apify example", "run an apify actor", "apify quick start", "first apify scrape".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Apify Hello World ## Overview Run a public Actor from the Apify Store, wait for it to finish, and retrieve the scraped data. This demonstrates the fundamental call-wait-collect pattern used in every Apify integration. ## Prerequisites - `npm install apify-client` completed - `APIFY_TOKEN` environment variable set - See `apify-install-auth` if not ready ## Core Pattern: Call Actor, Get Data ```typescript import { ApifyClient } from 'apify-client'; const client = new ApifyClient({ token: process.env.APIFY_TOKEN }); // 1. Run an Actor and wait for it to finish const run = await client.actor('apify/website-content-crawler').call({ startUrls: [{ url: 'https://docs.apify.com/academy' }], maxCrawlPages: 5, }); // 2. Retrieve results from the default dataset const { items } = await client.dataset(run.defaultDatasetId).listItems(); console.log(`Crawled ${items.length} pages:`); items.forEach(item => { console.log(` - ${item.url}: ${item.text?.substring(0, 80)}...`); }); ``` ## Instructions ### Step 1: Create the Script Create `hello-apify.ts` (or `.js`) with the code above. ### Step 2: Run It ```bash # With tsx (recommended) npx tsx hello-apify.ts # Or with Node.js (plain JS) node hello-apify.js ``` ### Step 3: Understand the Output The Actor runs on Apify's cloud infrastructure. When it finishes: - `run.id` — unique run identifier - `run.status` — `SUCCEEDED`, `FAILED`, `TIMED-OUT`, or `ABORTED` - `run.defaultDatasetId` — ID of the dataset containing result...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

apify-deploy-integration

Deploy Apify Actors and integrate scraping into external applications. Use when deploying Actors to the platform, integrating Actor results into web apps, or connecting Apify with external services. Trigger: "deploy apify actor", "apify Vercel integration", "apify production deploy", "integrate apify results", "apify API endpoint".

2,266 Updated today
jeremylongshore
AI & Automation Listed

apify-automation

Automate web scraping and data extraction with Apify -- run Actors, manage datasets, create reusable tasks, and retrieve crawl results through the Composio Apify integration.

62,564 Updated 1 weeks ago
ComposioHQ
API & Backend Solid

apify-actorization

Actorization converts existing software into reusable serverless applications compatible with the Apify platform. Actors are programs packaged as Docker images that accept well-defined JSON input, perform an action, and optionally produce structured JSON output.

39,227 Updated today
sickn33
AI & Automation Featured

apify-local-dev-loop

Set up local Apify Actor development with Apify CLI and Crawlee. Use when creating Actors locally, testing with apify run, or establishing a fast develop-test-deploy cycle. Trigger: "apify dev setup", "apify local development", "develop actor locally", "apify run local".

2,266 Updated today
jeremylongshore
AI & Automation Solid

apify-actor-development

Important: Before you begin, fill in the generatedBy property in the meta section of .actor/actor.json. Replace it with the tool and model you're currently using, such as "Claude Code with Claude Sonnet 4.5". This helps Apify monitor and improve AGENTS.md for specific AI tools and models.

39,227 Updated today
sickn33