NAICS Classification
Classify any business by NAICS (North American Industry Classification System) codes using AI analysis of their website.
Endpoint: GET /v1/brand/naics
Credits: 5 per request
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
domain | string | Yes | Domain to classify (e.g., stripe.com) |
Response Schema
{
"success": true,
"naics_codes": [
{
"code": "522320",
"title": "Financial Transactions Processing, Reserve, and Clearinghouse Activities",
"description": "Establishments primarily engaged in providing financial transaction processing, reserve, and clearinghouse activities.",
"level": 6,
"confidence": 0.95
},
{
"code": "511210",
"title": "Software Publishers",
"description": "Establishments primarily engaged in computer software publishing or publishing and reproduction.",
"level": 6,
"confidence": 0.82
}
],
"industries": ["Financial Technology", "Payment Processing", "Software"],
"domain": "stripe.com",
"cached": false,
"credits_used": 5,
"request_id": "a7b8c9d0-e1f2-3456-0123-567890123456"
}Code Examples
cURL
curl -X GET "https://api.orsa.dev/v1/brand/naics?domain=stripe.com" \
-H "Authorization: Bearer YOUR_API_KEY"TypeScript
const result = await client.brand.naics({
domain: 'stripe.com',
});
console.log(result.naics_codes[0].code); // "522320"
console.log(result.naics_codes[0].title); // "Financial Transactions Processing..."
console.log(result.naics_codes[0].confidence); // 0.95
console.log(result.industries); // ["Financial Technology", ...]Python
result = client.brand.naics(domain="stripe.com")
print(result.naics_codes[0].code) # "522320"
print(result.naics_codes[0].title) # "Financial Transactions Processing..."
print(result.naics_codes[0].confidence) # 0.95
print(result.industries) # ["Financial Technology", ...]Error Codes
| Code | Status | Description |
|---|---|---|
INPUT_VALIDATION_ERROR | 400 | Invalid or missing domain |
UNAUTHORIZED | 401 | Missing or invalid API key |
RATE_LIMITED | 429 | Rate limit exceeded |
USAGE_EXCEEDED | 402 | Insufficient credits |
WEBSITE_ACCESS_ERROR | 502 | Classification pipeline failed |
INTERNAL_ERROR | 500 | Server error |
Notes
- Returns multiple NAICS codes ranked by confidence (0–1 scale). Most businesses match 1–3 codes.
- The
levelfield indicates code specificity: 2 = sector, 3 = subsector, 4 = industry group, 5 = industry, 6 = national industry. - Also returns a human-readable
industriesarray alongside NAICS codes. - Classification results are cached and persisted to the brand record for future lookups.
- Uses AI analysis of the website content — not self-reported data.