Skip to main content
Integrations · Apify
Guild agents manage Apify Actors, trigger runs, and retrieve structured scraping results on your behalf. Guild stores your Apify API key server-side and injects it as a bearer token, so agent code never sees the credential. Credential policies let you restrict which operations each agent may call, and every request passes through Guild’s audit trail.

Book a demo

See how teams govern agents that use Apify.

Talk to sales

Get access to Guild, then connect Apify to your first agent.

What the Apify integration exposes

The tools cover Actor lifecycle operations: create, update, delete, build, and run Actors, and abort or reboot runs in progress. Agents can also read and write the default dataset, key-value store, and request queue attached to any run. Task-scoped variants let agents target the last run of a named Actor task without tracking a run ID. A sync group of tools runs an Actor and returns dataset items or a key-value store record in a single call.

How it works

1

Open credentials in Guild

Go to Access & setup > Credentials in Guild. Click Connect, select apify, and paste your Apify API token into the API Key field.
2

Import the tool set

Add guildai~apify to your agent’s dependencies and import ApifyTools from @guildai-services/guildai~apify. Spread it into your agent’s tools object.
3

Narrow tools with pick

Tools are prefixed apify_. Use pick() from the Agent SDK to include only the tools your agent needs, as shown in the tool sets reference.

Why Apify access needs governing

Apify credentials can create and delete Actors, abort running jobs, and overwrite dataset contents. Guild stores the API key server-side and injects it through the credential proxy, so no agent or developer sees it directly. You can scope a credential to one workspace, one member, or one agent through Credentials, which limits blast radius if an agent behaves unexpectedly. Credential policies let you write ALLOW and DENY rules that the proxy enforces before any request reaches Apify. A DENY rule on apify_actor_delete or a wildcard apify_actor_run_*_delete pattern blocks destructive calls for specific agents or workspaces while leaving read operations open. Guild evaluates policies server-side; agents cannot bypass them. Without scoped rules the credential starts with an allow-all default; adding a policy through Credential policies and removing that default shifts the posture to explicit allow.

About the Apify integration

Agents can create, update, and delete Apify Actors and trigger or abort their runs. They can read and write data stored in datasets, key-value stores, and request queues associated with each run. This lets agents automate web scraping workflows and retrieve structured results programmatically. The integration is guildai~apify.

Authentication

  • Type: API key
  • Header: Guild sends the key as a bearer token in the Authorization header

Setup

1

Connect Apify

In Guild, go to Access & setup > Credentials, click Connect, select apify, and paste the key into API Key.
See Credentials for workspace, member, and agent-scoped credentials.

Usage

Selecting specific tools

Tools are named with the apify_ prefix. Use pick() to include only what your agent needs.

Tools

Tools in the latest published version of guildai~apify:

Frequently asked questions

Yes. The apify_actor_run_sync_get_dataset_items_get and apify_actor_run_sync_get_dataset_items_post tools run a specific Actor and return its dataset items synchronously, without a separate polling step.
No. The catalog entry lists no webhook events for this integration, so agents cannot react to Apify-initiated callbacks through Guild event triggers.
Write a DENY rule in the credential policy targeting operations such as apify_actor_delete, apify_actor_run_dataset_delete, or the pattern apify_*_delete. Guild’s credential proxy blocks any matching request before it reaches Apify. See Credential policies for rule syntax.
Yes. On the installed agent’s page you can connect a credential dedicated to that agent. Guild stores it under the account that owns the workspace and never uses it for other agents. See Credentials for the full resolution order.

Put a governed agent on Apify this week

Book a demo

See how teams govern agents that use Apify.

Talk to sales

Get access to Guild, then connect Apify to your first agent.
Also runs on Guild: Browserbase · Cloudflare · Firecrawl · Kernel Read: Docs: Credential policies · Credentials · Tools in agents
Last modified on December 1, 2026