Get geographic authentication statistics
GET
/api/admin/stats/geography
Code sample: Shell / cURL
curl --request GET \ --url 'https://auth.example.com/api/admin/stats/geography?from=2026-04-15T12%3A00%3A00Z&to=2026-04-15T12%3A00%3A00Z' \ --header 'Authorization: Bearer <token>'Returns country and region aggregations derived from audit-log geolocation details.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” from
required
string format: date-time
Inclusive start of the statistics period.
to
required
string format: date-time
Inclusive end of the statistics period.
Responses
Section titled “ Responses ”Geographic authentication statistics grouped by country and region.
Media type application/json
object
by_country
Array<object>
object
country_code
string
country_name
string
total_requests
integer
successful
integer
failed
integer
unique_users
integer
last_activity
string | null format: date-time
key
additional properties
by_region
Array<object>
object
region
string
total_requests
integer
countries
integer
top_country
string | null
key
additional properties
top_countries
Array<object>
object
country_code
string
country_name
string
requests
integer
key
additional properties
period
object
from
string format: date-time
to
string format: date-time
key
additional properties
summary
object
total_countries
integer
total_requests
integer
unique_users
integer
key
additional properties
key
additional properties
Example
{ "by_country": [ { "country_code": "JP", "country_name": "Japan", "total_requests": 800, "successful": 780, "failed": 20, "unique_users": 120, "last_activity": "2026-06-01T23:50:00.000Z" } ], "by_region": [ { "region": "Asia Pacific", "total_requests": 800, "countries": 1, "top_country": "JP" } ], "top_countries": [ { "country_code": "JP", "country_name": "Japan", "requests": 800 } ], "period": { "from": "2026-06-01T00:00:00.000Z", "to": "2026-06-02T00:00:00.000Z" }, "summary": { "total_countries": 1, "total_requests": 800, "unique_users": 120 }}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}Error response.
Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{ "error": "example", "message": "example", "error_description": "example"}