curl --request POST \
--url https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-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/sam-gov/opportunities/entities-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/sam-gov/opportunities/entities-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/sam-gov/opportunities/entities-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/sam-gov/opportunities/entities-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/sam-gov/opportunities/entities-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{
"bof_file_date": "2026-10-05",
"bof_line": "BOF PUBLIC V2 00000000 20261005 0905712 0008359",
"cadence": "monthly (public daily entity files do not exist; the folder holds the monthly V2 file and its UTF-8 twin only)",
"content_hash": "7e4d95ff69b33afc8d04556c55b3f1ca-18",
"date_modified_label": "Oct 04,2026",
"description": "This data package contains the entity registration data publicly available under the Freedom of Information Act (FOIA) for those registered in SAM to do business with the Federal government. The monthly file is a refresh file for all active registration records and those which expired in the past six months with the Unique Entity Identifier (UEI) fields added.",
"etag": "7e4d95ff69b33afc8d04556c55b3f1ca-18",
"file_date": "2026-10-05",
"file_format": "ZIP, Pipe-Delimited",
"file_name": "SAM_PUBLIC_MONTHLY_V2_20261005.ZIP",
"file_url": "https://sam.gov/api/prod/fileextractservices/v1/api/download/Entity%20Registration/Public%20V2/SAM_PUBLIC_MONTHLY_V2_20261005.ZIP?privacy=Public",
"files_listed": [
{
"date_modified": "Oct 04,2026",
"display_key": "SAM_PUBLIC_MONTHLY_V2_20261005.ZIP",
"file_format": "ZIP, Pipe-Delimited",
"key": "Entity Registration/Public V2/SAM_PUBLIC_MONTHLY_V2_20261005.ZIP"
},
{
"date_modified": "Oct 04,2026",
"display_key": "SAM_PUBLIC_UTF-8_MONTHLY_V2_20261005.ZIP",
"file_format": "ZIP, Pipe-Delimited",
"key": "Entity Registration/Public V2/SAM_PUBLIC_UTF-8_MONTHLY_V2_20261005.ZIP"
},
{
"date_modified": "Sep 07,2026",
"display_key": "SAM_PUBLIC_MONTHLY_V2_20260907.ZIP",
"file_format": "ZIP, Pipe-Delimited",
"key": "Entity Registration/Public V2/SAM_PUBLIC_MONTHLY_V2_20260907.ZIP"
},
{
"date_modified": "Sep 07,2026",
"display_key": "SAM_PUBLIC_UTF-8_MONTHLY_V2_20260907.ZIP",
"file_format": "ZIP, Pipe-Delimited",
"key": "Entity Registration/Public V2/SAM_PUBLIC_UTF-8_MONTHLY_V2_20260907.ZIP"
},
{
"date_modified": "Sep 06,2026",
"display_key": "SAM_PUBLIC_MONTHLY_V2_20260906.ZIP",
"file_format": "ZIP, Pipe-Delimited",
"key": "Entity Registration/Public V2/SAM_PUBLIC_MONTHLY_V2_20260906.ZIP"
},
{
"date_modified": "Sep 06,2026",
"display_key": "SAM_PUBLIC_UTF-8_MONTHLY_V2_20260906.ZIP",
"file_format": "ZIP, Pipe-Delimited",
"key": "Entity Registration/Public V2/SAM_PUBLIC_UTF-8_MONTHLY_V2_20260906.ZIP"
}
],
"hand_off": true,
"hand_off_reason": "the monthly extract (149228825 bytes) exceeds the runner's 33554432-byte response cap; download file_url (it answers 303 to a presigned S3 URL valid for 2700 s; Range requests are honoured) and parse the pipe-delimited .dat (layout v6.0: 1 UNIQUE ENTITY ID, 4 CAGE CODE, 12 LEGAL BUSINESS NAME, 13 DBA NAME, 16-22 physical address, 32 BUS TYPE STRING, 33 PRIMARY NAICS, 35 NAICS CODE STRING, 47-57 GOVT BUS POC, 116 EXCLUSION STATUS FLAG)",
"hash_source": "s3_etag",
"inner_entry": {
"compressed_size": 149210042,
"method": 8,
"name": "SAM_PUBLIC_MONTHLY_V2_20261005_c7d262ab2b63483dbe2bf892f1d18432.dat",
"uncompressed_size": 553044161
},
"last_modified_header": "Mon, 05 Oct 2026 02:35:59 GMT",
"listing_url": "https://sam.gov/api/prod/fileextractservices/v1/api/listfiles?domain=Entity%20Registration/Public%20V2&privacy=Public",
"outer_entry": {
"compressed_size": 149228659,
"method": 8,
"name": "SAM_PUBLIC_MONTHLY_V2_20261005.ZIP",
"uncompressed_size": 149210274
},
"publication_id": "SAM_PUBLIC_MONTHLY_V2_20261005.ZIP",
"published_at": "2026-10-05T02:35:59Z",
"record_count": 905712,
"retrieved_at": "2026-10-18T22:35:33Z",
"size_bytes": 149228825
}Entities status
Learn whether a new monthly entity extract was published and get its URL, size, hash and record count before downloading it elsewhere.
curl --request POST \
--url https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-status \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-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/sam-gov/opportunities/entities-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/sam-gov/opportunities/entities-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/sam-gov/opportunities/entities-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/sam-gov/opportunities/entities-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/sam-gov/opportunities/entities-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{
"bof_file_date": "2026-10-05",
"bof_line": "BOF PUBLIC V2 00000000 20261005 0905712 0008359",
"cadence": "monthly (public daily entity files do not exist; the folder holds the monthly V2 file and its UTF-8 twin only)",
"content_hash": "7e4d95ff69b33afc8d04556c55b3f1ca-18",
"date_modified_label": "Oct 04,2026",
"description": "This data package contains the entity registration data publicly available under the Freedom of Information Act (FOIA) for those registered in SAM to do business with the Federal government. The monthly file is a refresh file for all active registration records and those which expired in the past six months with the Unique Entity Identifier (UEI) fields added.",
"etag": "7e4d95ff69b33afc8d04556c55b3f1ca-18",
"file_date": "2026-10-05",
"file_format": "ZIP, Pipe-Delimited",
"file_name": "SAM_PUBLIC_MONTHLY_V2_20261005.ZIP",
"file_url": "https://sam.gov/api/prod/fileextractservices/v1/api/download/Entity%20Registration/Public%20V2/SAM_PUBLIC_MONTHLY_V2_20261005.ZIP?privacy=Public",
"files_listed": [
{
"date_modified": "Oct 04,2026",
"display_key": "SAM_PUBLIC_MONTHLY_V2_20261005.ZIP",
"file_format": "ZIP, Pipe-Delimited",
"key": "Entity Registration/Public V2/SAM_PUBLIC_MONTHLY_V2_20261005.ZIP"
},
{
"date_modified": "Oct 04,2026",
"display_key": "SAM_PUBLIC_UTF-8_MONTHLY_V2_20261005.ZIP",
"file_format": "ZIP, Pipe-Delimited",
"key": "Entity Registration/Public V2/SAM_PUBLIC_UTF-8_MONTHLY_V2_20261005.ZIP"
},
{
"date_modified": "Sep 07,2026",
"display_key": "SAM_PUBLIC_MONTHLY_V2_20260907.ZIP",
"file_format": "ZIP, Pipe-Delimited",
"key": "Entity Registration/Public V2/SAM_PUBLIC_MONTHLY_V2_20260907.ZIP"
},
{
"date_modified": "Sep 07,2026",
"display_key": "SAM_PUBLIC_UTF-8_MONTHLY_V2_20260907.ZIP",
"file_format": "ZIP, Pipe-Delimited",
"key": "Entity Registration/Public V2/SAM_PUBLIC_UTF-8_MONTHLY_V2_20260907.ZIP"
},
{
"date_modified": "Sep 06,2026",
"display_key": "SAM_PUBLIC_MONTHLY_V2_20260906.ZIP",
"file_format": "ZIP, Pipe-Delimited",
"key": "Entity Registration/Public V2/SAM_PUBLIC_MONTHLY_V2_20260906.ZIP"
},
{
"date_modified": "Sep 06,2026",
"display_key": "SAM_PUBLIC_UTF-8_MONTHLY_V2_20260906.ZIP",
"file_format": "ZIP, Pipe-Delimited",
"key": "Entity Registration/Public V2/SAM_PUBLIC_UTF-8_MONTHLY_V2_20260906.ZIP"
}
],
"hand_off": true,
"hand_off_reason": "the monthly extract (149228825 bytes) exceeds the runner's 33554432-byte response cap; download file_url (it answers 303 to a presigned S3 URL valid for 2700 s; Range requests are honoured) and parse the pipe-delimited .dat (layout v6.0: 1 UNIQUE ENTITY ID, 4 CAGE CODE, 12 LEGAL BUSINESS NAME, 13 DBA NAME, 16-22 physical address, 32 BUS TYPE STRING, 33 PRIMARY NAICS, 35 NAICS CODE STRING, 47-57 GOVT BUS POC, 116 EXCLUSION STATUS FLAG)",
"hash_source": "s3_etag",
"inner_entry": {
"compressed_size": 149210042,
"method": 8,
"name": "SAM_PUBLIC_MONTHLY_V2_20261005_c7d262ab2b63483dbe2bf892f1d18432.dat",
"uncompressed_size": 553044161
},
"last_modified_header": "Mon, 05 Oct 2026 02:35:59 GMT",
"listing_url": "https://sam.gov/api/prod/fileextractservices/v1/api/listfiles?domain=Entity%20Registration/Public%20V2&privacy=Public",
"outer_entry": {
"compressed_size": 149228659,
"method": 8,
"name": "SAM_PUBLIC_MONTHLY_V2_20261005.ZIP",
"uncompressed_size": 149210274
},
"publication_id": "SAM_PUBLIC_MONTHLY_V2_20261005.ZIP",
"published_at": "2026-10-05T02:35:59Z",
"record_count": 905712,
"retrieved_at": "2026-10-18T22:35:33Z",
"size_bytes": 149228825
}Request contract
- Method and path: POST /apis/v1/sam-gov/opportunities/entities-status
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-status
{
"operationId": "sam-gov.opportunities.entities-status",
"method": "POST",
"path": "/apis/v1/sam-gov/opportunities/entities-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": {
"file_name": {
"description": "Pin one listed file name (default: the newest SAM_PUBLIC_MONTHLY_V2 file).",
"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
Version check and hand-off for the public monthly entity registration extract (SAM_PUBLIC_MONTHLY_V2_YYYYMMDD.ZIP in SAM.gov Data Services, about 149 MB): file name as publication_id, S3 Last-Modified, size and ETag from a 64 KB range read through the download route's 303 (the presigned URL is resolved per call and never stored), and the record count from the pipe file's BOF line decoded from the nested zip heads. hand_off is true because the file exceeds the runner's 32 MiB cap; file_url is the sam.gov download route. No daily public entity file exists.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
bof_file_date | string | |
bof_line | string | |
cadence | string | |
content_hash | string | The S3 ETag (multipart: not an MD5). |
date_modified_label | string | SAM.gov's own dateModified label (Oct 04,2026). |
description | string | |
etag | string | |
file_date | string | YYYY-MM-DD from the file name. |
file_format | string | |
file_name | string | |
file_url | string | sam.gov download route; answers 303 to a presigned S3 URL valid 2700 s, honours Range. |
files_listed | object[] | |
hand_off | boolean | |
hand_off_reason | string | |
hash_source | string | |
inner_entry | object | |
last_modified_header | string | |
listing_url | string | |
outer_entry | object | |
publication_id | string | The extract file name. |
published_at | string | S3 Last-Modified as ISO 8601. |
record_count | number | From the BOF line of the pipe file. |
retrieved_at | string | |
size_bytes | number |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.