Datasets
curl --request POST \
--url https://api.aisa.one/apis/v1/census-gov/census/datasets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "acs5",
"vintage": 2023
}
'import requests
url = "https://api.aisa.one/apis/v1/census-gov/census/datasets"
payload = {
"query": "acs5",
"vintage": 2023
}
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: 'acs5', vintage: 2023})
};
fetch('https://api.aisa.one/apis/v1/census-gov/census/datasets', 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/datasets",
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' => 'acs5',
'vintage' => 2023
]),
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/datasets"
payload := strings.NewReader("{\n \"query\": \"acs5\",\n \"vintage\": 2023\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/datasets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"acs5\",\n \"vintage\": 2023\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/census-gov/census/datasets")
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\": \"acs5\",\n \"vintage\": 2023\n}"
response = http.request(request)
puts response.read_body{
"complete": true,
"count": 1,
"next_cursor": null,
"observed_at_ms": 1789084800000,
"query": "acs5",
"records": [
{
"dataset": "acs/acs5",
"description": "The American Community Survey (ACS) is an ongoing survey that provides data every year -- giving communities the current information they need to plan investments and services. The ACS covers a broad range of topics about social, economic, demographic, and housing characteristics of the U.S. population. Summary files include the following geographies: nation, all states (including DC and Puerto Rico), all metropolitan areas, all congressional districts, all counties, all places, and all tracts and block groups. Summary files contain the most detailed cross-tabulations, many of which are published down to block groups. The data are population and housing counts. There are over 64,000 variables in this dataset.",
"examples_url": "https://api.census.gov/data/2023/acs/acs5/examples.json",
"geography_levels": [
"us",
"region",
"division",
"state",
"county",
"county subdivision",
"subminor civil division",
"place/remainder (or part)",
"tract",
"block group",
"county (or part)",
"place",
"consolidated city",
"place (or part)",
"alaska native regional corporation",
"american indian area/alaska native area/hawaiian home land",
"tribal subdivision/remainder",
"american indian area/alaska native area (reservation or statistical entity only)",
"american indian area (off-reservation trust land only)/hawaiian home land",
"tribal census tract",
"tribal block group",
"state (or part)",
"place/remainder (or part)",
"county (or part)",
"american indian area/alaska native area/hawaiian home land (or part)",
"american indian area/alaska native area (reservation or statistical entity only) (or part)",
"american indian area (off-reservation trust land only)/hawaiian home land (or part)",
"state (or part)",
"tribal census tract (or part)",
"tribal census tract (or part)",
"tribal block group (or part)",
"tribal block group (or part)",
"metropolitan statistical area/micropolitan statistical area",
"state (or part)",
"principal city (or part)",
"county",
"metropolitan division",
"state (or part)",
"county",
"metropolitan statistical area/micropolitan statistical area (or part)",
"principal city (or part)",
"county",
"metropolitan division (or part)",
"county",
"combined statistical area",
"state (or part)",
"metropolitan statistical area/micropolitan statistical area",
"state (or part)",
"combined statistical area (or part)",
"metropolitan statistical area/micropolitan statistical area (or part)",
"urban area",
"state (or part)",
"county (or part)",
"congressional district",
"county (or part)",
"american indian area/alaska native area/hawaiian home land (or part)",
"state legislative district (upper chamber)",
"county (or part)",
"state legislative district (lower chamber)",
"county (or part)",
"public use microdata area",
"zip code tabulation area",
"school district (elementary)",
"school district (secondary)",
"school district (unified)"
],
"geography_url": "https://api.census.gov/data/2023/acs/acs5/geography.json",
"groups_url": "https://api.census.gov/data/2023/acs/acs5/groups.json",
"identifier": "https://api.census.gov/data/id/ACSDT5Y2023",
"is_aggregate": true,
"is_available": true,
"is_microdata": false,
"is_timeseries": false,
"license": "https://creativecommons.org/publicdomain/zero/1.0/",
"modified": "2024-09-06T17:27:47Z",
"source_url": "https://api.census.gov/data/2023/acs/acs5",
"supported_by_data": true,
"title": "ACS 5-Year Detailed Tables",
"variables_url": "https://api.census.gov/data/2023/acs/acs5/variables.json",
"vintage": 2023
}
],
"retrieved_at": "2026-09-11T00:00:00Z",
"schema_version": "1.0.0",
"source_updated_at": null,
"source_url": "https://api.census.gov/data/2023.json",
"total": 1,
"vintage": 2023,
"warnings": []
}US Census Bureau
Datasets
Search the Census Data API catalog. Input: free-text query over dataset path, title and description plus an optional vintage (year). Returns one record per dataset/vintage with its API endpoint, metadata links, publication date and supported geography levels.
POST
https://api.aisa.one
/
apis
/
v1
/
census-gov
/
census
/
datasets
Datasets
curl --request POST \
--url https://api.aisa.one/apis/v1/census-gov/census/datasets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "acs5",
"vintage": 2023
}
'import requests
url = "https://api.aisa.one/apis/v1/census-gov/census/datasets"
payload = {
"query": "acs5",
"vintage": 2023
}
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: 'acs5', vintage: 2023})
};
fetch('https://api.aisa.one/apis/v1/census-gov/census/datasets', 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/datasets",
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' => 'acs5',
'vintage' => 2023
]),
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/datasets"
payload := strings.NewReader("{\n \"query\": \"acs5\",\n \"vintage\": 2023\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/datasets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"acs5\",\n \"vintage\": 2023\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/census-gov/census/datasets")
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\": \"acs5\",\n \"vintage\": 2023\n}"
response = http.request(request)
puts response.read_body{
"complete": true,
"count": 1,
"next_cursor": null,
"observed_at_ms": 1789084800000,
"query": "acs5",
"records": [
{
"dataset": "acs/acs5",
"description": "The American Community Survey (ACS) is an ongoing survey that provides data every year -- giving communities the current information they need to plan investments and services. The ACS covers a broad range of topics about social, economic, demographic, and housing characteristics of the U.S. population. Summary files include the following geographies: nation, all states (including DC and Puerto Rico), all metropolitan areas, all congressional districts, all counties, all places, and all tracts and block groups. Summary files contain the most detailed cross-tabulations, many of which are published down to block groups. The data are population and housing counts. There are over 64,000 variables in this dataset.",
"examples_url": "https://api.census.gov/data/2023/acs/acs5/examples.json",
"geography_levels": [
"us",
"region",
"division",
"state",
"county",
"county subdivision",
"subminor civil division",
"place/remainder (or part)",
"tract",
"block group",
"county (or part)",
"place",
"consolidated city",
"place (or part)",
"alaska native regional corporation",
"american indian area/alaska native area/hawaiian home land",
"tribal subdivision/remainder",
"american indian area/alaska native area (reservation or statistical entity only)",
"american indian area (off-reservation trust land only)/hawaiian home land",
"tribal census tract",
"tribal block group",
"state (or part)",
"place/remainder (or part)",
"county (or part)",
"american indian area/alaska native area/hawaiian home land (or part)",
"american indian area/alaska native area (reservation or statistical entity only) (or part)",
"american indian area (off-reservation trust land only)/hawaiian home land (or part)",
"state (or part)",
"tribal census tract (or part)",
"tribal census tract (or part)",
"tribal block group (or part)",
"tribal block group (or part)",
"metropolitan statistical area/micropolitan statistical area",
"state (or part)",
"principal city (or part)",
"county",
"metropolitan division",
"state (or part)",
"county",
"metropolitan statistical area/micropolitan statistical area (or part)",
"principal city (or part)",
"county",
"metropolitan division (or part)",
"county",
"combined statistical area",
"state (or part)",
"metropolitan statistical area/micropolitan statistical area",
"state (or part)",
"combined statistical area (or part)",
"metropolitan statistical area/micropolitan statistical area (or part)",
"urban area",
"state (or part)",
"county (or part)",
"congressional district",
"county (or part)",
"american indian area/alaska native area/hawaiian home land (or part)",
"state legislative district (upper chamber)",
"county (or part)",
"state legislative district (lower chamber)",
"county (or part)",
"public use microdata area",
"zip code tabulation area",
"school district (elementary)",
"school district (secondary)",
"school district (unified)"
],
"geography_url": "https://api.census.gov/data/2023/acs/acs5/geography.json",
"groups_url": "https://api.census.gov/data/2023/acs/acs5/groups.json",
"identifier": "https://api.census.gov/data/id/ACSDT5Y2023",
"is_aggregate": true,
"is_available": true,
"is_microdata": false,
"is_timeseries": false,
"license": "https://creativecommons.org/publicdomain/zero/1.0/",
"modified": "2024-09-06T17:27:47Z",
"source_url": "https://api.census.gov/data/2023/acs/acs5",
"supported_by_data": true,
"title": "ACS 5-Year Detailed Tables",
"variables_url": "https://api.census.gov/data/2023/acs/acs5/variables.json",
"vintage": 2023
}
],
"retrieved_at": "2026-09-11T00:00:00Z",
"schema_version": "1.0.0",
"source_updated_at": null,
"source_url": "https://api.census.gov/data/2023.json",
"total": 1,
"vintage": 2023,
"warnings": []
}Request contract
- Method and path: POST /apis/v1/census-gov/census/datasets
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/census-gov/census/datasets
{
"operationId": "census-gov.census.datasets",
"method": "POST",
"path": "/apis/v1/census-gov/census/datasets",
"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": "acs5",
"vintage": 2023
}
}
},
"schema": {
"additionalProperties": true,
"allOf": [
{
"anyOf": [
{
"properties": {
"query": {}
},
"required": [
"query"
]
},
{
"properties": {
"vintage": {}
},
"required": [
"vintage"
]
}
]
}
],
"properties": {
"cursor": {
"description": "next_cursor from the previous page.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"page_size": {
"default": 20,
"description": "page_size\n\nProvider reference: minimum 1; maximum 25; default 20.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 25,
"min": 1
}
},
"query": {
"description": "Case-insensitive tokens all of which must appear in the dataset path, title or description. Required (>= 2 characters) when vintage is null.\n\nProvider reference: default \"\".",
"type": "string"
},
"vintage": {
"description": "Restrict to one vintage year (reads api.census.gov/data/{vintage}.json, ~0.5 s). Null searches the whole catalog (~5 MB, 5-10 s).\n\nProvider reference: minimum 2000; maximum 2035.",
"type": "number"
}
},
"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
application/json
- Option 1
- Option 2
Response
Search the Census Data API catalog. Input: free-text query over dataset path, title and description plus an optional vintage (year). Returns one record per dataset/vintage with its API endpoint, metadata links, publication date and supported geography levels.
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 | |
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 | |
total | number | |
vintage | number | |
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.