curl --request POST \
--url https://api.aisa.one/apis/v1/census-gov/census/geographies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "San Francisco"
}
'import requests
url = "https://api.aisa.one/apis/v1/census-gov/census/geographies"
payload = { "query": "San Francisco" }
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({query: 'San Francisco'})
};
fetch('https://api.aisa.one/apis/v1/census-gov/census/geographies', 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/census-gov/census/geographies",
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([
'query' => 'San Francisco'
]),
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/census-gov/census/geographies"
payload := strings.NewReader("{\n \"query\": \"San Francisco\"\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/census-gov/census/geographies")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"San Francisco\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/census-gov/census/geographies")
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 \"query\": \"San Francisco\"\n}"
response = http.request(request)
puts response.read_body{
"complete": false,
"count": 4,
"level": null,
"next_cursor": null,
"observed_at_ms": 1789084800000,
"query": "San Francisco",
"records": [
{
"fips": {
"county": "075",
"state": "06"
},
"for": "county:075",
"geo_id": "0500000US06075",
"in": [
"state:06"
],
"level": "county",
"record_id": "0500000US06075",
"selected": true,
"source_url": "https://data.census.gov/api/search?q=San%20Francisco&services=geos&size=10",
"sumlevel": "050",
"title": "San Francisco County, California",
"ucgid": "050XX00US06075"
},
{
"fips": {
"county": "075",
"county_subdivision": "92790",
"state": "06"
},
"for": "county subdivision:92790",
"geo_id": "0600000US0607592790",
"in": [
"state:06",
"county:075"
],
"level": "county subdivision",
"record_id": "0600000US0607592790",
"selected": false,
"source_url": "https://data.census.gov/api/search?q=San%20Francisco&services=geos&size=10",
"sumlevel": "060",
"title": "San Francisco CCD, San Francisco County, California",
"ucgid": "060XX00US0607592790"
},
{
"fips": {
"county": "019",
"county_subdivision": "58486",
"state": "27"
},
"for": "county subdivision:58486",
"geo_id": "0600000US2701958486",
"in": [
"state:27",
"county:019"
],
"level": "county subdivision",
"record_id": "0600000US2701958486",
"selected": false,
"source_url": "https://data.census.gov/api/search?q=San%20Francisco&services=geos&size=10",
"sumlevel": "060",
"title": "San Francisco township, Carver County, Minnesota",
"ucgid": "060XX00US2701958486"
},
{
"fips": {
"place": "67000",
"state": "06"
},
"for": "place:67000",
"geo_id": "1600000US0667000",
"in": [
"state:06"
],
"level": "place",
"record_id": "1600000US0667000",
"selected": false,
"source_url": "https://data.census.gov/api/search?q=San%20Francisco&services=geos&size=10",
"sumlevel": "160",
"title": "San Francisco city, California",
"ucgid": "160XX00US0667000"
}
],
"retrieved_at": "2026-09-11T00:00:00Z",
"schema_version": "1.0.0",
"source_updated_at": null,
"source_url": "https://data.census.gov/api/search?q=San%20Francisco&services=geos&size=10",
"warnings": [
"skipped `San Francisco city, California` (E600000US0607567000): summary level not supported by `data`"
]
}Geographies
Geography resolver. Input: a place, county, state, tract or other geography name (e.g. ‘Travis County, Texas’). Returns matching Census geographies with summary level, GEO_ID, FIPS parts and the exact for/in predicates to pass to data.
curl --request POST \
--url https://api.aisa.one/apis/v1/census-gov/census/geographies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "San Francisco"
}
'import requests
url = "https://api.aisa.one/apis/v1/census-gov/census/geographies"
payload = { "query": "San Francisco" }
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({query: 'San Francisco'})
};
fetch('https://api.aisa.one/apis/v1/census-gov/census/geographies', 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/census-gov/census/geographies",
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([
'query' => 'San Francisco'
]),
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/census-gov/census/geographies"
payload := strings.NewReader("{\n \"query\": \"San Francisco\"\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/census-gov/census/geographies")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"San Francisco\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/census-gov/census/geographies")
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 \"query\": \"San Francisco\"\n}"
response = http.request(request)
puts response.read_body{
"complete": false,
"count": 4,
"level": null,
"next_cursor": null,
"observed_at_ms": 1789084800000,
"query": "San Francisco",
"records": [
{
"fips": {
"county": "075",
"state": "06"
},
"for": "county:075",
"geo_id": "0500000US06075",
"in": [
"state:06"
],
"level": "county",
"record_id": "0500000US06075",
"selected": true,
"source_url": "https://data.census.gov/api/search?q=San%20Francisco&services=geos&size=10",
"sumlevel": "050",
"title": "San Francisco County, California",
"ucgid": "050XX00US06075"
},
{
"fips": {
"county": "075",
"county_subdivision": "92790",
"state": "06"
},
"for": "county subdivision:92790",
"geo_id": "0600000US0607592790",
"in": [
"state:06",
"county:075"
],
"level": "county subdivision",
"record_id": "0600000US0607592790",
"selected": false,
"source_url": "https://data.census.gov/api/search?q=San%20Francisco&services=geos&size=10",
"sumlevel": "060",
"title": "San Francisco CCD, San Francisco County, California",
"ucgid": "060XX00US0607592790"
},
{
"fips": {
"county": "019",
"county_subdivision": "58486",
"state": "27"
},
"for": "county subdivision:58486",
"geo_id": "0600000US2701958486",
"in": [
"state:27",
"county:019"
],
"level": "county subdivision",
"record_id": "0600000US2701958486",
"selected": false,
"source_url": "https://data.census.gov/api/search?q=San%20Francisco&services=geos&size=10",
"sumlevel": "060",
"title": "San Francisco township, Carver County, Minnesota",
"ucgid": "060XX00US2701958486"
},
{
"fips": {
"place": "67000",
"state": "06"
},
"for": "place:67000",
"geo_id": "1600000US0667000",
"in": [
"state:06"
],
"level": "place",
"record_id": "1600000US0667000",
"selected": false,
"source_url": "https://data.census.gov/api/search?q=San%20Francisco&services=geos&size=10",
"sumlevel": "160",
"title": "San Francisco city, California",
"ucgid": "160XX00US0667000"
}
],
"retrieved_at": "2026-09-11T00:00:00Z",
"schema_version": "1.0.0",
"source_updated_at": null,
"source_url": "https://data.census.gov/api/search?q=San%20Francisco&services=geos&size=10",
"warnings": [
"skipped `San Francisco city, California` (E600000US0607567000): summary level not supported by `data`"
]
}Request contract
- Method and path: POST /apis/v1/census-gov/census/geographies
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/census-gov/census/geographies
{
"operationId": "census-gov.census.geographies",
"method": "POST",
"path": "/apis/v1/census-gov/census/geographies",
"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": {
"query": "San Francisco"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"level": {
"description": "Keep only this summary level: us, region, division, state, county, county subdivision, tract, block group, place, metropolitan statistical area/micropolitan statistical area, combined statistical area, urban area, public use microdata area, zip code tabulation area, school district (unified), american indian area/alaska native area/hawaiian home land.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"limit": {
"default": 10,
"description": "limit\n\nProvider reference: minimum 1; maximum 50; default 10.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 50,
"min": 1
}
},
"query": {
"description": "query",
"type": "string"
}
},
"required": [
"query"
],
"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
Keep only this summary level: us, region, division, state, county, county subdivision, tract, block group, place, metropolitan statistical area/micropolitan statistical area, combined statistical area, urban area, public use microdata area, zip code tabulation area, school district (unified), american indian area/alaska native area/hawaiian home land.
Response
Geography resolver. Input: a place, county, state, tract or other geography name (e.g. 'Travis County, Texas'). Returns matching Census geographies with summary level, GEO_ID, FIPS parts and the exact for/in predicates to pass to data.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
complete | boolean | Whether this response fully satisfied the request (not whether all pages were consumed). false when a supplementary source (metadata, geography levels) failed or when results were truncated. |
count | number | |
level | string | |
next_cursor | string | Opaque cursor for the next page; null at the end. Offsets strictly increase, so a cursor can never loop. Maximum depth 1,000,000 records. |
observed_at_ms | number | |
query | string | |
records | object[] | |
retrieved_at | string | RFC 3339 UTC time of this call. |
schema_version | string | |
source_updated_at | string | Catalog modified timestamp of the dataset (published without a zone, labelled Z as given); null when the source does not publish one. |
source_url | string | |
warnings | string[] |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.