All dispatches/Engineering

Best & Cheap IP Lookup API in 2026: Latency Benchmarks, Credit Multipliers & Cost per 1,000 Lookups

How to evaluate the best and cheapest IP lookup API for geolocation, BGP ASN, and VPN/proxy detection: flat 1-credit-per-IP metering, $0.006–$0.048 per 1K lookup pricing, 100-IP batching, and when to switch to a $20/mo downloadable MMDB.

Why "cheap IP lookup API" pricing is often deceptive

When developers search for a cheap IP lookup API or the best IP lookup API for production geolocation, BGP ASN resolution, and VPN/proxy fraud prevention, headline monthly prices rarely tell the full story. Across the IP intelligence market, three billing mechanics routinely inflate a $15/mo or $50/mo plan into a $500+/mo bill:

  1. Per-field credit multipliers (2x to 5x burn rate): Several IP lookup providers advertise a low base price per 1,000 requests, but charge 2 credits when you request ASN/ISP fields, 3 credits when you enable VPN/proxy/Tor security fields, and 4+ credits when you include abuse or scanner scores. A 1,000,000 credit plan silently shrinks to 250,000 actual IP lookups.
  2. Gating batch endpoints behind expensive tiers: Without a batch endpoint (POST /v1/ip/batch), enriching a 50,000-line log file requires 50,000 separate HTTPS round trips, saturating connection pools and rate limits.
  3. Runaway post-paid overage fees: If a botnet or scraper hits your login endpoint over a weekend, post-paid overage billing can rack up hundreds of dollars before an alert fires on Monday morning.

This guide breaks down how ipscope engineers a genuinely cheap IP lookup and downloadable MMDB platform without compromising on routing accuracy, sub-millisecond lookup speed, or explainable security telemetry.


Transparent API pricing: Cost per 1,000 lookups ($0 to $299/mo)

On the ipscope Lookup API, metering follows two strict rules enforced directly in the billing engine:

  • Flat 1 credit per identified IP: Whether your plan returns 2 intelligence families (country + asn) or all 6 intelligence blocks (country, city, asn, company, privacy, and abuse), 1 identified IP address always equals 1 credit. There are zero field multipliers.
  • Unidentified IPs cost 0 credits: If an IP address cannot be identified in the active snapshot (no matched network, country, or ASN), it is not debited against your quota.

Here is the complete breakdown of ipscope's API plans and effective cost per 1,000 lookups (from our live Pricing catalog):

API PlanMonthly PriceYearly Price (2 Mo Free)Monthly QuotaCost per 1,000 Lookups (Monthly / Yearly)Sustained Rate Limit (Burst)Included Intelligence BlocksBatch API (100 IPs/call)
Free$0/mo$0/yr30,000 / mo$0.00 / 1K5 req/s (20 burst)country, asn (geo_country + network)Included (up to 10 keys)
Starter$12/mo$120/yr ($10/mo)250,000 / mo$0.048 / 1K ($0.040 / 1K yr)10 req/s (50 burst)country, city, asn, company (connection)Included (up to 20 keys)
Pro (Most Popular)$39/mo$390/yr ($32.50/mo)2,000,000 / mo$0.0195 / 1K ($0.0163 / 1K yr)30 req/s (150 burst)All 6 blocks: country, city, asn, company, privacy (VPN/Proxy/Tor), abuseIncluded (up to 20 keys)
Business$99/mo$990/yr ($82.50/mo)10,000,000 / mo$0.0099 / 1K ($0.0083 / 1K yr)100 req/s (500 burst)All 6 blocks + priority supportIncluded (up to 50 keys)
Enterprise$299/mo$2,990/yr ($249.17/mo)50,000,000+ / mo$0.00598 / 1K ($0.00498 / 1K yr)500 req/s (2,500 burst)All 6 blocks + dedicated engineer & custom DPAIncluded (up to 100 keys)

Fail-closed prepaid wallet ($0.10 / 1,000 lookups)

Every account includes an optional prepaid micro-USD wallet. If your traffic exceeds your monthly plan quota:

  • Lookups draw from your prepaid wallet at a flat $0.10 per 1,000 lookups ($0.0001 per IP).
  • When your wallet balance reaches $0 (or if you never load a wallet balance), the API fails closed with HTTP 402 Payment Required. You can never receive a surprise overage invoice.

What makes an IP lookup API the "best" technically?

Price per lookup only matters if the underlying data is accurate enough to prevent false positives in your routing, tax localization, and fraud engines. Across our provider comparison against MaxMind, IPinfo, IPLocate, IPGeolocation, and IPScanner, five architectural features set ipscope apart:

1. Physical vs. declared geolocation (is_virtual_location)

RIR WHOIS records frequently list a holding company's headquarters country rather than the country where packets physically terminate. Every ipscope lookup returns:

  • geo.country_code: The effective operational country (e.g., "DE").
  • geo.declared_country_code: The RIR registration country (e.g., "US").
  • geo.physical_country_code: Physical country corroboration on API responses.
  • geo.is_virtual_location: true whenever country_code and declared_country_code disagree.
  • geo.accuracy_radius_km: Calibrated against held-out RIPE Atlas probes so the true location lies inside the radius ~80% of the time (15 km hosting with postal, 75 km residential, 150 km mobile 5G CGNAT).

2. Explainable VPN, proxy, Tor & Apple Private Relay detection

Instead of an opaque risk score that locks out iPhone users or corporate VPNs, ipscope's security block returns:

  • Explicit booleans: is_vpn, is_proxy, is_tor_exit, is_hosting, and is_relay (null when evidence is insufficient, never a guess).
  • anonymizer_type: Distinguishes apple_private_relay (Apple iCloud Private Relay egress, which is not flagged as VPN, proxy, or hosting) from vpn, proxy, tor_exit, hosting_proxy, and none.
  • Deterministic reason_codes: Such as VPN_DATACENTER_FEED, TOR_EXIT_NODE_FEED, OPEN_PROXY_FEED, HOSTING_ASN_HEURISTIC, and PUBLISHED_PRIVACY_RELAY_EGRESS. See Explainable VPN, Proxy, Tor, and Privacy-Relay Detection.

3. Public-blocklist abuse scoring (abuse_velocity_score 0–100)

Included on Pro ($39/mo) and above, security_extensions provides an integer abuse_velocity_score (0 to 100) and is_known_scanner derived nightly from public abuse, scanner, proxy, and Tor blocklists (FireHOL abusers, AbuseIPDB 30d, blocklist.de, CINS Army, StopForumSpam, IPsum). See What abuse_velocity_score and is_known_scanner Actually Measure.

4. Sub-microsecond in-memory radix-trie engine

The Lookup API keeps the active IPv4 + IPv6 snapshot mapped in a 128-bit in-memory binary radix trie (2.0 µs p50 trie walk in repo benchmarks) and hot-reloads new nightly builds at 03:00 UTC with zero downtime.


Cutting your API lookup bill by 50%–80% with SDK caching & batch deduplication

Even on a cheap IP lookup API, sending duplicate network requests for the same visitor IP across consecutive API calls wastes both latency and quota.

All 8 official ipscope server SDKs (Node.js/TypeScript, Python, Go, Rust, Java, .NET, Ruby, and PHP) include:

  1. Bounded O(1) in-memory LRU + TTL cache (default 512 entries and 60s TTL, configurable).
  2. In-flight request coalescing (singleflight) so concurrent requests for the same uncached IP share a single HTTP call.
  3. Automatic 100-IP batch chunking and deduplication via lookupBatch() and lookupBatchStream() (read the 100k+ IP streaming guide).
import { IpScopeClient } from '@ipscope/sdk-node';

const client = new IpScopeClient({
  apiKey: process.env.IPSCOPE_API_KEY!, // "<public>:<private>"
  // Cache hot IPs for 5 minutes in memory — cached hits cost 0 API credits
  cache: { enabled: true, maxEntries: 16_384, ttlMs: 300_000 },
});

// Single lookup (sub-millisecond on cache hit)
const info = await client.lookupIp('89.187.175.151');
console.log({
  country: info.geo.country_code,
  virtual: info.geo.is_virtual_location,
  asn: info.network.asn,
  isVpn: info.security.is_vpn,
  reasons: info.security.reason_codes,
  abuseScore: info.security_extensions?.abuse_velocity_score ?? 0,
});

Keyless caller IP lookup (GET /v1/ip/me)

Need to resolve the connecting client's own IP from a CLI tool, health check, or diagnostic script without provisioning an API key? GET https://api.ipscope.io/v1/ip/me is free and public (up to 120 requests/minute per IP).


API vs. Downloadable MMDB: Which is cheaper for your workload?

Because ipscope offers both a real-time Lookup API and self-hosted downloadable MMDB, CSV.gz, and Parquet databases compiled from the same nightly pipeline, you can pick whichever delivery model is cheapest for your traffic pattern:

Workload ProfileCheapest ipscope OptionMonthly CostWhy It Wins
Side projects, CLIs & early startups (< 30K lookups/mo, Country + ASN)Free API Plan or ipscope Lite MMDB$0/mo30K free API lookups/mo (with 100-IP batch) or unlimited local .mmdb lookups under CC BY 4.0.
Growing SaaS & e-commerce localization (< 250K lookups/mo, Country + City + ASN + Connection)Starter API Plan$12/mo ($10/mo yr)Managed HTTPS API with zero infrastructure to maintain ($0.048 / 1K lookups).
Full-stack fraud, login & checkout protection (< 2M lookups/mo, all 6 blocks incl. VPN/Proxy/Tor & Abuse)Pro API Plan$39/mo ($32.50/mo yr)Unlocks all 6 intelligence blocks at $0.0195 / 1K lookups ($0.0163 / 1K yearly).
High-RPS NGINX / Envoy edge proxies or ad-tech (50M–1B+ lookups/mo on 1 server)Downloadable MMDB Database (Country $20/mo, City $63/mo, Privacy $138/mo, Complete $250/mo)$20 – $250/moUnlimited local in-memory .mmdb lookups (5.6 µs p50) with $0 per-lookup fees.
SIEM & data warehouse log backfills (joining 100M+ rows in DuckDB, ClickHouse, Snowflake, BigQuery)Downloadable Database (.parquet + .csv.gz included)From $20/moEvery paid database build includes a columnar .parquet file for vectorized SQL joins (see DuckDB & ClickHouse recipes).

Frequently asked questions (FAQ)

What is the cheapest IP lookup API with VPN, proxy, and Tor detection?

ipscope's Pro API plan ($39/mo, or $32.50/mo billed annually) includes 2,000,000 lookups/month ($0.0195 per 1,000 lookups) and returns all 6 intelligence blocks on every lookup: geo_country, geo_city, network (BGP ASN), connection (residential, mobile, business, hosting), security (is_vpn, is_proxy, is_tor_exit, is_relay, anonymizer_type, reason_codes), and security_extensions (abuse_velocity_score and is_known_scanner). If you only need Country, City, ASN, and Connection type, the Starter plan is $12/mo ($10/mo billed annually) for 250,000 lookups/month, and the Free plan is $0/mo for 30,000 Country + ASN lookups/month.

Does POST /v1/ip/batch cost extra or require an enterprise plan?

No. POST /v1/ip/batch (up to 100 IPv4 or IPv6 addresses per request) is included on every ipscope API plan, including the $0/mo Free tier. Each identified IP in the batch counts as 1 credit, and unidentified IPs cost 0 credits.

What happens if my traffic spikes above my monthly API quota?

If you have added funds to your optional prepaid wallet, overages are metered at $0.10 per 1,000 lookups. If your wallet balance is $0, the API returns HTTP 402 Payment Required and stops serving paid lookups until your quota resets or you top up—preventing unexpected overage bills.

Can I switch from the Lookup API to a downloadable .mmdb database later without rewriting my schema?

Yes. Both the Lookup API and our downloadable .mmdb, .csv.gz, and .parquet databases are generated from the same nightly 03:00 UTC build and use identical field names (geo.country_code, geo.declared_country_code, geo.is_virtual_location, network.asn, connection.connection_type, security.is_vpn, security.reason_codes). Compare all API and database tiers on the Pricing page.

Start with 30K free lookups a month.

No card, no trial clock. Upgrade when your traffic does, or download the database when you would rather keep it in-house.