Fuse API docs
Three endpoints, one address object. Base URL: https://api.fuse.invalid
Quickstart
Get an API key
Create a free account. The first 10,000 sessions each month are free.
Create one session token per address field
Any unique string works, for example a UUID. Send the same token on every keystroke for that field.
Request suggestions as the user types
curl
# One session token per address field, reused per keystroke. curl -G "https://api.fuse.invalid/v1/autocomplete" \ -H "Authorization: Bearer $FUSE_KEY" \ --data-urlencode "q=1600 penn" \ --data-urlencode "session=s_9f2c1e"# One session token per address field, reused per keystroke. curl -G "https://api.fuse.invalid/v1/autocomplete" \ -H "Authorization: Bearer $FUSE_KEY" \ --data-urlencode "q=1600 penn" \ --data-urlencode "session=s_9f2c1e"TypeScript
const session = crypto.randomUUID(); // one per address field async function suggest(q: string) { const url = new URL("https://api.fuse.invalid/v1/autocomplete"); url.search = new URLSearchParams({ q, session }).toString(); const res = await fetch(url, { headers: { Authorization: `Bearer ${FUSE_KEY}` }, }); if (!res.ok) throw new Error(`fuse: ${res.status}`); const { results } = await res.json(); return results; // Address[] }const session = crypto.randomUUID(); // one per address field async function suggest(q: string) { const url = new URL("https://api.fuse.invalid/v1/autocomplete"); url.search = new URLSearchParams({ q, session }).toString(); const res = await fetch(url, { headers: { Authorization: `Bearer ${FUSE_KEY}` }, }); if (!res.ok) throw new Error(`fuse: ${res.status}`); const { results } = await res.json(); return results; // Address[] }Python
import os, uuid, httpx session = str(uuid.uuid4()) # one per address field res = httpx.get( "https://api.fuse.invalid/v1/autocomplete", params={"q": "1600 penn", "session": session}, headers={"Authorization": f"Bearer {os.environ['FUSE_KEY']}"}, ) res.raise_for_status() for a in res.json()["results"]: print(a["label"], a["precision"])import os, uuid, httpx session = str(uuid.uuid4()) # one per address field res = httpx.get( "https://api.fuse.invalid/v1/autocomplete", params={"q": "1600 penn", "session": session}, headers={"Authorization": f"Bearer {os.environ['FUSE_KEY']}"}, ) res.raise_for_status() for a in res.json()["results"]: print(a["label"], a["precision"])Fetch the address the user picks
Call
/v1/address/{id}with the suggestion'sidand the same session token. It is included in the session and closes it.
Authentication
Send your key in the Authorization header on every request: Authorization: Bearer $FUSE_KEY. Keep the key on your server or behind a proxy you control.
Sessions and billing
Free for the first 10,000 sessions each month, then $0.50 per 1,000 sessions.
- A session starts with the first autocomplete request that carries a new session token.
- Every keystroke in that session is free. So is one /v1/address/{id} lookup for the address the user picks.
- A session ends when an address is looked up, or after 3 minutes with no requests.
- A /v1/reverse call without a session token counts as one session.
Endpoints
GET /v1/autocomplete
Parameters: q, session
Up to 5 suggestions for a partial address. Every call in one session is free after the first.
Example
GET /v1/autocomplete?q=1600%20penn&session=s_9f2c1eGET /v1/autocomplete?q=1600%20penn&session=s_9f2c1eGET /v1/address/{id}
Parameters: session
The full record for the suggestion the user picked. Included in the session, and closes it.
Example
GET /v1/address/adr_8KQ2M7XW?session=s_9f2c1eGET /v1/address/adr_8KQ2M7XW?session=s_9f2c1eGET /v1/reverse
Parameters: lat, lng
Nearest address points to a coordinate, same record shape. One call without a session is one session.
Example
GET /v1/reverse?lat=38.89768&lng=-77.03655GET /v1/reverse?lat=38.89768&lng=-77.03655Example response
GET /v1/autocomplete · 200 OK
{
"session": "s_9f2c1e",
"results": [
{
"id": "adr_8KQ2M7XW",
"label": "1600 Pennsylvania Ave NW, Washington, DC 20500",
"number": "1600",
"street": "Pennsylvania Ave NW",
"unit": null,
"city": "Washington",
"state": "DC",
"zip": "20500",
"lat": 38.89768,
"lng": -77.03655,
"precision": "rooftop"
},
{
"id": "adr_3RT9P1LC",
"label": "1600 Penn Ave, Pittsburgh, PA 15222",
"number": "1600",
"street": "Penn Ave",
"unit": null,
"city": "Pittsburgh",
"state": "PA",
"zip": "15222",
"lat": 40.45172,
"lng": -79.98516,
"precision": "parcel"
}
]
}{
"session": "s_9f2c1e",
"results": [
{
"id": "adr_8KQ2M7XW",
"label": "1600 Pennsylvania Ave NW, Washington, DC 20500",
"number": "1600",
"street": "Pennsylvania Ave NW",
"unit": null,
"city": "Washington",
"state": "DC",
"zip": "20500",
"lat": 38.89768,
"lng": -77.03655,
"precision": "rooftop"
},
{
"id": "adr_3RT9P1LC",
"label": "1600 Penn Ave, Pittsburgh, PA 15222",
"number": "1600",
"street": "Penn Ave",
"unit": null,
"city": "Pittsburgh",
"state": "PA",
"zip": "15222",
"lat": 40.45172,
"lng": -79.98516,
"precision": "parcel"
}
]
}The address object
| Field | Type | Meaning |
|---|---|---|
id | string | Stable Fuse ID. Pass to /v1/address/{id}. |
label | string | One-line display form. |
number | string | House number, as a string ("12-14", "1600½"). |
street | string | Street name with suffix and direction. |
unit | string | null | Apartment, suite or unit, when known. |
city, state, zip | string | USPS-style city, two-letter state, five-digit ZIP. |
zip4 | string? | ZIP+4 add-on, when available. |
lat, lng | number | WGS 84 decimal degrees. |
precision | "rooftop" | "parcel" | "interpolated" | How much to trust the point: on the building, on the parcel, or estimated along the street. |
Precision and coverage
rooftop: point on the building.parcel: point at the land parcel, not the building.interpolated: estimated along a street range. Use with care.
Coverage: ~160M US addresses (estimate), United States only. Apartment, suite and unit numbers are returned in unit. Data is refreshed weekly.
The terms prohibit bulk export, scraping, resale, and building mailing or marketing lists.