curl --request POST \
--url https://api.aisa.one/apis/v1/bls/economic-statistics/qcew-status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.aisa.one/apis/v1/bls/economic-statistics/qcew-status"
payload = {}
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({})
};
fetch('https://api.aisa.one/apis/v1/bls/economic-statistics/qcew-status', 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/qcew-status",
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([
]),
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/qcew-status"
payload := strings.NewReader("{}")
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/qcew-status")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bls/economic-statistics/qcew-status")
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 = "{}"
response = http.request(request)
puts response.read_body{
"annual": {
"etag": "cd81c-6598e1798d6cc",
"file_url": "https://data.bls.gov/cew/data/api/2025/a/area/US000.csv",
"last_modified": "Fri, 21 Aug 2026 12:51:16 GMT",
"prelim": null,
"publication_id": "2025:a:cd81c-6598e1798d6cc",
"qtr": "a",
"size_bytes": 841756,
"year": "2025"
},
"available_periods": [
{
"prelim": false,
"qtr": "1",
"year": "2021"
},
{
"prelim": false,
"qtr": "2",
"year": "2021"
},
{
"prelim": false,
"qtr": "3",
"year": "2021"
},
{
"prelim": false,
"qtr": "4",
"year": "2021"
},
{
"prelim": false,
"qtr": "1",
"year": "2022"
},
{
"prelim": false,
"qtr": "2",
"year": "2022"
},
{
"prelim": false,
"qtr": "3",
"year": "2022"
},
{
"prelim": false,
"qtr": "4",
"year": "2022"
},
{
"prelim": false,
"qtr": "1",
"year": "2023"
},
{
"prelim": false,
"qtr": "2",
"year": "2023"
},
{
"prelim": false,
"qtr": "3",
"year": "2023"
},
{
"prelim": false,
"qtr": "4",
"year": "2023"
},
{
"prelim": false,
"qtr": "1",
"year": "2024"
},
{
"prelim": false,
"qtr": "2",
"year": "2024"
},
{
"prelim": false,
"qtr": "3",
"year": "2024"
},
{
"prelim": false,
"qtr": "4",
"year": "2024"
},
{
"prelim": false,
"qtr": "1",
"year": "2025"
},
{
"prelim": false,
"qtr": "2",
"year": "2025"
},
{
"prelim": false,
"qtr": "3",
"year": "2025"
},
{
"prelim": false,
"qtr": "4",
"year": "2025"
},
{
"prelim": true,
"qtr": "1",
"year": "2026"
}
],
"observed_at_ms": 1792342868958,
"periods_etag": "192-6598ca6d9bd31",
"periods_source_url": "https://data.bls.gov/cew/apps/ref/year_qtr_info.csv",
"publication_id": "2026:1:df72b-659905aae1f63",
"quarter": {
"etag": "df72b-659905aae1f63",
"file_url": "https://data.bls.gov/cew/data/api/2026/1/area/US000.csv",
"last_modified": "Fri, 21 Aug 2026 15:33:11 GMT",
"prelim": true,
"publication_id": "2026:1:df72b-659905aae1f63",
"qtr": "1",
"size_bytes": 915243,
"year": "2026"
},
"retrieved_at": "2026-10-18T17:01:08Z",
"source_url": "https://data.bls.gov/cew/data/api/2026/1/area/US000.csv"
}Qcew status
Before a qcew_list crawl, to learn the newest quarter and annual year and to detect a re-publication (BLS revises prior quarters at every release: the ETag moves) without downloading data.
curl --request POST \
--url https://api.aisa.one/apis/v1/bls/economic-statistics/qcew-status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.aisa.one/apis/v1/bls/economic-statistics/qcew-status"
payload = {}
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({})
};
fetch('https://api.aisa.one/apis/v1/bls/economic-statistics/qcew-status', 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/qcew-status",
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([
]),
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/qcew-status"
payload := strings.NewReader("{}")
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/qcew-status")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/bls/economic-statistics/qcew-status")
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 = "{}"
response = http.request(request)
puts response.read_body{
"annual": {
"etag": "cd81c-6598e1798d6cc",
"file_url": "https://data.bls.gov/cew/data/api/2025/a/area/US000.csv",
"last_modified": "Fri, 21 Aug 2026 12:51:16 GMT",
"prelim": null,
"publication_id": "2025:a:cd81c-6598e1798d6cc",
"qtr": "a",
"size_bytes": 841756,
"year": "2025"
},
"available_periods": [
{
"prelim": false,
"qtr": "1",
"year": "2021"
},
{
"prelim": false,
"qtr": "2",
"year": "2021"
},
{
"prelim": false,
"qtr": "3",
"year": "2021"
},
{
"prelim": false,
"qtr": "4",
"year": "2021"
},
{
"prelim": false,
"qtr": "1",
"year": "2022"
},
{
"prelim": false,
"qtr": "2",
"year": "2022"
},
{
"prelim": false,
"qtr": "3",
"year": "2022"
},
{
"prelim": false,
"qtr": "4",
"year": "2022"
},
{
"prelim": false,
"qtr": "1",
"year": "2023"
},
{
"prelim": false,
"qtr": "2",
"year": "2023"
},
{
"prelim": false,
"qtr": "3",
"year": "2023"
},
{
"prelim": false,
"qtr": "4",
"year": "2023"
},
{
"prelim": false,
"qtr": "1",
"year": "2024"
},
{
"prelim": false,
"qtr": "2",
"year": "2024"
},
{
"prelim": false,
"qtr": "3",
"year": "2024"
},
{
"prelim": false,
"qtr": "4",
"year": "2024"
},
{
"prelim": false,
"qtr": "1",
"year": "2025"
},
{
"prelim": false,
"qtr": "2",
"year": "2025"
},
{
"prelim": false,
"qtr": "3",
"year": "2025"
},
{
"prelim": false,
"qtr": "4",
"year": "2025"
},
{
"prelim": true,
"qtr": "1",
"year": "2026"
}
],
"observed_at_ms": 1792342868958,
"periods_etag": "192-6598ca6d9bd31",
"periods_source_url": "https://data.bls.gov/cew/apps/ref/year_qtr_info.csv",
"publication_id": "2026:1:df72b-659905aae1f63",
"quarter": {
"etag": "df72b-659905aae1f63",
"file_url": "https://data.bls.gov/cew/data/api/2026/1/area/US000.csv",
"last_modified": "Fri, 21 Aug 2026 15:33:11 GMT",
"prelim": true,
"publication_id": "2026:1:df72b-659905aae1f63",
"qtr": "1",
"size_bytes": 915243,
"year": "2026"
},
"retrieved_at": "2026-10-18T17:01:08Z",
"source_url": "https://data.bls.gov/cew/data/api/2026/1/area/US000.csv"
}Request contract
- Method and path: POST /apis/v1/bls/economic-statistics/qcew-status
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/bls/economic-statistics/qcew-status
{
"operationId": "bls.economic-statistics.qcew-status",
"method": "POST",
"path": "/apis/v1/bls/economic-statistics/qcew-status",
"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": {}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"qtr": {
"description": "Optional quarter to check: 1-4 or a (annual averages); requires `year`. Pattern: ^([1-4]|[aA])$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"year": {
"description": "Optional 4-digit year to check; requires `qtr`. Pattern: ^[0-9]{4}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"type": "object"
}
}
},
"required": false
},
"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
QCEW Open Data version check (source/status): the newest published quarter and annual-average year from data.bls.gov/cew/apps/ref/year_qtr_info.csv, each with the ETag, Last-Modified and byte size of its national area slice (US000.csv) read with a one-byte ranged GET; publication_id is <year>:<qtr>:<ETag>. With year and qtr it checks that one period instead; an unpublished period (2026/2 until the 2026-12-02 release) is not_found with issue code not_published.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
annual | object | |
available_periods | object[] | Quarters listed by year_qtr_info.csv (2021 onward as of 2026-10; slices back to 2014 Q1 still answer). |
observed_at_ms | number | |
periods_etag | string | |
periods_source_url | string | |
publication_id | string | The quarter's publication id (the annual one when only an annual period was requested). |
quarter | object | |
retrieved_at | string | |
source_url | string | The national slice URL whose validators publication_id carries. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.