Skip to content
locate-me v0.1.0
Checking

Reference

Reference

A JSON API over HTTP. Send an address, get back its network, continent, country, region, city and coordinates.

  • http://localhost:8080
  • v1
  • DB-IP City Lite

Endpoints(8)

Guides(3)

Conventions

  • Requests and responses are JSON (application/json, UTF-8). Only the bulk endpoint takes a body.
  • Fields without data are left out, never sent as null. Check for presence, not for null.
  • Every error has the same shape: {"error": "<code>", "message": "<text>"}. Branch on error; the message is for people. See Errors.
  • Responses are never cached (Cache-Control: no-store) and carry X-Content-Type-Options, X-Frame-Options and a deny-all content security policy.
  • The server speaks HTTP/1.1, and cleartext HTTP/2 when server.http2 is on. Put a TLS-terminating proxy in front of it.
  • The API sends no CORS headers. Call it from your servers, not from browsers, so keys stay private.
  • Results from the default database must credit DB-IP (CC BY 4.0). Lookups carry an X-Data-Attribution header with the required text.
Esc