curl --request POST \
--url https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"series_ids": [
"LNS14000000",
"CUUR0000SA0"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series"
payload = { "series_ids": ["LNS14000000", "CUUR0000SA0"] }
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({series_ids: ['LNS14000000', 'CUUR0000SA0']})
};
fetch('https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series', 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",
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([
'series_ids' => [
'LNS14000000',
'CUUR0000SA0'
]
]),
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"
payload := strings.NewReader("{\n \"series_ids\": [\n \"LNS14000000\",\n \"CUUR0000SA0\"\n ]\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")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"series_ids\": [\n \"LNS14000000\",\n \"CUUR0000SA0\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series")
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 \"series_ids\": [\n \"LNS14000000\",\n \"CUUR0000SA0\"\n ]\n}"
response = http.request(request)
puts response.read_bodyBls series
Retrieving the numbers once the series ids are known (from bls_top_picks, bls_series_search or the id conventions). The unregistered API allows 25 queries per day per address; the failure is upstream_rate_limited.
curl --request POST \
--url https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"series_ids": [
"LNS14000000",
"CUUR0000SA0"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series"
payload = { "series_ids": ["LNS14000000", "CUUR0000SA0"] }
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({series_ids: ['LNS14000000', 'CUUR0000SA0']})
};
fetch('https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series', 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",
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([
'series_ids' => [
'LNS14000000',
'CUUR0000SA0'
]
]),
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"
payload := strings.NewReader("{\n \"series_ids\": [\n \"LNS14000000\",\n \"CUUR0000SA0\"\n ]\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")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"series_ids\": [\n \"LNS14000000\",\n \"CUUR0000SA0\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series")
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 \"series_ids\": [\n \"LNS14000000\",\n \"CUUR0000SA0\"\n ]\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/bls/economic-statistics/bls-series
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/bls/economic-statistics/bls-series
{
"operationId": "bls.economic-statistics.bls-series",
"method": "POST",
"path": "/apis/v1/bls/economic-statistics/bls-series",
"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": {
"latest": true,
"series_ids": [
"LNS14000000",
"CUUR0000SA0"
]
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"annual_average": {
"description": "Also return annual averages (period M13) for surveys that publish them.",
"type": "boolean",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"end_year": {
"description": "Last year; requires start_year.\n\nProvider reference: minimum 1900; maximum 2100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2100,
"min": 1900
}
},
"latest": {
"description": "Only the newest observation of each series. Not combined with a year window.",
"type": "boolean",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"series_ids": {
"description": "BLS series ids as shown on data.bls.gov/timeseries/<id>.",
"items": {
"type": "string"
},
"type": "array"
},
"start_year": {
"description": "First year; requires end_year, at most 10 years apart.\n\nProvider reference: minimum 1900; maximum 2100.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 2100,
"min": 1900
}
}
},
"required": [
"series_ids"
],
"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
Observations for 1-25 BLS series ids (LNS14000000 unemployment rate, CUUR0000SA0 CPI-U all items, CES0000000001 nonfarm payrolls, CES0500000003 private average hourly earnings, LAUCN060370000000003 Los Angeles County unemployment) from the public API: an optional year window of at most 10 years (the latest 3 years when omitted), or latest for the newest observation only. Values are numeric with the source string kept in raw_value; ids BLS does not know come back with exists=false, and a request where none exist is not_found.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
count | number | |
messages | string[] | API notices, e.g. a series that does not exist or a year range clamped to 10 years. |
observed_at_ms | number | |
request | object | |
series | object[] | |
source_url | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.