Compare databases
compare_databasesCompare lookup answers in two loaded MaxMind databases within a CIDR to find added, removed, and changed IP ranges before and after an update.
Instructions
Compare lookup answers in two loaded databases within a CIDR, for example before and after an update. Returns paginated added, removed, and changed address ranges. Equal answers with different network boundaries are unchanged. Pages scan at most 10,000 segments and can contain no changes while has_more is true. Continue until has_more is false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | Yes | CIDR to compare. Use an IPv4 prefix length of 8 or greater, or a native IPv6 prefix length of 32 or greater. Repeat on each page. | |
| max_results | No | Maximum changed address ranges to return on this page. | |
| new_database | Yes | Comparison database's exact filename from list_databases. Supplies the after values. Both databases must be loaded. | |
| old_database | Yes | Baseline database's exact filename from list_databases. Supplies the before values. | |
| resume_token | No | Token from the previous page. Omit on the first request. Repeat both database names and network. If either loaded database changed, start a new comparison. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | ||
| has_more | Yes | ||
| resume_token | Yes | ||
| scanned_segments | Yes |