Look up an IP address
lookup_ipRetrieve geolocation or custom data for one IPv4/IPv6 address from local MMDB databases, returning the matching record and network or found=false if none.
Instructions
Look up one IP address in local MMDB databases. Returns the matching record and network, with found=false when no record matches. Use lookup_ips for a batch of addresses or lookup_network to enumerate records in a CIDR.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IPv4 or IPv6 address, for example 8.8.8.8 or 2001:4860:4860::8888. | |
| fields | No | Optional field paths. Returns an object keyed by each selected path. Use dots for map keys, numeric array indexes, or $ for the whole record. Omit or use [] for full records. Repeat on each page. | |
| database | No | Exact filename from list_databases. Omit to query all loaded databases. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes |