curl --request POST \
--url https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "U.S. city average All items",
"survey": "cu"
}
'import requests
url = "https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series-search"
payload = {
"query": "U.S. city average All items",
"survey": "cu"
}
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: 'U.S. city average All items', survey: 'cu'})
};
fetch('https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series-search', 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/bls/economic-statistics/bls-series-search",
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' => 'U.S. city average All items',
'survey' => 'cu'
]),
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/bls/economic-statistics/bls-series-search"
payload := strings.NewReader("{\n \"query\": \"U.S. city average All items\",\n \"survey\": \"cu\"\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/bls/economic-statistics/bls-series-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"U.S. city average All items\",\n \"survey\": \"cu\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series-search")
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\": \"U.S. city average All items\",\n \"survey\": \"cu\"\n}"
response = http.request(request)
puts response.read_bodyBls series search
Free-text series discovery (the site’s own Data Finder is reCAPTCHA-gated). Pick the survey first with bls_surveys or bls_top_picks; catalogs range from 1 MB (cu) to 15 MB (ln), and a few (sm, oe, en) exceed the 32 MB fetch limit and fail with a clear message.
curl --request POST \
--url https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "U.S. city average All items",
"survey": "cu"
}
'import requests
url = "https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series-search"
payload = {
"query": "U.S. city average All items",
"survey": "cu"
}
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: 'U.S. city average All items', survey: 'cu'})
};
fetch('https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series-search', 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/bls/economic-statistics/bls-series-search",
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' => 'U.S. city average All items',
'survey' => 'cu'
]),
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/bls/economic-statistics/bls-series-search"
payload := strings.NewReader("{\n \"query\": \"U.S. city average All items\",\n \"survey\": \"cu\"\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/bls/economic-statistics/bls-series-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"U.S. city average All items\",\n \"survey\": \"cu\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series-search")
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\": \"U.S. city average All items\",\n \"survey\": \"cu\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/bls/economic-statistics/bls-series-search
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series-search
{
"operationId": "bls.economic-statistics.bls-series-search",
"method": "POST",
"path": "/apis/v1/bls/economic-statistics/bls-series-search",
"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": {
"limit": 5,
"query": "U.S. city average All items",
"seasonal": "U",
"survey": "cu"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"limit": {
"default": 25,
"description": "limit\n\nProvider reference: minimum 1; maximum 100; default 25.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 100,
"min": 1
}
},
"offset": {
"default": 0,
"description": "Skip this many matches; pass `next_offset` from the previous page.\n\nProvider reference: minimum 0; default 0.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"min": 0
}
},
"query": {
"description": "Words that must all appear in the row (series id, title or codes), e.g. `unemployment rate women`, `SA0 U.S. city average`, `LNS14000000`.",
"type": "string"
},
"seasonal": {
"description": "Keep only seasonally adjusted (S) or unadjusted (U) series.\n\nProvider reference: allowed values [\"S\", \"U\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"S",
"U"
]
}
},
"survey": {
"description": "2-letter survey abbreviation whose catalog to search (cu, ln, ce, la, ap, wp, pr, ...). Pattern: ^[A-Za-z]{2}$.",
"type": "string"
}
},
"required": [
"query",
"survey"
],
"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
Find BLS series ids by keyword inside one survey's full flat-file catalog (download.bls.gov .series: every published series with its title, dimension codes, seasonal flag and first/last period). Every whitespace-separated word of query must appear (case-insensitive) in the series id, title or codes. Paged locally with offset; total_matches counts every match.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
catalog_url | string | |
columns | string[] | Column names of the catalog file, in file order. |
count | number | |
next_offset | number | |
observed_at_ms | number | |
offset | number | |
query | string | |
results | object[] | |
survey | string | |
total_matches | number |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.