# ApifyWrapper

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/utilities/apify/ApifyWrapper)

Wrapper around Apify.
To use, you should have the ``apify-client`` python package installed,
and the environment variable ``APIFY_API_TOKEN`` set with your API key, or pass
`apify_api_token` as a named parameter to the constructor.

## Signature

```python
ApifyWrapper()
```

## Extends

- `BaseModel`

## Properties

- `apify_client`
- `apify_client_async`
- `apify_api_token`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/utilities/apify/ApifyWrapper/validate_environment)
- [`call_actor()`](https://reference.langchain.com/python/langchain-community/utilities/apify/ApifyWrapper/call_actor)
- [`acall_actor()`](https://reference.langchain.com/python/langchain-community/utilities/apify/ApifyWrapper/acall_actor)
- [`call_actor_task()`](https://reference.langchain.com/python/langchain-community/utilities/apify/ApifyWrapper/call_actor_task)
- [`acall_actor_task()`](https://reference.langchain.com/python/langchain-community/utilities/apify/ApifyWrapper/acall_actor_task)

## ⚠️ Deprecated

Deprecated since version 0.3.18. Use langchain_apify.ApifyWrapper instead. This class is deprecated and will be removed in a future version. You can swap to using the `ApifyWrapper` implementation in `langchain_apify` package. See <https://github.com/apify/langchain-apify>

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/7c10a5fa327f6aaaf7c932822a9e5d144891406e/libs/community/langchain_community/utilities/apify.py#L12)