GET/v1/naics
Search NAICS 2022 industry codes by title, or list a level (2 = sectors … 6 = national industries)
Without q or level, returns the 20 two-digit sectors.
PARAMETERS
- qquery · string
- Words in the industry titlee.g. software
- levelquery · integer
- Code length to returne.g. 2
- limitquery · integer
- Maximum resultse.g. 50
REQUEST
curl "https://api.apialmanac.com/v1/naics" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://api.apialmanac.com/v1/naics", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://api.apialmanac.com/v1/naics", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"count": 2,
"total": 2,
"industries": [
{
"code": "511210",
"title": "Software Publishers",
"level": 6
},
{
"code": "5112",
"title": "Software Publishers",
"level": 4
}
]
}