curl --request POST \
--url https://api.aisa.one/apis/v1/census-gov/census/variables \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dataset": "acs/acs5",
"group": "B01003",
"vintage": 2023
}
'import requests
url = "https://api.aisa.one/apis/v1/census-gov/census/variables"
payload = {
"dataset": "acs/acs5",
"group": "B01003",
"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({dataset: 'acs/acs5', group: 'B01003', vintage: 2023})
};
fetch('https://api.aisa.one/apis/v1/census-gov/census/variables', 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/variables",
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([
'dataset' => 'acs/acs5',
'group' => 'B01003',
'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/variables"
payload := strings.NewReader("{\n \"dataset\": \"acs/acs5\",\n \"group\": \"B01003\",\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/variables")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"dataset\": \"acs/acs5\",\n \"group\": \"B01003\",\n \"vintage\": 2023\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/census-gov/census/variables")
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 \"dataset\": \"acs/acs5\",\n \"group\": \"B01003\",\n \"vintage\": 2023\n}"
response = http.request(request)
puts response.read_body{
"complete": true,
"count": 1,
"dataset": "acs/acs5",
"group": "B01003",
"next_cursor": null,
"observed_at_ms": 1789084800000,
"records": [
{
"attributes": [],
"concept": "Total Population",
"dataset": "acs/acs5",
"group": "B01003",
"label": "Estimate!!Total",
"limit": 0,
"name": "B01003_001E",
"predicate_only": true,
"predicate_type": "int",
"scale": null,
"source_url": "https://api.census.gov/data/2023/acs/acs5/groups/B01003.json",
"unit": null,
"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/acs/acs5/groups/B01003.json",
"total": 6,
"vintage": 2023,
"warnings": []
}Variables
List variables of one dataset vintage. Input: dataset path and vintage, plus a group (table id such as B01003 or DP05) and/or a free-text query matched against group descriptions and variable labels. Returns variable name, verbatim label, concept, predicate type, group and the unit phrase the label carries.
curl --request POST \
--url https://api.aisa.one/apis/v1/census-gov/census/variables \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dataset": "acs/acs5",
"group": "B01003",
"vintage": 2023
}
'import requests
url = "https://api.aisa.one/apis/v1/census-gov/census/variables"
payload = {
"dataset": "acs/acs5",
"group": "B01003",
"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({dataset: 'acs/acs5', group: 'B01003', vintage: 2023})
};
fetch('https://api.aisa.one/apis/v1/census-gov/census/variables', 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/variables",
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([
'dataset' => 'acs/acs5',
'group' => 'B01003',
'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/variables"
payload := strings.NewReader("{\n \"dataset\": \"acs/acs5\",\n \"group\": \"B01003\",\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/variables")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"dataset\": \"acs/acs5\",\n \"group\": \"B01003\",\n \"vintage\": 2023\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/census-gov/census/variables")
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 \"dataset\": \"acs/acs5\",\n \"group\": \"B01003\",\n \"vintage\": 2023\n}"
response = http.request(request)
puts response.read_body{
"complete": true,
"count": 1,
"dataset": "acs/acs5",
"group": "B01003",
"next_cursor": null,
"observed_at_ms": 1789084800000,
"records": [
{
"attributes": [],
"concept": "Total Population",
"dataset": "acs/acs5",
"group": "B01003",
"label": "Estimate!!Total",
"limit": 0,
"name": "B01003_001E",
"predicate_only": true,
"predicate_type": "int",
"scale": null,
"source_url": "https://api.census.gov/data/2023/acs/acs5/groups/B01003.json",
"unit": null,
"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/acs/acs5/groups/B01003.json",
"total": 6,
"vintage": 2023,
"warnings": []
}Request contract
- Method and path: POST /apis/v1/census-gov/census/variables
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/census-gov/census/variables
{
"operationId": "census-gov.census.variables",
"method": "POST",
"path": "/apis/v1/census-gov/census/variables",
"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": {
"dataset": "acs/acs5",
"group": "B01003",
"vintage": 2023
}
}
},
"schema": {
"additionalProperties": true,
"allOf": [
{
"anyOf": [
{
"properties": {
"group": {}
},
"required": [
"group"
]
},
{
"properties": {
"query": {}
},
"required": [
"query"
]
}
]
}
],
"properties": {
"cursor": {
"description": "cursor",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"dataset": {
"description": "Data API dataset path, e.g. acs/acs5, acs/acs5/profile, dec/pl, cbp. Pattern: ^[A-Za-z0-9_/]+$.",
"type": "string"
},
"group": {
"description": "Table id, e.g. B01003, S0101, DP05, P1. Pattern: ^[A-Za-z0-9_]{1,40}$.",
"type": "string"
},
"page_size": {
"default": 20,
"description": "page_size\n\nProvider reference: minimum 1; maximum 500; default 20.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 500,
"min": 1
}
},
"query": {
"description": "Tokens matched against group name/description (when no group is given; the first 5 matching groups are listed) or variable name/label/concept (within a group). Datasets with at most 5 tables (cbp, pep/population) whose descriptions do not match are searched by variable label instead.",
"type": "string"
},
"vintage": {
"description": "vintage\n\nProvider reference: minimum 2000; maximum 2035.",
"type": "number"
}
},
"required": [
"dataset",
"vintage"
],
"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
- Option 1
- Option 2
Response
List variables of one dataset vintage. Input: dataset path and vintage, plus a group (table id such as B01003 or DP05) and/or a free-text query matched against group descriptions and variable labels. Returns variable name, verbatim label, concept, predicate type, group and the unit phrase the label carries.
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 | |
dataset | string | |
group | 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 | |
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.