IP Intelligence API
The IP Intelligence API turns a bare IPv4 or IPv6 address into actionable intelligence with a single GET request. It resolves reverse DNS (PTR) records, identifies the owning network through the authoritative Team Cymru IP-to-ASN dataset, and flags private, reserved, and non-routable addresses inline.
Built entirely on the Cloudflare global edge, every lookup runs over DNS-over-HTTPS with sub-second latency from the nearest data center — no scraping, no stale databases, and no per-record licensing. It is ideal for fraud and abuse scoring, log enrichment, SIEM pipelines, and CDN/anycast attribution.
Free tier · no credit card · billed on RapidAPI
Key features
- Reverse DNS (PTR) resolution for any IPv4 or IPv6 address
- ASN and AS name identification via the Team Cymru IP-to-ASN dataset
- BGP prefix, RIR registry, and allocation date enrichment
- Bogon detection for private, reserved, and non-routable ranges
- Caller self-identification when the ip parameter is omitted
- Full IPv6 support including compressed and IPv4-mapped forms
- Clean, flat JSON responses with best-effort partial data
Perfect for
- Fraud and abuse scoring
- Log and SIEM enrichment
- Allow/deny-list automation
- ASN-based geo and network routing
- CDN and anycast attribution
- "What is my IP" widgets and client diagnostics
- Threat intelligence pipelines
- Network reconnaissance and auditing
IP Intelligence API Documentation
Everything you need to integrate — base URL, auth, and copy-paste examples.
The IP Intelligence API resolves reverse DNS (PTR), ASN/network ownership via the Team Cymru IP-to-ASN service, and a bogon/private-range flag for any IPv4 or IPv6 address. Authentication is handled globally: pass your RapidAPI key, or when calling the origin directly use the apikey query parameter.
Base URL
https://edge-apis.e9736.workers.devAuthentication
On RapidAPI, authenticate with the standard RapidAPI headers. When calling the origin directly, pass your key as the apikey query parameter (?apikey=YOUR_KEY):
{
"X-RapidAPI-Key": "YOUR_RAPIDAPI_KEY",
"X-RapidAPI-Host": "ip-intelligence-api.p.rapidapi.com"
}Request & response
GET /ip-intelligence/v1/lookup?ip=8.8.8.8 HTTP/1.1{
"ip": "8.8.8.8",
"version": 4,
"reverse_dns": ["dns.google"],
"asn": "15169",
"asn_name": "GOOGLE, US",
"bgp_prefix": "8.8.8.0/24",
"country_code": "US",
"registry": "arin",
"allocated_date": "1992-12-01",
"is_bogon": false
}Code examples
curl --request GET \
--url 'https://edge-apis.e9736.workers.dev/ip-intelligence/v1/lookup?ip=8.8.8.8&apikey=YOUR_KEY'Endpoints
GET /ip-intelligence/v1/lookup
Look up reverse DNS, ASN/network info, and bogon status for an IP. If ip is omitted, the caller's own IP (CF-Connecting-IP) is used.
/ip-intelligence/v1/lookup?ip=8.8.8.8GET /ip-intelligence/health
Health check. Returns a simple OK message and requires no authentication.
/ip-intelligence/healthQuery Parameters
Optional Parameters
ip- The IPv4 or IPv6 address to look up. If omitted, the caller's own IP (CF-Connecting-IP) is used. Returns 400 if omitted and that header is unavailable.apikey- Your API key when calling the origin directly (not via RapidAPI). On RapidAPI, authentication is handled by the X-RapidAPI-Key header instead.
IP Intelligence API Pricing
Choose the right plan for your IP enrichment needs with flexible pricing options and no hidden fees
Basic
- Reverse DNS, ASN & bogon data
- Full IPv4 & IPv6 support
- Great for testing and hobby projects
Pro
- Everything in Basic
- For production apps and log enrichment
- $0.0004 / request overage
Ultra
- Everything in Pro
- High-volume SIEM, fraud & CDN attribution
- $0.00008 / request overage
Need higher volume or a custom SLA?
Talk to us about enterprise rates, dedicated support, and compliance docs.
Frequently asked questions
For any IPv4 or IPv6 address the API returns a flat JSON object containing the normalized ip, its version (4 or 6), an array of reverse DNS (PTR) hostnames, the origin asn and asn_name, the covering bgp_prefix, the country_code, the RIR registry, the prefix allocated_date, and an is_bogon flag indicating whether the address is private, reserved, or non-routable. Network fields are null for bogon addresses.
Yes. The API fully supports both IPv4 and IPv6, including compressed IPv6 notation and IPv4-mapped IPv6 addresses. The response includes a version field set to 4 or 6 so you can branch your logic accordingly. Reverse DNS, ASN lookups, and bogon detection all work identically across both address families.
If you omit the ip query parameter, the API falls back to the caller's own IP using Cloudflare's CF-Connecting-IP header. This is ideal for building "what's my IP" widgets and client diagnostics. If that header is unavailable — for example during local development — and no ip is supplied, the API returns a 400 error indicating that no IP could be determined.
A bogon is an IP address that should never appear on the public internet, including private RFC 1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback, link-local, and other reserved blocks. When an address falls into one of these ranges the API sets is_bogon to true and returns null for the ASN, BGP prefix, registry, and country fields, since there is no public network ownership to report.
ASN, AS name, BGP prefix, RIR registry, and allocation date are sourced from the authoritative Team Cymru IP-to-ASN service, queried in real time over DNS-over-HTTPS from the Cloudflare edge. This means there are no stale local databases to maintain and no third-party API keys to manage — the data reflects the current global routing table.
The IP Intelligence API runs entirely on the Cloudflare global edge across 300+ locations, so every lookup is resolved from the data center nearest to your request. Typical responses complete in under 200ms. Because lookups run over DNS-over-HTTPS rather than scraping or querying a centralized database, latency stays low and consistent even under high concurrency.
Absolutely. The API is designed for log enrichment, SIEM pipelines, fraud and abuse scoring, allow/deny-list automation, and CDN/anycast attribution. The clean, flat JSON response is easy to parse and join against your event data, and the bogon flag lets you immediately filter out internal traffic. The Ultra plan supports up to 1,000,000 requests per month for high-volume security workloads.
Related APIs & tools
Other services that pair well — all on the same key.
DNS Lookup API
Query forward and reverse DNS records for A, AAAA, MX, TXT, SOA, NS, PTR and more with structured JSON responses.
Learn more→Whois API
Retrieve domain registration information, ownership details, registrar data, and expiration dates for any domain.
Learn more→Email Deliverability API
Analyze SPF, DKIM, and DMARC records to optimize email domain configurations and improve deliverability.
Learn more→Every week you build in-house is a week you don't ship product
2,500+ teams already made the switch. Start with a free tier today, or talk to us about your enterprise needs.
For developers
Free tier, no credit card. Integrate your first API in under 30 minutes.
Get API keys freeRead the docsFor teams and enterprise
Custom volumes, SLA guarantees, dedicated support, and compliance documentation.
Talk to salesor email sales@apicodex.io