apify-sdk-integration

Integrate Apify Actor execution into JavaScript, TypeScript, or Python applications using apify-client.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/apify/apify-grok-build-plugin --skill apify-sdk-integration-apify
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: apify-sdk-integration
Source: https://github.com/apify/apify-grok-build-plugin/tree/main/skills/apify-sdk-integration
Command: npx skills add https://github.com/apify/apify-grok-build-plugin --skill apify-sdk-integration-apify

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires apify-client.

What problem does it solve? Adding web scraping, automation, or data extraction to an existing application requires calling external scraping services programmatically, and developers often struggle with choosing the right package, handling long-running jobs, and retrieving structured results reliably. ## Core Features & Use Cases - Actor Execution from Code: Run Apify Actors synchronously or asynchronously from JS/TS or Python using the apify-client package, with clear guidance on when to use .call() versus .start() plus polling. - Result Retrieval: Fetch structured dataset items and key-value store records, with pagination support for large datasets. - REST API Fallback: Use the Apify REST API directly from any language without an official client. - Use Case: You are building a price-monitoring backend in Node.js. Use this Skill to call a Store Actor with apify-client, wait for completion, and pipe the extracted product data into your database. ## Quick Start Ask the AI to add Apify Actor execution to your existing app using the apify-client package and your APIFY_TOKEN.

Frequently Asked Questions about apify-sdk-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I call an Apify Actor from my JavaScript application?▼

Install the apify-client npm package, create an ApifyClient with your APIFY_TOKEN, then call client.actor('actor-id').call(input) for synchronous runs or .start() with waitForFinish() for long-running Actors. Retrieve results from the run's default dataset.

What is the difference between apify-client and apify packages?▼

apify-client is the API client for calling Actors from your application, while apify is the SDK for building Actors themselves. For integration work, always install apify-client; installing apify is the wrong package for this use case.

How do I run an Apify Actor from Python code?▼

Install apify-client via pip, create an ApifyClient with your token, and use client.actor('actor-id').call(run_input={...}) for blocking execution. An ApifyClientAsync variant is available for asyncio-based applications.

Can I use the Apify API from languages without an official client?▼

Yes, use the Apify REST API directly. Send a POST to /v2/actors/{actorId}/runs to start a run, poll /v2/actor-runs/{runId} for status, and GET /v2/datasets/{datasetId}/items to retrieve results, all with Bearer token authentication.

Why does my Apify Actor run fail with a 401 error?▼

A 401 status code indicates an invalid or missing APIFY_TOKEN. Generate a token at console.apify.com/settings/integrations and store it as an environment variable or in a secrets manager, never hardcoded in source code.

How do I handle long-running Apify Actors in my app?▼

Use .start() instead of .call() to launch the Actor without blocking, then poll with client.run(runId).waitForFinish(). You can also pass timeoutSecs in the Actor input or waitSecs on .call() to avoid indefinite waits.