How to find your Apify API token

Find your Apify API token in the console, copy it safely, and use it with scripts, webhooks, and actor runs.

Reviewed by Try Apify Editorial

Docs pages are reviewed against current Apify workflows, common setup mistakes, and the claims we make on the page. Read our methodology or send a correction to hello@tryapify.com.

TL;DR

Log in to the Apify Console, open Settings, go to Integrations, and copy your personal API token. Treat it like a password and store it in an environment variable.

Where your Apify API token lives

If you searched for "Apify API token" or "how to get Apify API token," the answer is simple: it lives in your Apify account settings, not on the actor page.

Open console.apify.com, click Settings in the left sidebar, then open Integrations. Your personal API token is listed there, ready to copy.

Step-by-step

  1. Log in to your Apify account
  2. Open the Apify Console
  3. Click Settings
  4. Click Integrations
  5. Copy the value under Personal API token

What the token is for

Your token authenticates API requests. You need it when you want to:

  • Run actors from Python or JavaScript
  • Start jobs from your own backend
  • Fetch datasets and run logs over the API
  • Connect Apify to webhooks or automation tools

Keep it out of the wrong places

Do not paste your Apify API token into public code, screenshots, or support threads. Store it in an environment variable instead.

export APIFY_API_TOKEN="your_token_here"

Quick example

Once you have the token, you can use it with the Apify client:

Python

from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

JavaScript

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

What to read next

Once you have the token, go to the Apify API guide for full Python and JavaScript examples, or start with the getting started guide if you have not run your first actor yet.