# Industry and Occupation Codes – Code Validator

> Industry and Occupation Codes – Code Validator is a paid API for AI agents from industry-occupation-codes.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-02).

Validates whether a given code is a recognized NAICS 2022 or SOC 2018 code, identifies its level, and reports which classification system it belongs to.

## Facts

- Endpoint: GET https://industry-occupation-codes.x402tookit.com/code-validate?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/industry-and-occupation-codes-code-validator-81290533
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GmkqhAyhax9x5hVikg6Uj

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability industry-and-occupation-codes-code-validator-81290533
```

Example prompt: Can you check whether 541511 is a valid NAICS 2022 code, and if so, tell me what level it is and what it's called?

## When to prefer this

Use this endpoint when you need to confirm whether a specific code string is a recognized NAICS 2022 or SOC 2018 identifier before storing, submitting, or acting on it. Prefer this over the search endpoints when you already have a code and just need validation rather than discovery. Useful for form validation, compliance checks, or data cleaning pipelines where code correctness must be verified.

## Known failure modes

- Code not found in either system — returns verdict indicating no match with reasons
- Malformed code string — may return no match or format recognition failure
- System filter provided but code only valid in the other system — returns not-checked note for filtered system
- Service degraded — degraded flag set to true with partial or cached results
- Missing required 'code' query parameter — returns error

## How this service works

Check whether a code is a valid NAICS 2022 or SOC 2018 code, at what level, and which system it belongs to.

## Output

Returns a verdict on whether the code is valid, the matched code entry with its title, normalized form, classification level number and level name (e.g. sector, subsector, major group, detailed occupation), and the system it belongs to (NAICS or SOC). Also includes a human-readable summary, reasons, and attribution details.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string",
       "description": "Code to check, e.g. 541511, 15-1252, 151252, 15-1252.00 or 31-33"
      },
      "system": {
       "type": "string",
       "description": "naics or soc to test only that system (default: both)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "input": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "matches": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "code": {
          "type": [
           "null",
           "string"
          ]
         },
         "level": {
          "type": [
           "null",
           "number"
          ]
         },
         "title": {
          "type": [
           "null",
           "string"
          ]
         },
         "system": {
          "type": [
           "null",
           "string"
          ]
         },
         "levelName": {
          "type": [
           "null",
           "string"
          ]
         },
         "normalized": {
          "type": [
           "null",
           "string"
          ]
         }
        }
       }
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ]
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notC
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/industry-and-occupation-codes-code-validator-81290533/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from industry-occupation-codes.x402tookit.com](https://www.zero.xyz/host/industry-occupation-codes.x402tookit.com/llms.txt)
