> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phidata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Apify

**ApifyTools** enable an Agent to access the Apify API and run actors.

## Prerequisites

The following example requires the `apify-client` library and an API token which can be obtained from [Apify](https://apify.com/).

```shell theme={null}
pip install -U apify-client
```

```shell theme={null}
export MY_APIFY_TOKEN=***
```

## Example

The following agent will use Apify to crawl the webpage: [https://docs.phidata.com/introduction](https://docs.phidata.com/introduction) and summarize it.

```python cookbook/tools/apify_tools.py theme={null}
from phi.agent import Agent
from phi.tools.apify import ApifyTools

agent = Agent(tools=[ApifyTools()], show_tool_calls=True)
agent.print_response("Tell me about https://docs.phidata.com/introduction", markdown=True)
```

## Toolkit Params

| Parameter                 | Type   | Default | Description                                                                       |
| ------------------------- | ------ | ------- | --------------------------------------------------------------------------------- |
| `api_key`                 | `str`  | -       | API key for authentication purposes.                                              |
| `website_content_crawler` | `bool` | `True`  | Enables the functionality to crawl a website using website-content-crawler actor. |
| `web_scraper`             | `bool` | `False` | Enables the functionality to crawl a website using web\_scraper actor.            |

## Toolkit Functions

| Function                  | Description                                                   |
| ------------------------- | ------------------------------------------------------------- |
| `website_content_crawler` | Crawls a website using Apify's website-content-crawler actor. |
| `web_scrapper`            | Scrapes a website using Apify's web-scraper actor.            |

## Information

* View on [Github](https://github.com/agno-agi/phidata/blob/main/phi/tools/apify.py)
