observabilitystack / geoip-api

A JSON REST API for Maxmind GeoIP databases
https://observabilitystack.org
Apache License 2.0
43 stars 12 forks source link

Query multiple IPs via POST JSON array #183

Closed kahlau-sirius closed 4 weeks ago

kahlau-sirius commented 3 months ago

I added a new endpoint for querying up to 100 IP addresses at once in the form of a JSON string array. Endpoint responds with a Map<String(IP), GeoIpEntry>.

This performs a bit better than single http requests for each of 100 addresses.

tboeghk commented 4 weeks ago

Great stuff, merged! Thank you!