curl --request POST \
--url https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "us/ak/bristol_bay_borough"
}
'import requests
url = "https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list"
payload = { "source": "us/ak/bristol_bay_borough" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({source: 'us/ak/bristol_bay_borough'})
};
fetch('https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'source' => 'us/ak/bristol_bay_borough'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list"
payload := strings.NewReader("{\n \"source\": \"us/ak/bristol_bay_borough\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"source\": \"us/ak/bristol_bay_borough\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"source\": \"us/ak/bristol_bay_borough\"\n}"
response = http.request(request)
puts response.read_bodyRecords list
Pull every address point of a county or state source (us/ak/bristol_bay_borough), or the points of a large statewide source inside a bounding box (us/me/statewide with bbox). Follow next_cursor until null.
curl --request POST \
--url https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "us/ak/bristol_bay_borough"
}
'import requests
url = "https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list"
payload = { "source": "us/ak/bristol_bay_borough" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({source: 'us/ak/bristol_bay_borough'})
};
fetch('https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'source' => 'us/ak/bristol_bay_borough'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list"
payload := strings.NewReader("{\n \"source\": \"us/ak/bristol_bay_borough\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"source\": \"us/ak/bristol_bay_borough\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"source\": \"us/ak/bristol_bay_borough\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/batch-openaddresses-io/addresses/records-list
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/batch-openaddresses-io/addresses/records-list
{
"operationId": "batch-openaddresses-io.addresses.records-list",
"method": "POST",
"path": "/apis/v1/batch-openaddresses-io/addresses/records-list",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"page_size": 3,
"source": "us/ak/bristol_bay_borough"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"bbox": {
"description": "Bounding box `[west, south, east, north]` in WGS84 degrees.",
"items": {
"type": "number"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"cursor": {
"description": "Opaque `next_cursor` from the previous page. Carries the pinned job id, ETag, mode and position; other inputs must match the first call.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"layer": {
"default": "addresses",
"description": "OpenAddresses layer of the source. This program shapes `addresses` rows; other layers are listed and status-checked but their records are not decoded.\n\nProvider reference: allowed values [\"addresses\", \"buildings\", \"parcels\", \"centerlines\"]; default \"addresses\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"addresses",
"buildings",
"parcels",
"centerlines"
]
}
},
"name": {
"description": "Coverage name when a source has more than one data entry per layer (e.g. `us/mn/statewide` addresses has `default` and `state`); the function says so when it is needed.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"page_size": {
"default": 500,
"description": "Rows per page in whole-file mode (tile mode returns one z14 tile per page).\n\nProvider reference: minimum 1; maximum 1000; default 500.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 1000,
"min": 1
}
},
"source": {
"description": "OpenAddresses source path, e.g. `us/ak/bristol_bay_borough` or `us/me/statewide` (lowercase `<country>/<region>/<name>`, no `.json`). Pattern: ^[a-z]{2}(/[a-z0-9_.-]+){1,3}$.",
"type": "string"
}
},
"required": [
"source"
],
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
Response
Address rows of one source, segment = source, pinned to one job. Whole-file mode (output at most 8 MiB): downloads source.geojson.gz from v2.openaddresses.io (302 to the presigned object URL), gunzips the line-delimited GeoJSON and pages by line offset; every page re-reads the file and compares its ETag with the one pinned in the cursor. Tile mode (larger outputs with PMTiles): requires bbox; reads the job's source.pmtiles with Range requests (header, directories, one z14 tile per page) and decodes the data layer, which tippecanoe wrote without drops at z14. Handoff mode (larger outputs without PMTiles): returns no rows and the file URL, size and ETag in handoff. The cursor pins job id and ETag, so a weekly run does not break a walk; a latest_job that differs from the pinned job is reported in newer_job.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
content_hash | string | |
count | number | |
data_id | number | |
handoff | object | Set in handoff mode: the output is larger than the whole-file limit and the job has no PMTiles, so the downstream must fetch the file itself. |
job_id | number | |
layer | string | |
licence | object | The job's licence as OpenAddresses records it, normalised; null when the job carries license: false. |
mode | string | |
newer_job | number | A later successful job for this source, when the walk is pinned to an older one; null otherwise. |
next_cursor | string | |
observed_at_ms | number | |
page | object | |
publication_id | string | |
records | object[] | |
retrieved_at | string | RFC 3339 UTC time of the upstream read. |
source | string | |
source_url | string | The OpenAddresses URL this answer was read from (never a presigned URL). |
total_count | number | Row count of the whole job output. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.