IP Info
GET {{baseUrl}}/ip-info?ip=<string>&reverse-lookup=false
Get location information about an IP address and do reverse DNS (PTR) lookups
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
ip | string | (Required) An IPv4 or IPv6 address. Accepts standard IP notation and also CIDR notation | |
reverse-lookup | boolean | Do a reverse DNS (PTR) lookup. This option can add extra delay to the request so only use it if you need it |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"valid":"\u003cboolean\u003e","country":"\u003cstring\u003e","hostname":"\u003cstring\u003e","city":"\u003cstring\u003e","country-code":"\u003cstring\u003e","latitude":"\u003cnumber\u003e","region":"\u003cstring\u003e","longitude":"\u003cnumber\u003e","continent-code":"\u003cstring\u003e","ip":"\u003cstring\u003e","country-code3":"\u003cstring\u003e","currency-code":"\u003cstring\u003e","host-domain":"\u003cstring\u003e","timezone":{"id":"\u003cstring\u003e","name":"\u003cstring\u003e","abbr":"\u003cstring\u003e","date":"\u003cstring\u003e","time":"\u003cstring\u003e","offset":"\u003cstring\u003e"},"is-v6":"\u003cboolean\u003e","is-v4-mapped":"\u003cboolean\u003e","is-bogon":"\u003cboolean\u003e","region-code":"\u003cstring\u003e"}