Skip to content
$20 off Starter pack for $10 $30 with code$10 Starter with Shimu Ends in 24:00:00 Claim it
API

Apollo scraper API: start, poll and download exports in code

The Apollo Exporter API starts an export from an Apollo.io search URL, reports its status and returns the CSV, with every email checked by BounceBan if you ask ($1 per 1,000). Four calls, one bearer key, the same pay-as-you-go rates as the dashboard. Copy-paste quickstarts in cURL, JavaScript, Python and a shell script are below, followed by every field the API returns.

Last updated 12 min read

Teams that used the Apify Apollo actors from n8n or Make lost that path in September 2025. The Apollo Exporter API is the replacement for the job those actors did: start an export from a search URL, wait, download a file. The difference is what it needs from you: the search URL and a key, nothing else. The export runs on Apollo Exporter’s servers, with no Apollo login, cookies or extension on your side, and every email can be checked by BounceBan before the file is built when you send verify: true. The same calls cover exports without emails, company searches and the direct-dial add-on.

Authentication

Create a key on the API page of the dashboard. Keys start with ae_live_, are shown once, and can be revoked there at any time. Send the key on every call:

Authorization: Bearer ae_live_xxxxxxxxxxxxxxxxxxxxxxxx

Base URL: https://api.apolloexporter.com

Table: Authentication
Method and pathPurpose
POST /api/exportsStart an export from an Apollo search URL
GET /api/exports/{id}Status and counts for one export
GET /api/exports/{id}/downloadDownload the finished CSV
GET /api/exportsYour 500 most recent exports, newest first (?q= filters by file name)
POST /api/exports/{id}/cancelStop a queued, running or paused export; rows saved so far are kept
POST /api/exports/{id}/rerunRun a stopped, failed or paused export again, continuing from the rows already saved
DELETE /api/exports/{id}Delete a finished export and its rows for good (stop it first if it is still running)
GET /api/exports/streamLive status for all your exports, as Server-Sent Events
GET /api/limitsMinimum and maximum leads per request, and the current rates (no key needed)

Quickstart in cURL

Start an export. Check the URL first with the free Apollo search URL parser: it removes the page parameter and offers a headcount split for searches too large for one export.

curl -X POST https://api.apolloexporter.com/api/exports \
  -H "Authorization: Bearer $APOLLO_EXPORTER_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://app.apollo.io/#/people?personTitles[]=head%20of%20sales&personLocations[]=United%20States",
    "leads": 2500,
    "fileName": "us_heads_of_sales",
    "plan": "email",
    "dials": false
  }'
{
  "id": "6720f1c2a9b8e43d1c5e7a10",
  "fileName": "us_heads_of_sales",
  "kind": "people",
  "searchUrl": "https://app.apollo.io/#/people?personTitles[]=head%20of%20sales&personLocations[]=United%20States",
  "status": "queued",
  "plan": "email",
  "dials": false,
  "requested": 2500,
  "extracted": 0,
  "valid": 0,
  "dialsFound": 0,
  "credits": 0,
  "downloadReady": false,
  "createdAt": "2026-10-31T09:12:44.000Z"
}

Poll until complete is true. status turns done when scraping ends, but if you asked for emails or phone numbers (or rows are being unmasked) the file keeps filling in for a short while: phase is finalizing until then, and complete becomes true once nothing more will change:

curl https://api.apolloexporter.com/api/exports/6720f1c2a9b8e43d1c5e7a10 \
  -H "Authorization: Bearer $APOLLO_EXPORTER_KEY"

Download the file:

curl -L -o us_heads_of_sales.csv \
  https://api.apolloexporter.com/api/exports/6720f1c2a9b8e43d1c5e7a10/download \
  -H "Authorization: Bearer $APOLLO_EXPORTER_KEY"

Quickstart in JavaScript

Node 18 or newer, no dependencies. The same code runs in Deno, Bun and Cloudflare Workers.

const BASE = 'https://api.apolloexporter.com';
const KEY = process.env.APOLLO_EXPORTER_KEY;
const auth = { Authorization: `Bearer ${KEY}` };

async function exportApollo(url, leads, fileName) {
  const start = await fetch(`${BASE}/api/exports`, {
    method: 'POST',
    headers: { ...auth, 'Content-Type': 'application/json' },
    body: JSON.stringify({ url, leads, fileName, plan: 'email' }),
  });
  const job = await start.json();
  if (!start.ok) throw new Error(job.error);

  // Poll every 15 seconds until the export finishes.
  for (;;) {
    const res = await fetch(`${BASE}/api/exports/${job.id}`, { headers: auth });
    const status = await res.json();
    if (status.complete) break;
    if (status.status === 'failed' || status.status === 'cancelled') throw new Error(status.error || status.status);
    console.log(`${status.status}: ${status.extracted} rows, ${status.valid} emails`);
    await new Promise((r) => setTimeout(r, 15000));
  }

  const file = await fetch(`${BASE}/api/exports/${job.id}/download`, { headers: auth });
  return file.text(); // CSV
}

const csv = await exportApollo('https://app.apollo.io/#/people?personTitles[]=head%20of%20sales', 2500, 'heads_of_sales');

Quickstart in Python

import os
import time
import requests

BASE = "https://api.apolloexporter.com"
HEADERS = {"Authorization": f"Bearer {os.environ['APOLLO_EXPORTER_KEY']}"}
POLL_SECONDS = 15

def export_apollo(url: str, leads: int, file_name: str) -> str:
    start = requests.post(f"{BASE}/api/exports", headers=HEADERS, json={
        "url": url, "leads": leads, "fileName": file_name, "plan": "email",
    })
    job = start.json()
    if not start.ok:
        raise RuntimeError(job.get("error"))

    while True:
        status = requests.get(f"{BASE}/api/exports/{job['id']}", headers=HEADERS).json()
        if status["complete"]:
            break
        if status["status"] in ("failed", "cancelled"):
            raise RuntimeError(status.get("error") or status["status"])
        print(f"{status['status']}: {status['extracted']} rows, {status['valid']} emails")
        time.sleep(POLL_SECONDS)

    path = f"{file_name}.csv"
    with open(path, "wb") as f:
        f.write(requests.get(f"{BASE}/api/exports/{job['id']}/download", headers=HEADERS).content)
    return path

print(export_apollo("https://app.apollo.io/#/people?personTitles[]=head%20of%20sales", 2500, "heads_of_sales"))

Quickstart from the command line

A shell script that takes an Apollo search URL and writes leads.csv. It needs curl and jq.

#!/usr/bin/env bash
# usage: APOLLO_EXPORTER_KEY=ae_live_... ./apollo-export.sh "<apollo search url>" [leads]
set -euo pipefail
BASE=https://api.apolloexporter.com
AUTH="Authorization: Bearer $APOLLO_EXPORTER_KEY"
ID=$(curl -s -X POST "$BASE/api/exports" -H "$AUTH" -H "Content-Type: application/json" \
  -d "$(jq -n --arg url "$1" --argjson leads "${2:-2500}" '{url:$url, leads:$leads, fileName:"leads", plan:"email"}')" | jq -r .id)
until [ "$(curl -s "$BASE/api/exports/$ID" -H "$AUTH" | jq -r .complete)" = "true" ]; do sleep 15; done
curl -s -L -o leads.csv "$BASE/api/exports/$ID/download" -H "$AUTH" && echo "wrote leads.csv"

Request body

Table: Request body
FieldTypeRequiredNotes
urlstringYesAn app.apollo.io/#/people or #/companies search URL. Company URLs use the company plan automatically.
leadsintegerYes25 to 12,000. One export returns up to 12,000 leads from one search URL; split larger searches with the free URL tool.
fileNamestringYesLetters, numbers, dashes and underscores, up to 80 characters. Used as the download file name.
planstringNoemail (default, $3 per 1,000 emails found, verification not included) or rows (no emails, $1 per 1,000). Ignored for company URLs.
verifybooleanNoCheck each email with BounceBan before the file is built, 1/3 credit ($0.001) per check, $1 per 1,000. The current-company work email is checked first; an older work email or a personal email only if that fails, and it stops at the first pass. Valid and catch-all are kept; if nothing passes, the email cells are emptied and that row’s email charge is refunded. Unknown results are free. Adds the Email Status column. Off by default. People searches only, with emails on.
unmaskbooleanNoComing soon. Last name and LinkedIn unmask enrichment: with plan: rows, adds full last names and LinkedIn URLs at $1.50 per 1,000. Paid accounts only.
dialsbooleanNoAdd direct dials at $0.03 per number returned. Off by default. People searches only.
emailsbooleanNoFind emails while the export runs (people searches). Off by default.
phonesbooleanNoFind phone numbers while the export runs, $0.03 per number found (people searches). Off by default.
perCompanyintegerNo1 to 10. At most this many people from one company, like Apollo’s max per company on export. A company is matched by Apollo’s company ID, else its LinkedIn URL, else its website. People over the limit are skipped and not billed; filter titles in the search URL to choose who you get. People searches only.

Export object

Every call that returns an export returns this object.

Table: Export object
FieldTypeMeaning
idstringExport ID, used in every other call
statusstringqueued, running, paused, done, failed or cancelled. An export stays queued or running until it has every row asked for or the search has no more results: if an Apollo account is signed out, limited or challenged, it continues on another account
phasestringSame as status, except finalizing while a done export is still having emails, phone numbers or names filled in
completebooleantrue when the export is done and nothing more will change in the file: download then
kindstringpeople or companies, read from the URL
planstringemail, rows or company
dialsbooleanWhether direct dials were requested
requestedintegerLeads asked for
extractedintegerRows collected so far
validintegerEmails found; with verify: true, emails that passed the BounceBan check
dialsFoundintegerDirect dials returned
creditsintegerBalance used so far, in units of $0.0001
downloadReadybooleantrue once the CSV can be downloaded
errorstring or nullWhy an export failed
createdAt, startedAt, finishedAt, updatedAtISO 8601Timestamps

CSV columns

The download is a UTF-8 CSV with one header row and single-line cells. People exports carry these columns, in the same order as Apollo’s own CSV export (person, email, company size and industry, links, location, company address, then the extra company fields and the Apollo IDs); download the sample file to see real-shaped rows.

Table: CSV columns
ColumnsExampleNotes
Company, WebsiteNorthwind Labs, northwindlabs.example
First Name, Last Name, Job TitleAva, Mitchell, Head of SalesOn plan: rows, the last name is full on most rows and first letter only on the rest
Email, Waterfall Email, Personal Emailava.mitchell@northwindlabs.exampleEmail holds work addresses at the current company (the email domain matches Website), Waterfall Email the other work addresses (past companies), Personal Email free-mailbox ones (Gmail, Outlook, Yahoo, iCloud and the like); several are comma-separated and each address appears once. With verify: true the row keeps the one address that passed, in the column it came from. Exports made before 29 November 2026 have Work Email + Personal Email instead. Empty when no email was found; on the with-emails plan those rows cost $1 per 1,000
Email StatusvalidOnly with verify: true: valid, catch-all, invalid, unverified or blank
Personal PhoneOnly in exports that asked for phone numbers (direct dials or Find phone numbers)
City, State, Country, Location, Time ZoneAustin, Texas, United States, America/ChicagoThe person’s location and time zone
Person Linkedin, Company Linkedinlinkedin.com/in/ava-mitchell-exampleOn plan: rows, the person URL is on most rows
Company Number Of Employees, Headcount Growth 6 Months, Headcount Growth 12 Months, Headcount Growth 24 Months85, 2.8%, 5%, 4.3%Company headcount growth over 6, 12 and 24 months
Industry, Keywords, Company LanguagesComputer Software, saas, English
Company Facebook, Company Twitter, Company LogoWhere Apollo has them; the logo is an image URL
Street Address, Company City, Company State, Postal Code, Company CountryAustin, Texas, United StatesCompany address
Company Founded Year, Company Phone2016
Headline, Company DescriptionHead of Sales at Northwind Labs
Apollo Contact Id, Apollo Account IdStable Apollo IDs, useful for de-duplicating appended lists

On the rows plan the two email columns are empty unless you asked for emails. Company exports have their own columns, listed on the Apollo company scraper page.

Errors, limits and retries

Table: Errors, limits and retries
StatusWhenWhat to do
400Bad URL, leads out of range, missing file name, unknown planFix the field named in the response’s field
401Missing, invalid or revoked keyCreate a new key in the dashboard
402Balance too low for the requested sizeLower leads or top up
404Export ID not found on your accountCheck the ID
409Deleting an export that is still in progress, or stopping one that already finishedStop it with POST /cancel first, then delete

To make POST /api/exports safe to retry, send an Idempotency-Key header (any unique string up to 100 characters). A retry with the same key returns the export the first call created instead of starting a second one.

Errors return JSON with an error message, and code and field where they apply. Poll no faster than every 15 seconds. Retry 429 (too many requests) and network errors with exponential backoff starting at 15 seconds. Do not retry 400, 401 or 402 without changing the request.

Live status instead of polling

GET /api/exports/stream keeps a connection open and pushes Server-Sent Events: a snapshot with your recent exports and balance on connect, then an export event on every status change and a credits event when the balance moves. The server closes the stream every 10 minutes with a reconnect event; reconnect and you receive a fresh snapshot.

const res = await fetch('https://api.apolloexporter.com/api/exports/stream', { headers: { Authorization: `Bearer ${KEY}` } });
const reader = res.body.pipeThrough(new TextDecoderStream()).getReader();
for (;;) {
  const { value, done } = await reader.read();
  if (done) break; // reconnect here
  for (const block of value.split('\n\n')) if (block.includes('event: export')) console.log(block);
}

Why a search-URL API is different from a database API

Most results for this search are API pages for Apify actors. They solve a different problem. The database actors sell rows from a dataset their owners maintain, so freshness depends on when it was last rebuilt, and they cannot return the people your Apollo search shows. Actors that call Apollo’s own API need your Apollo API key and spend your Apollo credits. This API exports the search you built from its URL alone, on our servers, without your Apollo key, login or credits, so the rows match the search on your screen today, and with verify: true BounceBan checks every email before the file exists. Pricing is per 1,000, pay as you go. The Apify alternative page maps the old actor inputs to these calls.

Open source: the Apollo search-URL parser

The URL parser, validator and splitter that power the free URL tool are a single TypeScript module with no dependencies that turns an Apollo search URL into structured filters and splits a large search by headcount band. It is being prepared for publication on GitHub under an MIT licence; the module is identical to what runs in the tool on this site.

import { parseApolloUrl, splitByHeadcount } from 'apollo-search-url';

const search = parseApolloUrl(url);        // { kind: 'people', filters: {...}, warnings: [...] }
const urls = splitByHeadcount(search);     // 11 URLs, one per headcount band

From an AI agent: the MCP server

The same API is available to AI assistants as an MCP server. Install the Apollo Exporter MCP server in Claude, Cursor, VS Code or any MCP client with your API key, and the agent can count an Apollo search, split it, start exports and read the rows in plain language.

n8n, Make and Clay

  • n8n and Make: an HTTP Request node for POST /api/exports, a Wait node of 15 seconds, then GET /api/exports/{id} in a loop until complete is true, then an HTTP node to download.
  • Clay: use an HTTP API column to start the export and a second column to fetch the download; import the CSV into a new table.
  • Google Sheets: Apps Script UrlFetchApp works with the same calls.

If the end of the pipeline is a spreadsheet, Apollo to Google Sheets covers the file import and the IMPORTRANGE pattern that survives refreshes. For a CRM, Apollo to HubSpot covers property mapping and deduplication.

Paste an Apollo search URL. Download the CSV.

Sign up and get 100 free credits, that is 100 emails found. No card, nothing to install, nothing to hand over but the URL.

FAQ

Questions people ask

Does the API use my Apollo account?

No. The API takes the search URL and the export runs on Apollo Exporter's servers. You never send your Apollo password, cookies or session, nothing has to stay signed in, and there is no extension to install.

Does the API count against Apollo's own export credits?

No. The export runs on Apollo Exporter's servers and does not use your Apollo account, so your Apollo export credits are not spent. You pay Apollo Exporter per email found ($3 per 1,000), per row without emails ($1 per 1,000), per company ($1 per 1,000) or per direct dial ($0.03).

Is there a sandbox or test mode?

There is no separate sandbox. Every account starts with 100 free credits, which is enough for a real test export, and a request below 25 leads is rejected before anything runs.

What is the maximum rows per job?

A request can ask for 25 to 12,000 leads, and you can queue as many requests as you like: each one starts as soon as capacity is free, oldest first. One export returns up to 12,000 leads from one search URL; Apollo's own 100-page display cap (2,500 rows) does not limit it. Split a search larger than 12,000 by headcount band with the free URL tool.

Are rows billed if verification flags them?

On the with-emails plan you pay per email Apollo returns; rows with no email are billed at the `rows` rate, $1 per 1,000. Verification is not included: send `verify: true` and BounceBan checks each email for $1 per 1,000. Valid and catch-all are kept; if nothing passes, the email cells are emptied and that row's email charge is refunded, and unknown results are free. The balance needed for the requested size is checked when the job is created, and you are billed only for what the export delivers.

What happens if an export stops partway?

The job stops with an error and keeps the rows already collected; you are charged only for rows delivered. Start a new request for the remainder. Your own Apollo session is not involved, so there is nothing to sign back in to.

Are webhooks available?

Not yet. Use the status stream at GET /api/exports/stream, which pushes every status change over Server-Sent Events, or poll GET /api/exports/{id} every 15 seconds.

Can I call it from n8n, Make or Zapier?

Yes. Every call is plain HTTPS with a bearer key, so any HTTP node works: one node to start, a wait-and-poll loop, and one to download.