List nigp codes
curl --request POST \
--url https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-nigp-codes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prefix": "925"
}
'import requests
url = "https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-nigp-codes"
payload = { "prefix": "925" }
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({prefix: '925'})
};
fetch('https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-nigp-codes', 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/txsmartbuy-gov/public-tenders/list-nigp-codes",
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([
'prefix' => '925'
]),
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/txsmartbuy-gov/public-tenders/list-nigp-codes"
payload := strings.NewReader("{\n \"prefix\": \"925\"\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/txsmartbuy-gov/public-tenders/list-nigp-codes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prefix\": \"925\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-nigp-codes")
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 \"prefix\": \"925\"\n}"
response = http.request(request)
puts response.read_body{
"codes": [
"92500",
"92503",
"92504",
"92507",
"92508",
"92511",
"92513",
"92515",
"92517",
"92519",
"92520",
"92521",
"92522",
"92523",
"92524",
"92528",
"92529",
"92530",
"92531",
"92532",
"92534",
"92535",
"92536",
"92537",
"92538",
"92539",
"92540",
"92541",
"92542",
"92543",
"92544",
"92545",
"92546",
"92548",
"92549",
"92550",
"92551",
"92553",
"92555",
"92556",
"92557",
"92558",
"92561",
"92565",
"92566",
"92567",
"92568",
"92569",
"92570",
"92572",
"92573",
"92574",
"92577",
"92578",
"92579",
"92580",
"92581",
"92583",
"92584",
"92586",
"92587",
"92588",
"92589",
"92591",
"92592",
"92593",
"92594",
"92595",
"92596",
"92597"
],
"count": 70,
"observed_at_ms": 1791225223947,
"prefix": "925",
"total": 9234
}Texas SmartBuy ESBD
List nigp codes
Validating or completing a NIGP code for the nigp_code filter.
POST
https://api.aisa.one
/
apis
/
v1
/
txsmartbuy-gov
/
public-tenders
/
list-nigp-codes
List nigp codes
curl --request POST \
--url https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-nigp-codes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prefix": "925"
}
'import requests
url = "https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-nigp-codes"
payload = { "prefix": "925" }
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({prefix: '925'})
};
fetch('https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-nigp-codes', 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/txsmartbuy-gov/public-tenders/list-nigp-codes",
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([
'prefix' => '925'
]),
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/txsmartbuy-gov/public-tenders/list-nigp-codes"
payload := strings.NewReader("{\n \"prefix\": \"925\"\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/txsmartbuy-gov/public-tenders/list-nigp-codes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prefix\": \"925\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-nigp-codes")
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 \"prefix\": \"925\"\n}"
response = http.request(request)
puts response.read_body{
"codes": [
"92500",
"92503",
"92504",
"92507",
"92508",
"92511",
"92513",
"92515",
"92517",
"92519",
"92520",
"92521",
"92522",
"92523",
"92524",
"92528",
"92529",
"92530",
"92531",
"92532",
"92534",
"92535",
"92536",
"92537",
"92538",
"92539",
"92540",
"92541",
"92542",
"92543",
"92544",
"92545",
"92546",
"92548",
"92549",
"92550",
"92551",
"92553",
"92555",
"92556",
"92557",
"92558",
"92561",
"92565",
"92566",
"92567",
"92568",
"92569",
"92570",
"92572",
"92573",
"92574",
"92577",
"92578",
"92579",
"92580",
"92581",
"92583",
"92584",
"92586",
"92587",
"92588",
"92589",
"92591",
"92592",
"92593",
"92594",
"92595",
"92596",
"92597"
],
"count": 70,
"observed_at_ms": 1791225223947,
"prefix": "925",
"total": 9234
}Request contract
- Method and path: POST /apis/v1/txsmartbuy-gov/public-tenders/list-nigp-codes
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/txsmartbuy-gov/public-tenders/list-nigp-codes
{
"operationId": "txsmartbuy-gov.public-tenders.list-nigp-codes",
"method": "POST",
"path": "/apis/v1/txsmartbuy-gov/public-tenders/list-nigp-codes",
"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": {
"prefix": "925"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"prefix": {
"description": "Keep codes starting with these digits (e.g. 925). Pattern: ^[0-9]{1,5}$.",
"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
application/json
Response
List the five-digit NIGP class-item codes the ESBD typeahead knows (about 9,200), optionally filtered by prefix. The site serves codes only; descriptions appear on records. Source: POST NIGP.TypeAhead.Service.ss (ep-4).
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
codes | string[] | |
count | number | |
observed_at_ms | number | Unix epoch milliseconds when the program observed the response. |
prefix | string | |
total | number | Codes the site listed before filtering. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.