Skip to main content

Overview

ApifyTools extends ToolKit and integrates Apify Actors into your agents as callable tools. Apify is a platform with a marketplace of ready-to-use Actors for web scraping, data extraction, search engine scraping, social media scraping, and more. Each Actor you register becomes an individual tool that the model can call with the Actor’s input parameters.
ToolKit: ApifyTools inherits from ToolKit. You get all base behavior (e.g. include_tools, exclude_tools, timeout, use_async). See Creating ToolKit for the full API.
Requires an API key. Sign up at Apify Console and get your token from the Integrations page.

Basic Usage

Multi-Actor Configuration

Register multiple Actors at once so the model can pick the best tool for the job:

Actor Defaults

Use actor_defaults to pre-set input parameters for specific Actors. These values are always sent to the Actor but hidden from the LLM — the model won’t see or override them.
Pre-set values are merged underneath LLM-provided arguments at call time. The LLM only sees and controls parameters not listed in actor_defaults. You can register any Actor from the Apify Store. Here are some popular ones:
Each registered Actor becomes a tool named apify_actor_<actor_id> (with / and - replaced by _). For example, apify/rag-web-browser becomes apify_actor_apify_rag_web_browser. The model receives the Actor’s full input schema as the tool’s docstring, so it knows which parameters to pass.

Parameters

Example

Apify Restaurant Scout

Search Google Maps for restaurants using natural language queries via the compass/crawler-google-places Actor.

Resources