Apify Integration for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Apify MCP or direct API to launch Actors, monitor task status, manage datasets, and automate web data collection through natural language.
Apify Logo
Gradient Top
Gradient Middle
Gradient Bottom
divider

Supported Tools

Tools
Create ActorTool to create a new actor with specified configuration.
Create DatasetTool to create a new dataset.
Create Actor TaskTool to create a new actor task with specified settings.
Create Task WebhookTool to create a webhook for an actor task.
Delete ActorTool to delete an actor permanently.
Delete WebhookTool to delete a webhook by its id.
Get Actor DetailsTool to get details of a specific actor.
Get all webhooksTool to get a list of all webhooks created by the user.
Get dataset itemsTool to retrieve items from a dataset.
Get Default BuildTool to get the default build for an actor.
Get Key-Value RecordTool to retrieve a record from a key-value store.
Get list of buildsTool to get a list of builds for a specific actor.
Get list of runsTool to get a list of runs for a specific actor.
Get list of task runsTool to get a list of runs for a specific actor task.
Get list of tasksTool to fetch a paginated list of tasks belonging to the authenticated user.
Get list of task webhooksTool to get a list of webhooks for a specific actor task.
Get logTool to retrieve logs for a specific actor run or build.
Get OpenAPI DefinitionTool to get the openapi definition for a specific actor build.
Get Task InputTool to retrieve the input configuration of a specific task.
Resurrect RunTool to resurrect a finished actor run.
Run Actor AsynchronouslyTool to run a specific actor asynchronously.
Run Actor SyncTool to run a specific actor synchronously with input and return its output record.
Run Actor Sync & Get Dataset ItemsTool to run an actor synchronously and retrieve its dataset items.
Run Task AsynchronouslyTool to run a specific actor task asynchronously.
Store Data in DatasetTool to store data items in a dataset.
Store Data in Key-Value StoreTool to create or update a record in a key-value store.
Update Key-Value StoreTool to update a key-value store's properties.
Update Task InputTool to update the input configuration of a specific actor task.

Why Use Composio?

AI Native Apify Integration

  • Supports both Apify MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for launching Actors, fetching run results, and managing datasets

Managed Auth

  • Built-in API key management for secure and easy integration
  • Central place to manage, scope, and revoke Apify access
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Apify
  • Scoped, least privilege access to Apify resources
  • Full audit trail of agent actions to support review and compliance

Connect Apify MCP Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio claude-agent-sdk
Install the Composio SDK and Claude Agent SDK

Create Tool Router Session

python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
Initialize the Composio client and create a Tool Router session

Connect to AI Agent

python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Apify tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Get dataset items from my latest Apify dataset')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
Use the MCP server with your AI agent

Connect Apify API Tool with your Agent

Python
TypeScript

Install Composio

python
pip install composio_openai
Install the Composio SDK

Initialize Composio and Create Tool Router Session

python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
Import and initialize Composio client, then create a Tool Router session

Execute Apify Tools via Tool Router with Your Agent

python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'Scrape product prices from an Amazon search page'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
Get tools from Tool Router session and execute Apify actions with your Agent

Use Apify with any AI Agent Framework

Choose a Framework you want to connect Apify with

OpenAI Agents SDK

OpenAI Agents SDK

Use Apify MCP with OpenAI Agents SDK

Claude Agents SDK

Claude Agents SDK

Use Apify MCP with Claude Agents SDK

Google ADK

Google ADK

Use Apify MCP with Google ADK

Langchain

Langchain

Use Apify MCP with Langchain

AI SDK

AI SDK

Use Apify MCP with AI SDK

Mastra AI

Mastra AI

Use Apify MCP with Mastra AI

LlamaIndex

LlamaIndex

Use Apify MCP with LlamaIndex

CrewAI

CrewAI

Use Apify MCP with CrewAI

Pydantic AI

Pydantic AI

Use Apify MCP with Pydantic AI

Autogen

Autogen

Use Apify MCP with Autogen

Frequently Asked Questions

Do I need my own developer credentials to use Apify with Composio?

Yes, Apify requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Used by agents from

Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai
Context
ASU
Letta
glean
HubSpot
Agent.ai
Altera
DataStax
Entelligence
Rolai

Never worry about agent reliability

We handle tool reliability, observability, and security so you never have to second-guess an agent action.