Query an address range
lookup_rangeFind stored network records overlapping an inclusive IP start/end range, with optional filters and field selection. Use it for range-based queries when CIDR bounds do not apply.
Instructions
Find stored network records overlapping an inclusive start/end IP range, with optional filters and field selection. Use lookup_network when the bounds are a CIDR. Returns each overlapping network once, including networks extending beyond the bounds. Repeat the endpoints and database on each page. Stop when has_more is false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_ip | Yes | Last address to include, for example 192.0.2.200. Must be at or after start_ip in the same address family, without a zone identifier. | |
| 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. | |
| filters | No | Conditions on record fields. For example, [{"field":"autonomous_system_number","operator":"equals","value":13335}]. Omit for no filtering on a new query. On paginated queries, omit to retain the original filters. | |
| database | No | Exact filename from list_databases. Required when more than one database is loaded. Repeat the same name on each page. | |
| start_ip | Yes | First IPv4 or IPv6 address to include, for example 192.0.2.10. Zone identifiers are not supported. | |
| filter_mode | No | Combine filters with and (all must match) or or (any can match). Defaults to and for a new query. Omit when paging to retain the original mode. | |
| iterator_id | No | ID from the previous page. Omit on the first request. Send with the latest resume_token to continue if the iterator expires. | |
| max_results | No | Maximum matching records to return on this page. Use a smaller page to reduce response size. | |
| resume_token | No | Token from the previous page, used if iterator_id is missing or expired. Omit on the first request. If the database build changed, start a new query. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | ||
| has_more | Yes | ||
| iterator_id | Yes | ||
| resume_token | Yes | ||
| total_matched | Yes | ||
| total_processed | Yes |