curl --request POST \
--url https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legal_business_name": "moserworks"
}
'import requests
url = "https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-search"
payload = { "legal_business_name": "moserworks" }
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({legal_business_name: 'moserworks'})
};
fetch('https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-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/sam-gov/opportunities/entities-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([
'legal_business_name' => 'moserworks'
]),
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-search"
payload := strings.NewReader("{\n \"legal_business_name\": \"moserworks\"\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/sam-gov/opportunities/entities-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"legal_business_name\": \"moserworks\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-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 \"legal_business_name\": \"moserworks\"\n}"
response = http.request(request)
puts response.read_bodyEntities search
Find registrants by name, NAICS or state; use entities_get when you already have a UEI or CAGE.
curl --request POST \
--url https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"legal_business_name": "moserworks"
}
'import requests
url = "https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-search"
payload = { "legal_business_name": "moserworks" }
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({legal_business_name: 'moserworks'})
};
fetch('https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-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/sam-gov/opportunities/entities-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([
'legal_business_name' => 'moserworks'
]),
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-search"
payload := strings.NewReader("{\n \"legal_business_name\": \"moserworks\"\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/sam-gov/opportunities/entities-search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"legal_business_name\": \"moserworks\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-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 \"legal_business_name\": \"moserworks\"\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/sam-gov/opportunities/entities-search
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/sam-gov/opportunities/entities-search
{
"operationId": "sam-gov.opportunities.entities-search",
"method": "POST",
"path": "/apis/v1/sam-gov/opportunities/entities-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": {
"legal_business_name": "moserworks"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"cage_code": {
"description": "Five-character CAGE code. Pattern: ^[A-Za-z0-9]{5}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"city": {
"description": "Physical-address city.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"legal_business_name": {
"description": "Legal business name (SAM.gov matches on the name text).",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"naics_code": {
"description": "Any NAICS code on the registration. Pattern: ^[0-9]{6}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"page": {
"description": "0-based page (default 0); page * size may not exceed 10,000.\n\nProvider reference: minimum 0; maximum 9999.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 9999,
"min": 0
}
},
"primary_naics": {
"description": "Six-digit primary NAICS code. Pattern: ^[0-9]{6}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"registration_status": {
"description": "A (active, default) or E (expired).\n\nProvider reference: allowed values [\"A\", \"E\", \"a\", \"e\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"A",
"E",
"a",
"e"
]
}
},
"size": {
"description": "Records per page, 1 to 10 (SAM.gov's hard limit; default 10).\n\nProvider reference: minimum 1; maximum 10.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 10,
"min": 1
}
},
"state": {
"description": "Physical-address state or province code (VA, CA ...). Pattern: ^[A-Za-z]{2}$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"uei_sam": {
"description": "Twelve-character Unique Entity ID. Pattern: ^[A-Za-z0-9]{12}$.",
"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
Search SAM.gov entity registrations (the public Entity Management API served keyless from sam.gov) by legal business name, primary or any NAICS code, physical-address state or city, CAGE or UEI, for active (default) or expired registrations. Each record carries UEI, CAGE, legal and DBA name, registration status and dates, exclusion flag, physical and mailing address, entity structure, state of incorporation, business types, primary NAICS and NAICS list, and the government and electronic business points of contact (name, title, address; the public tier has no email or phone). Pages of at most 10; SAM.gov serves at most 10,000 records per query.
The response contains the tool result directly.
The provider identifies records as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
activation_date | string | |
business_types | object[] | |
cage_code | string | |
congressional_district | string | |
country_of_incorporation_code | string | |
dba_name | string | |
electronic_business_poc | object | Public tier: name, title and address only; SAM.gov publishes no POC email or phone. |
entity_division_name | string | |
entity_start_date | string | |
entity_structure_code | string | |
entity_structure_desc | string | |
entity_type_desc | string | |
entity_url | string | |
exclusion_status_flag | string | Y when an active exclusion exists, else N. |
exclusion_url | string | |
fiscal_year_end_close_date | string | |
government_business_poc | object | Public tier: name, title and address only; SAM.gov publishes no POC email or phone. |
last_update_date | string | |
legal_business_name | string | |
mailing_address | object | Null when the coreData section is not public for this registration. |
naics_list | object[] | |
organization_structure_desc | string | |
physical_address | object | Null when the coreData section is not public for this registration. |
primary_naics | string | |
profit_structure_desc | string | |
psc_list | object[] | |
publication_id | string | entity-information/v4:<retrieval date>: the live API has no publication version. |
purpose_of_registration_code | string | |
purpose_of_registration_desc | string | |
registration_date | string | YYYY-MM-DD as SAM.gov states it. |
registration_expiration_date | string | |
registration_status | string | Active or Expired, as SAM.gov states it. |
retrieved_at | string | |
sba_business_types | object[] | |
sections_present | object | |
source_record_id | string | The UEI. |
source_url | string | |
state_of_incorporation_code | string | |
submission_date | string | |
uei_sam | string | |
uei_status | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.