---
title: Apify SDK
url: https://docs.apify.com/sdk.md
parents:
  - [Apify documentation](https://docs.apify.com/llms.txt)
---

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

Skip to main content

https://docs.apify.com

https://discord.com/invite/jyEM2PRvMU[Get started](https://console.apify.com)

[Get started](https://docs.apify.com/get-started)[Actors](https://docs.apify.com/actors)[Storage](https://docs.apify.com/storage)[Proxy](https://docs.apify.com/proxy)[Account](https://docs.apify.com/account)[Integrations](https://docs.apify.com/integrations)[Security](https://docs.apify.com/security)

[Academy](https://docs.apify.com/academy)

[API](https://docs.apify.com/api)

* [API reference](https://docs.apify.com/api/v2)
* [Client for JavaScript](https://docs.apify.com/api/client/js/docs)
* [Client for Python](https://docs.apify.com/api/client/python/docs)
* [Client for Go](https://github.com/apify/apify-client-go)
* [Client for PHP](https://github.com/apify/apify-client-php)
* [Client for Java](https://github.com/apify/apify-client-java)
* [Client for .NET](https://github.com/apify/apify-client-dotnet)
* [Client for Rust](https://github.com/apify/apify-client-rust)

[SDK](https://docs.apify.com/sdk)

* [SDK for JavaScript](https://docs.apify.com/sdk/js/docs/overview)
* [SDK for Python](https://docs.apify.com/sdk/python/docs/overview)

[CLI](https://docs.apify.com/cli)

* [Installation](https://docs.apify.com/cli/docs/installation)
* [Quick start](https://docs.apify.com/cli/docs/quick-start)
* [Command reference](https://docs.apify.com/cli/docs/reference)

[MCP](https://docs.apify.com/integrations/mcp)

# Apify SDK

The Apify SDK is a toolkit for building Actors—serverless microservices running on the Apify platform. Apify comes with first-class support for JavaScript/TypeScript and Python, but you can run any containerized code as Actors.

![](/img/javascript-40x40.svg)![](/img/javascript-40x40.svg)

## Apify SDK for JavaScript

The official library for creating Apify Actors in Python, with full lifecycle management, local storage, and event handling.

[Star](https://github.com/apify/apify-sdk-js)

[Get started](https://docs.apify.com/sdk/js/docs/guides/apify-platform)[View reference](https://docs.apify.com/sdk/js/reference)


```bash
npx apify-cli create my-crawler
```



```javascript
// The Apify SDK makes it easy to initialize the actor on the platform with the Actor.init() method,

// and to save the scraped data from your Actors to a dataset by simply using the Actor.pushData() method.



import { Actor } from 'apify';

import { PlaywrightCrawler } from 'crawlee';



await Actor.init();

const crawler = new PlaywrightCrawler({

    async requestHandler({ request, page, enqueueLinks }) {

        const title = await page.title();

        console.log(`Title of ${request.loadedUrl} is '${title}'`);

        await Actor.pushData({ title, url: request.loadedUrl });

        await enqueueLinks();

    }

});

await crawler.run(['https://crawlee.dev']);

await Actor.exit();
```


![](/img/python-40x40.svg)![](/img/python-40x40.svg)

## Apify SDK for Python

The official library for creating Apify Actors in Python, with full lifecycle management, local storage, and event handling.

[Star](https://github.com/apify/apify-sdk-python)

[Get started](https://docs.apify.com/sdk/python/docs/overview)[View reference](https://docs.apify.com/sdk/python/reference)


```bash
apify create my-python-actor
```



```python
# The Apify SDK makes it easy to read the actor input with the Actor.get_input() method,

# and to save the scraped data from your Actors to a dataset by simply using the Actor.push_data() method.



from apify import Actor

from bs4 import BeautifulSoup

import requests



async def main():

    async with Actor:

        actor_input = await Actor.get_input()

        response = requests.get(actor_input['url'])

        soup = BeautifulSoup(response.content, 'html.parser')

        await Actor.push_data({ 'url': actor_input['url'], 'title': soup.title.string })
```


Reference

* [API Reference](https://docs.apify.com/api/v2)
* [SDK for JavaScript](https://docs.apify.com/sdk/js/docs/overview)
* [SDK for Python](https://docs.apify.com/sdk/python/docs/overview)
* [Client for JavaScript](https://docs.apify.com/api/client/js/docs)
* [Client for Python](https://docs.apify.com/api/client/python/docs)
* [CLI](https://docs.apify.com/cli/docs)

Open source

* [Crawlee](https://crawlee.dev)
* [Fingerprint Suite](https://github.com/apify/fingerprint-suite)
* [impit](https://github.com/apify/impit)
* [MCP CLI](https://github.com/apify/mcpc)
* [Actor whitepaper](https://whitepaper.actor)
* [proxy-chain](https://github.com/apify/proxy-chain)

Security

* [Trust Center](https://trust.apify.com)

Community

* [Discord](https://discord.com/invite/jyEM2PRvMU)
* [X](https://x.com/apify)
* [YouTube](https://www.youtube.com/c/Apify)
* [GitHub](https://github.com/apify)

For AI

* [llms.txt](https://docs.apify.com/llms.txt)
* [llms-full.txt](https://docs.apify.com/llms-full.txt)
* [OpenAPI (JSON)](https://docs.apify.com/api/openapi.json)
* [OpenAPI (YAML)](https://docs.apify.com/api/openapi.yaml)

https://apify.com
