Skip to content
B2B Lead Gen Hub

guides

Apollo.io API Tutorial: Push Prospecting Data Into Your Own Stack

Practical Apollo.io API walkthrough — authentication, people and company search endpoints, pagination, rate limits, and the CRM sync patterns that actually hold up.

By Katya, B2B Marketing ExpertUpdated April 22, 2026Tutorial6 min read
Apollo.io API Tutorial: Push Prospecting Data Into Your Own Stack

Summary / Verdict

The Apollo API is useful precisely when Apollo should not be the place your team does its work — CRMs, internal tools, enrichment pipelines, and data warehouses. This tutorial covers authentication, the endpoints worth using, pagination and rate limits, and the three integration patterns I have seen hold up in production.

Pros & Cons

Pros

  • Enrichment becomes automatic instead of manual copy-paste between tabs
  • CRM-as-source-of-pattern keeps data direction unambiguous and safe to automate
  • Event-driven lookups spend credits only on records that matter
  • Provider attribution reveals real hit rates for contract negotiation

Cons

  • Export credits are consumed on save — naive integrations exhaust plans fast
  • Rate limits and pagination both fail silently if not handled explicitly
  • Apollo data can be stale; automated writes without timestamps spread bad data
  • The API surface changes and undocumented behavior is not guaranteed

Step-by-step playbook

When the API Is the Right Move

Most teams never need the Apollo API. You need it in three situations. First, your CRM is the system of record and you refuse to let salespeople copy-paste between tabs. Second, you run an internal tool — a territory router, a scoring service, a data quality dashboard — that needs prospect data programmatically. Third, you are consolidating enrichment across vendors and want Apollo as one provider in a waterfall rather than as a destination. If none of those describe you, the native CRM integration will do the job and this tutorial is not for you.

Authentication: API Keys and OAuth

Apollo supports two auth paths. The simple one is a private API key generated in Settings → API & Webhooks, sent as a Bearer token in the Authorization header — fine for server-side jobs and internal tools, never acceptable in client-side code because anyone can read it out of the network tab. The second is OAuth 2.0, which you need when you are building an app that other Apollo customers install, or when you want scoped access and per-user identity. Most integrations I build use the API key on a backend service that fronts the calls, which also gives you a natural place to add caching and rate limiting.

The Three Endpoints That Cover 80% of Use Cases

Start with mixed_people/search — it accepts job titles, seniority, location, company size, and industry filters, and returns people records with emails and phone numbers subject to your plan's credits. Second, mixed_companies/search for firmographic lookups by domain, industry, or revenue range. Third, people/mixed_filter_search for combining people and company criteria in a single query, which is what you want when your ICP is stated as "VP of Sales at Series A SaaS companies in the US." Everything else — autocomplete, technology lookup, sequencer triggers — is secondary until those three are solid.

Pagination Will Bite You If You Skip This

Apollo paginates with page and per_page parameters, defaulting to 10 results with a documented ceiling of 100 per page. The naive loop — request page, request page, until empty — works until it silently truncates on large result sets or your job hits a rate limit mid-run and you store a partial list as if it were complete. What I do instead: set per_page to 100, track a cursor state in your own database keyed by the query hash, and write a reconciliation pass that compares returned totals against what you stored. Jobs that fail halfway should be resumable, not restartable, or you will double-spend credits on the same records.

Rate Limits and Credit Accounting

Apollo rate limits by plan and per endpoint, with lower ceilings on the free tier — treat 10 requests per second as an upper bound to design against and back off exponentially rather than retrying immediately when you receive a 429. More important than request rate is credit accounting: exporting a contact consumes a credit, and an integration that re-fetches the same person on every run will exhaust a 1,000-credit plan in a week. Cache contact IDs with a TTL of 30 days, and separate read operations (search, lookup) from write operations (save to list) so your enrichment job does not accidentally spend export credits.

Pattern 1: CRM as System of Record

The most reliable integration is one-directional: your CRM owns account and contact identity, Apollo supplies missing fields on a schedule. Run a nightly job that picks up contacts created in the last 24 hours without an email, query Apollo, write back email, title, and company firmographics, and stamp the record with the source and timestamp. Never write Apollo data over human-entered CRM fields — that is how you end up with a rep's carefully researched note replaced by a stale job title. This pattern has never caused me a data quality incident, because direction is unambiguous.

Pattern 2: Event-Driven Enrichment

Instead of polling, enqueue an enrichment event when something happens in your system — a lead form submits, an account enters an ABM tier, a trial converts. The worker calls Apollo once, stores the result with the triggering event ID, and fails loudly if the lookup returns nothing. This is cheaper than scheduled batches because you only spend credits on records that matter, and it gives you a natural audit trail. The trap is retry storms: put a dead-letter queue in place before you ship, because a misconfigured event source can fire thousands of duplicate enrichments overnight.

Pattern 3: Waterfall Enrichment Across Providers

When Apollo is one provider among several, write an abstraction layer that takes a person identifier and returns a normalized record with a provider attribution field. Try Apollo first for cost reasons, fall back to a premium provider for misses, and record which provider returned which field. The attribution data is what makes this pattern worth the effort — after 90 days you will know your actual per-provider hit rate and can renegotiate contracts with numbers instead of feelings. This is exactly what Clay does commercially; building it yourself only makes sense if you have engineering time and multiple expensive data contracts to manage.

Testing Before You Ship

Test against a fixture set: 50 known-good records, 50 known-bad, and 20 edge cases like missing middle names or international formatting. Assert on field presence, not just response codes — a 200 response with an empty email array is a failure for an enrichment job, and treating it as success is how partial data reaches your CRM. Log provider, query hash, and response size for every call during the first two weeks. Almost every integration I have reviewed had at least one endpoint returning far fewer records than the UI promised, and it only showed up in those logs.

Apollo.io API Tutorial: Push Prospecting Data Into Your Own Stack: illustration

Recommended Tool

Recommended Tool: Apollo.io - Try Free

Use Apollo to find decision-makers, enrich lead data, and launch outbound sequences from one place.

Try Apollo Free

Real scenario walkthrough

  • A RevOps team that wants Apollo data flowing into Salesforce without rep copy-paste
  • A product team embedding lead enrichment inside an internal tool
  • A data engineer consolidating multiple enrichment vendors behind one interface
  • A startup with a proprietary scoring model that needs fresh prospect attributes

FAQ

Does the Apollo API cost extra?

API access is included with paid Apollo plans; the free tier has very limited API access. You also consume export credits when saving contacts, so an API integration shares the same credit pool as your UI users.

What are the Apollo API rate limits?

Limits vary by plan and endpoint. Design against roughly 10 requests per second and implement exponential backoff on 429 responses rather than immediate retries — aggressive retry loops are the most common cause of temporary blocks.

Can the Apollo API write contacts into my CRM?

Apollo's API is primarily read-oriented for prospect data; it supports webhooks and some write operations such as list enrollment. For CRM syncing, most teams run Apollo data into the CRM rather than the reverse, which also keeps the CRM as the system of record.

How do I avoid burning through API credits?

Cache results by contact ID with a 30-day TTL, separate read calls from save operations, deduplicate by query hash, and only enrich records that will actually be contacted. Re-fetching unchanged records on every run is the single biggest credit leak I see.

Final verdict

Use the Apollo API when a system other than Apollo should own the work — a CRM, an internal tool, or an enrichment pipeline. Keep the integration one-directional, cache aggressively to protect export credits, handle pagination as resumable state, and log provider attribution from day one. Anything more elaborate than those four habits is engineering you will regret maintaining.

Share this guide