Skip to content

Quickstart

Terminal window
curl -X POST https://api.gazetteer.dev/auth/register \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com", "password": "your-password"}'

Save the token from the response — you’ll need it to manage your account.

Terminal window
curl -X POST https://api.gazetteer.dev/auth/keys \
-H "Authorization: Bearer <your-jwt-token>" \
-H "Content-Type: application/json" \
-d '{"name": "my-first-key"}'
Terminal window
curl -X POST https://api.gazetteer.dev/billing/purchase \
-H "Authorization: Bearer <your-jwt-token>" \
-H "Content-Type: application/json" \
-d '{"package": "1000"}'

Pay the PIX QR code returned in the response. Credits are added to your account automatically after payment confirmation.

Terminal window
curl -X POST https://api.gazetteer.dev/geo/resolve \
-H "Authorization: Bearer gaz_<your-api-key>" \
-H "Content-Type: text/plain" \
--data "Cuiabá
Sinop
Rondonópolis"

Response:

{
"region": "Mato Grosso",
"type": "state",
"region_id": 3457419,
"unresolved": 0,
"total": 3
}

Each successful request to /geo/resolve, /geo/place/{id}, or /geo/search deducts 1 credit from your balance.