---
title: "Get the freshness of the geolocation database"
method: GET
path: "/geo/status"
tags: ["geo"]
---

# Get the freshness of the geolocation database

`GET /geo/status`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/geo/status`
- Auth: HTTP bearer

## Response `200`

Geolocation database status retrieved

- GeoDatabaseStatusResponse: Freshness of the geolocation database backing this instance
  - `age_days` integer, nullable: Age in days of the loaded data, from `build_time` when known and from `last_refreshed_at` otherwise
  - `asn_build_time` string, nullable: When MaxMind built the loaded ASN database (ISO 8601, UTC); `null` when none is loaded
  - `asn_database_loaded` boolean, required: Whether the optional ASN database is loaded. Without it, datacenter traffic cannot be detected or excluded from analytics.
  - `build_epoch` integer, nullable: MaxMind `build_epoch` of the loaded database (Unix seconds)
  - `build_time` string, nullable: When MaxMind built the loaded data (ISO 8601, UTC)
  - `is_stale` boolean, required: Whether `age_days` has passed `stale_after_days`, or the last check failed
  - `last_check_at` string, nullable: When a refresh was last attempted, successful or not (ISO 8601, UTC)
  - `last_check_status` string, nullable: `ok` or `error` for the most recent refresh attempt; `null` when none has run yet
  - `last_error` string, nullable: Redacted reason the last refresh failed, so an operator can act on it without reading server logs
  - `last_refreshed_at` string, nullable: When new database bytes were last installed (ISO 8601, UTC)
  - `license_key_configured` boolean, required: Whether a MaxMind license key is configured. The key itself is never returned, logged, or persisted.
  - `refresh_interval_hours` integer, required: How often the scheduled refresh job runs
  - `source` string, nullable: Where the loaded database was downloaded from: `maxmind_official` when a license key is configured, `bundled_github` otherwise. `null` when no refresh has run yet (the database was provisioned by the operator).
  - `stale_after_days` integer, required: Age after which this instance treats the database, and cached IP lookups, as stale

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions
- `500`: Internal server error

## Changes

- **2026-11-09** `12896146b193`: 3 breaking
  - removed the required property `extensions` from the response with the `401` status
  - removed the required property `extensions` from the response with the `403` status
  - removed the required property `extensions` from the response with the `500` status
- **2026-10-30** `0c5d6f73ba5b`: 2 info
  - added the optional property `asn_build_time` to the response with the `200` status
  - added the required property `asn_database_loaded` to the response with the `200` status
- **2026-10-05** `4b228ebed583`: 3 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `500` status
- **2026-10-05** `63a80791dc58`: 3 warning
  - removed the optional property `status` from the response with the `401` status
  - removed the optional property `status` from the response with the `403` status
  - removed the optional property `status` from the response with the `500` status
- **2026-09-23** `f4efc4d5c7b7`: 3 info
  - added the optional property `status` to the response with the `401` status
  - added the optional property `status` to the response with the `403` status
  - added the optional property `status` to the response with the `500` status

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/geo/status/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
