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 onapify_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 isguildai~apify.
Authentication
- Type: API key
- Header: Guild sends the key as a bearer token in the
Authorizationheader
Setup
1
Connect Apify
In Guild, go to Access & setup > Credentials, click Connect, select apify, and paste the key into API Key.
Usage
Selecting specific tools
Tools are named with theapify_ prefix. Use pick() to include only what your agent needs.
Tools
Tools in the latest published version ofguildai~apify:
All 231 tools
All 231 tools
Frequently asked questions
Can Guild agents trigger an Apify Actor and get results back in the same call?
Can Guild agents trigger an Apify Actor and get results back in the same call?
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.Does the integration support webhook events from Apify?
Does the integration support webhook events from Apify?
No. The catalog entry lists no webhook events for this integration, so agents cannot react to Apify-initiated callbacks through Guild event triggers.
How do I stop an agent from deleting Actors or datasets?
How do I stop an agent from deleting Actors or datasets?
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.Can I give one agent its own Apify key instead of sharing the workspace credential?
Can I give one agent its own Apify key instead of sharing the workspace credential?
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.