Korzy API
The Korzy API answers questions about a point in the United States, given as coordinates or an address: which parcel, jurisdictions, flood zone or service areas contain it, and which power plants, rail lines, data centers or other features are nearest. Results are JSON over HTTPS. The same operations are available to AI agents through the Korzy MCP server.
How it works
- A point. Send
point(longitude,latitude) or anaddress. An address is matched first; the response says what it matched and lists other candidates. at: the layers whose features contain the point or, when you ask for the parcel and one is found, lie on the parcel: every area layer but the jurisdictions, statistical areas and freight regions is then answered for the parcel's shape, each item withat_point(whether it holds the point) andoverlap. Each comes back as a list, empty when the layer was checked and nothing is there.near: the layers to search around the point. Each comes back as the nearest features within a radius, nearest first by exact distance, withdistance_km.coverage: layers that cannot answer at this point (no data here, absence not meaningful, or unavailable), so an empty answer is never mistaken for a finding.
Every feature has the same shape: an id such as parcel:37183-676db8ae68362b7a3685, a name, its fields in props and the as_of date of its data. Pass the id to /v1/records/{id} for all its fields and its geometry.
Operations
GET /v1/layers: every layer, its fields, defaults and credits. Free.POST /v1/lookup: what is at and near one address or point. An address alone is a geocode;near.addressesgives the nearest addresses to a point.POST /v1/batch: the same lookup for up to 25 addresses, points or parcel IDs.GET /v1/records/{id}: one feature by the ID a lookup or batch returned.POST /v1/askandPOST /v1/ask/stream: a question about a place, answered from Korzy data with citations.POST /v1/support: report a data problem, request a feature or report a bug.
Base URL
All requests go to https://api.korzy.co, under /v1. Use HTTPS only.
OpenAPI spec
The OpenAPI 3.1 spec at https://korzy.co/openapi.json describes every route in the API reference: request bodies, response schemas, errors and what each request costs (x-korzy-credits). Load it into an API client, a code generator or an agent's tool setup.
Quickstart
- Create an account and choose a plan.
- Create an API key on your account page. Store it as a secret, for example in the
KORZY_API_KEYenvironment variable. - List the layers to see what's available. It's free.
curl --fail-with-body -sS \
-H "Authorization: Bearer $KORZY_API_KEY" \
https://api.korzy.co/v1/layersThen ask for the parcel, water and sewer service at an address, and the nearest treatment plants (4 credits):
curl --fail-with-body -sS \
-H "Authorization: Bearer $KORZY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"address":"714 Mordecai Towne Pl, Raleigh, NC","at":["parcel","water_service","sewer_service"],"near":{"treatment_plants":{}}}' \
https://api.korzy.co/v1/lookupThe response, abbreviated:
{
"point": {"longitude": -78.6271, "latitude": 35.7999},
"address": {"input": "714 Mordecai Towne Pl, Raleigh, NC", "matched": "714 MORDECAI TOWNE PL, RALEIGH, NC 27604", "match": "exact", "candidates": []},
"at": {
"parcel": [{"id": "parcel:37183-…", "name": "714 MORDECAI TOWNE PL", "props": {"usedesc": "…", "totalvalue": …}, "as_of": "…"}],
"water_service": [{"id": "water_service:…", "name": "City of Raleigh", "props": {…}, "as_of": "…"}],
"sewer_service": []
},
"near": {
"treatment_plants": {"radius_km": 25, "truncated": false, "items": [{"id": "treatment_plants:…", "name": "…", "distance_km": 4.2, "props": {…}, "as_of": "…"}]}
},
"coverage": {},
"credits": {"charged": 4, "refunded": 0},
"request_id": "…"
}Python
import os, requests
session = requests.Session()
session.headers["Authorization"] = f"Bearer {os.environ['KORZY_API_KEY']}"
response = session.post(
"https://api.korzy.co/v1/batch",
json={
"items": [{"address": "714 Mordecai Towne Pl, Raleigh, NC"}],
"at": ["parcel", "flood_zone"],
"parcel": {"fields": ["identity", "address", "land"]},
},
timeout=60,
)
response.raise_for_status()
for result in response.json()["results"]:
for parcel in result.get("at", {}).get("parcel", []):
print(parcel["id"], parcel["name"], parcel["props"].get("usedesc"))
print([zone["props"].get("zone") for zone in result.get("at", {}).get("flood_zone", [])])JavaScript
const id = "parcel:37183-676db8ae68362b7a3685";
const response = await fetch(`https://api.korzy.co/v1/records/${encodeURIComponent(id)}`, {
headers: { Authorization: `Bearer ${process.env.KORZY_API_KEY}` },
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const { name, props } = await response.json();
console.log(name, props.usedesc, props.totalvalue);Conventions
- Coordinates are WGS 84
longitudeandlatitudein decimal degrees; distances are kilometers. - POST bodies are JSON objects of at most 64 KB. Responses are JSON, except
/v1/ask/stream, which sends server-sent events. - Missing values are
null; a null value means the source didn't publish it, not that it's zero. - Values keep the units and dates their sources publish. Each feature carries the
as_ofdate of its data. - IDs are opaque strings. URL-encode them in paths.
- New fields and layers can be added at any time. Ignore fields you don't recognize.
Next
- Authentication: keys, scopes and sign-in for agents.
- Credits, limits and errors: what requests cost, refunds, rate limits and status codes.
- API reference: every route, its body and response, also as an OpenAPI spec.
- Layers: every layer, with its relations, defaults, fields, credits and source.
- MCP server: connect Claude, ChatGPT, Codex and other agents.