---
title: "Address or place to coordinates (US Census with FIPS, OpenStreetMap worldwide)"
method: GET
path: "/api/geocode"
tags: ["Afterwren"]
---

# Address or place to coordinates (US Census with FIPS, OpenStreetMap worldwide)

`GET /api/geocode`

## Request

- Base URL: `https://afterwren.cybermaxtools.com`
- URL: `https://afterwren.cybermaxtools.com/api/geocode`
- Auth: one of:
  - none
  - API key in header `x-api-key`
  - HTTP bearer

geocoder-style result: { ok, provider, address, lat, lng, latlng, housenumber, street, city, state, postal, country, county, fips { state, county, tract, block } }. US addresses go to the US Census Geocoder (public domain); others, or country=xx, to OpenStreetMap Nominatim (ODbL, attribution included).

## Query parameters

- `q` string
- `country` string

## Response `200`

Results (same field names as the bulk version's dataset records) plus the free-tier limits.

- object

## Other responses

- `400`: Invalid input
- `401`: Invalid or revoked API key
- `429`: Free tier used up (100/day per IP) or rate/plan limit reached; the body has an upgrade link.
- `504`: Took too long; ask for fewer items

---

[API](https://skmtc.dev/cybermaxtools/apis/afterwren-api.md) · [All operations](https://skmtc.dev/cybermaxtools/apis/afterwren-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cybermaxtools/apis/afterwren-api/revisions/1b59acb5f5b2?raw)
