IPv6 Lookup API
The same lookup as IPv4, for IPv6 addresses, with the same fields, including the announced prefix the address belongs to. Around half of the traffic to consumer websites now arrives over IPv6, and a lookup that only knows about IPv4 leaves those visitors unplaced.
Example
$ curl -H "X-API-Key: YOUR_KEY" "https://api.mygeocode.com/v1/ipv6?ip=2001:4860:4860::8888"
# The caller's own address, if the request arrived over IPv6
$ curl -H "X-API-Key: YOUR_KEY" "https://api.mygeocode.com/v1/ipv6"Any textual form is accepted: compressed with ::, fully expanded, with a zone suffix (which is ignored), or an IPv4-mapped address like ::ffff:8.8.8.8, which is answered with IPv4 data and version: 4.
If you call this endpoint without ip over an IPv4 connection, you get the IPv4 result rather than an error.
{
"status": "ok",
"ip": "2001:4860:4860::8888",
"version": 6,
"found": true,
"prefix": "2001:4860:4840::/42",
"country": "United States",
"country_code": "US",
"continent": "North America",
"continent_code": "NA",
"region": "California",
"region_code": "CA",
"city": "Mountain View",
"postcode": "94040",
"lat": 37.386051,
"lon": -122.083849,
"timezone": "America/Los_Angeles",
"utc_offset": "-07:00",
"utc_offset_seconds": -25200,
"is_eu": false,
"asn": 15169,
"as_name": "Google LLC",
"org": "Google LLC",
"usage_type": "Content",
"registry": "arin",
"allocated": "2000-03-30",
"tags": ["a10k", "anycast", "cdn", "icrit", "vpn", "vpsh"],
"is_anycast": false,
"is_satellite": false,
"is_datacenter": true,
"is_proxy": false,
"is_vpn_provider": true,
"is_tor": false,
"crawler": null,
"is_private": false,
"abuse_email": "network-abuse@google.com",
"threat": {
"listed": false,
"score": 0,
"source_count": 0,
"categories": [],
"is_tor": false,
"is_tor_exit": false,
"is_bogon": false,
"listings": []
},
"updated_at": "2026-09-18 09:28:30"
}What you get back
All the fields of the IPv4 lookup, including:
| Field | Meaning |
|---|---|
prefix | The covering IPv6 network in CIDR form. Useful for grouping addresses by network and for understanding why two addresses that look different resolve to the same place. |
version | 6, or 4 for an IPv4-mapped address. |
Same fields, same price
The response carries exactly the fields of the IPv4 lookup, including the operator details and the threat block. Both endpoints count one request per address and share the key's allowance.
Price and limits
One call, one request; batches count per address. Every account has 2,500 free requests a day, shared by all of its keys; past that, €0.0001 each from prepaid credit, or nothing on an Unlimited key (€50 a month). Pricing. The ip-api, ipinfo and ipstack drop-in hosts accept IPv6 addresses too.