List the stored locations
Returns every location GeoMetrikks has resolved, paged with currentPage and pageSize. It takes no time range or filters. Pass an item's id to /api/v1/geo-locations/{location_id}/top-ips.
session<token>Session cookie authentication.
currentPage?integerThe page to return, counted from 1. Defaults to 1.
1 <= value1pageSize?integerRows per page, from 1 to 500. Defaults to 10.
1 <= value <= 50010Request fulfilled, document follows
application/json- response
One page of results. total counts the matches on every page, limit is the page size and offset is how many matches come before this page.
items?array<>limit?integerMaximal number of items to send.
offset?integerOffset from the beginning of the query.
total?integerTotal number of items.
curl -X GET 'https://geometrikks.example.com/api/v1/geo-locations'{ "items": [ { "city": "string", "countryCode": "string", "countryName": "string", "createdAt": "2019-08-24T14:15:22Z", "geographicPoint": "string", "geohash": "string", "id": 0, "lastHit": "2019-08-24T14:15:22Z", "latitude": 0, "longitude": 0, "postalCode": "string", "state": "string", "stateCode": "string", "timezone": "string", "updatedAt": "2019-08-24T14:15:22Z" } ], "limit": 0, "offset": 0, "total": 0}List the IPs with the most geo events GET
Returns client IPs ordered by event count across every location, with a country, city and ASN. For an IP seen in several locations, `countryCode` and `city` each show one of them. A server filter reads the raw rows, which go back only ANALYTICS_RAW_RETENTION_DAYS days, 180 by default.
Get the locations with events as GeoJSON GET
Returns a GeoJSON FeatureCollection with one point per location that had events in the range, busiest first, and totals in `stats`. Ranges over 24 hours read the location aggregates, which count whole hours or UTC days, from the one that holds `fromTimestamp` through the last one that starts before `toTimestamp`. An IP or ASN filter reads the raw rows instead, which go back only ANALYTICS_RAW_RETENTION_DAYS days, 180 by default. A server filter does the same on a database whose location aggregates predate server tracking.