Apollo + Claude Code Integration via Deepline
Use Apollo's People Match API directly in Claude Code. One CLI install, then enrich contacts with deepline enrich leads.csv --with apollo_people_match.
What This Integration Does
Deepline connects your Apollo account to Claude Code via a native CLI skill. Once connected, Claude Code can enrich contacts via Apollo's People Match endpoint, combine Apollo with other providers in a waterfall, and push results to sequencers — all from slash commands or plain English.
No MCP servers. No browser automation. Deepline is a CLI that Claude Code calls directly, the same way it calls git or curl. Direct API calls use 5-10x fewer tokens than equivalent MCP operations.
In Claude Code, an agent can say: /deepline enrich leads.csv --with apollo_people_match and Deepline handles everything — auth, rate limiting, retries, and structured output.
Quick Start
Three steps to enrich contacts with Apollo from Claude Code:
Install Deepline CLI
curl -s "https://code.deepline.com//api/v2/cli/install" | bash
Add your Apollo API key
deepline config set APOLLO_API_KEY your_key
Run your first enrichment
deepline enrich leads.csv --with 'email=apollo_people_match:{"first_name":"{{First Name}}","last_name":"{{Last Name}}","organization_name":"{{Company}}"}'Why Use Deepline vs Calling Apollo's API Directly
You could write custom code to call Apollo's People Match endpoint. Here is why teams use Deepline instead:
Auth, rate limiting, and retry logic handled
Deepline manages API key injection, respects Apollo's rate limits, and retries transient failures automatically. No custom error-handling code to maintain.
One CLI command vs custom API integration code
A single deepline enrich command replaces dozens of lines of fetch/parse/retry logic. Works the same in Claude Code, Codex, or Cursor.
Token-efficient: one tool call, not many API round-trips
Claude Code calls deepline once and gets structured CSV output back. No multi-step MCP tool calls, no JSON parsing in the context window, no wasted tokens on intermediate API responses.
Waterfall fallback built in
Apollo alone covers ~70-80% of B2B emails. Add Crustdata and PDL as fallback providers to push coverage to 85%+. Deepline handles the entire waterfall with a single flag.
What Apollo Data You Can Access via Deepline
Deepline exposes Apollo's full People Match API. Every data point Apollo returns is available as a column in your output CSV:
| Field | Description |
|---|---|
| Email address | Verified work and personal emails via Apollo People Match (70-80% B2B coverage) |
| Phone numbers | Direct dials and mobile numbers when available |
| Job title & seniority | Current title, seniority level, department, and function |
| LinkedIn URL | Profile URL for each matched contact |
| Company data | Industry, employee count, revenue range, tech stack, and funding stage |
| Email enrichment | Validate and enrich existing email addresses with Apollo's verification |
Apollo People Match Endpoint
Under the hood, Deepline calls Apollo's POST /v1/people/match endpoint. Here is the request structure Deepline constructs from your CSV columns:
// Apollo People Match — what Deepline sends per row
POST https://api.apollo.io/v1/people/match
{
"first_name": "Jane",
"last_name": "Doe",
"organization_name": "Acme Corp",
"email": "jane@acme.com" // optional — improves match rate
}
// Response includes:
// email, phone, title, seniority, linkedin_url,
// organization.name, organization.industry,
// organization.estimated_num_employees, ...You never write this code. Deepline maps your CSV headers to the request fields and flattens the response into CSV columns automatically.
Apollo in a Waterfall
Apollo alone typically covers 70-80% of B2B emails. By adding Crustdata and PDL as fallback providers, you can push coverage to 85%+. Deepline handles this with a single flag:
# Apollo first, Crustdata second, PDL third — stop at first hit
deepline enrich leads.csv \
--with-waterfall email \
--providers apollo,crustdata,pdl
# Full waterfall with email validation and AI scoring
deepline enrich leads.csv \
--with-waterfall email \
--providers apollo,crustdata,pdl \
--with 'verify=leadmagic_email_validation:{"email":"{{email}}"}' \
--with 'score=call_ai:{"prompt":"Score this lead against our ICP: {{verify}}","json_mode":true}'The waterfall stops at the first provider that returns a result for each row. You only pay for the match that succeeds. If Apollo finds an email on the first try, Crustdata and PDL are never called for that row. Learn more about waterfall enrichment.
Using Apollo with Claude Code in Plain English
You don't need to memorize CLI flags. After installing Deepline, just tell Claude Code what you want in plain English. It reads the skill docs and calls the right Deepline commands automatically.
"Enrich these leads with Apollo"
deepline enrich leads.csv --with apollo_people_match
"Find emails for these companies using Apollo and fall back to PDL"
deepline enrich leads.csv --with-waterfall email --providers apollo,pdl
"Enrich this list with Apollo, validate the emails, and score against our ICP"
deepline enrich leads.csv --with apollo_people_match \
--with 'verify=leadmagic_email_validation:{"email":"{{email}}"}' \
--with 'score=call_ai:{"prompt":"Score this lead...","json_mode":true}'Trusted by GTM teams
Frequently Asked Questions
How do I use Apollo with Claude Code?
Install the Deepline CLI, add your APOLLO_API_KEY with `deepline config set`, then run `deepline enrich leads.csv --with apollo_people_match` from Claude Code. Deepline handles the API calls, rate limiting, and retries, returning enriched data directly in your session.
What Apollo data can I access through Claude Code via Deepline?
You can access Apollo's full People Match API including verified work and personal emails, direct dial and mobile phone numbers, current job title and seniority, LinkedIn URL, and company data like industry, employee count, revenue, and tech stack. All data is returned as structured CSV columns.
Can I combine Apollo with other enrichment providers in Claude Code?
Yes. Deepline supports waterfall enrichment across 15+ providers. Set Apollo as your primary provider and fall back to Crustdata, PDL, Hunter, or others when Apollo returns no result. A single command handles the entire waterfall — you only pay for the provider that finds a match.
Do I need my own Apollo API key?
Yes. Deepline uses your own Apollo API key, so you pay Apollo directly at their standard rates. There is no markup or credit system. Connect your key once and it works across all your enrichment commands.
Is the Apollo + Claude Code integration free?
Deepline itself is free to use with your own API keys. You only pay for Apollo API calls at Apollo's standard rates. There are no Deepline platform fees, credit bundles, or per-row charges.
Why use Deepline instead of Apollo's native Claude connector?
Apollo's native connector uses MCP (Model Context Protocol), which requires multi-step tool calls and consumes more tokens. Deepline is a CLI that Claude Code calls directly — like git or curl — using 5-10x fewer tokens. Deepline also adds waterfall fallback across 15+ providers, so when Apollo misses a contact, Crustdata or PDL fills the gap automatically.
Related
Connect Apollo to Claude Code in 30 seconds
Install Deepline, add your Apollo API key, and enrich your first contact. Free — you only pay Apollo's rate when it finds a match.
curl -s "https://code.deepline.com//api/v2/cli/install" | bashLearn more about Deepline →