API CodexAPI Codex
WebsiteDashboardGet API Key
  • Documentation
  • All APIs
  • Changelog
Resources
  • Docs Home
  • API Catalog
  • API Codex Website
Platform
  • Get a free API key
  • Dashboard
  • APIs & Pricing

© 2026 API Codex. All rights reserved.

Information
Other endpoints
    IP Intelligence Lookupget
Schemas
powered by Zudoku
IP Intelligence API
IP Intelligence API

Other endpoints


IP Intelligence Lookup

GET
https://api.apicodex.io/ip-intelligence
/v1/lookup

Returns reverse DNS (PTR) records, ASN/network ownership details, and a bogon/private-range flag for an IPv4 or IPv6 address.

If the ip parameter is omitted, the API falls back to the caller's own IP. For private, reserved, or non-routable addresses, is_bogon is true and the network fields are null. The response is best-effort: an address with no PTR record simply returns an empty reverse_dns array rather than an error.

IP Intelligence Lookup › query Parameters

ip
​string

The IPv4 or IPv6 address to look up. If omitted, the caller's own IP is used.

Example: 8.8.8.8

IP Intelligence Lookup › Responses

Lookup result

LookupResult
ip
​string · required

The normalized IP address that was looked up.

Example: 8.8.8.8
version
​integer · enum · required

IP version (4 for IPv4, 6 for IPv6).

Enum values:
4
6
Example: 4
reverse_dns
​string[] · required

PTR hostnames (trailing dot stripped). Empty when none exist.

Example: ["dns.google"]
is_bogon
​boolean · required

True for private/reserved/non-routable addresses.

Example: false
asn
​string | null

Primary origin ASN (first if multi-origin/anycast).

Example: 15169
asn_name
​string | null

Human-readable AS name.

Example: GOOGLE, US
bgp_prefix
​string | null

The covering BGP prefix announced for this address.

Example: 8.8.8.0/24
country_code
​string | null

ISO 3166-1 alpha-2 country code associated with the prefix.

Example: US
registry
​string | null

Responsible RIR (arin, ripe, apnic, lacnic, afrinic).

Example: arin
allocated_date
​string | null

Date the prefix was allocated by the registry.

Example: 1992-12-01
GET/v1/lookup
curl 'https://api.apicodex.io/ip-intelligence/v1/lookup?apikey=<api-key>'
Example Responses
{ "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 }
json
application/json