GET/v1/naics/{code}
One NAICS code with its parents up to the sector and its direct children
PARAMETERS
- codepath · stringREQUIRED
- NAICS codee.g. 541511
REQUEST
curl "https://api.apialmanac.com/v1/naics/541511" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://api.apialmanac.com/v1/naics/541511", 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/541511", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"code": "541511",
"title": "Custom Computer Programming Services",
"level": 6,
"parents": [
{
"code": "54",
"title": "Professional, Scientific, and Technical Services",
"level": 2
},
{
"code": "541",
"title": "Professional, Scientific, and Technical Services",
"level": 3
},
{
"code": "5415",
"title": "Computer Systems Design and Related Services",
"level": 4
},
{
"code": "54151",
"title": "Computer Systems Design and Related Services",
"level": 5
}
],
"children": []
}