API Documentation
Returns the single CPC classification entry matching an exact CPC code. Call it to resolve a known CPC code to its classification details. Fails with 404 when no entry matches the code, 400 when the code parameter is invalid, and 500 on an internal error.
Rate limit: cpcApiCallsPerDay · Free plan: 10/day
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| code | string | Yes | The exact CPC code to look up. |
Example request
curl -H "x-api-key: YOUR_API_KEY" \ "https://app.caelrith.com/api/v1/cpc/lookup?code=your_code"
Returns a list of CPC classification codes with their descriptions whose description begins with the supplied query text. Call it to look up CPC codes by the start of their description. Returns 400 if the query parameters are invalid and 500 on an internal failure.
Rate limit: cpcApiCallsPerDay · Free plan: 10/day
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | Text the code description must start with; matching is case-insensitive. |
| limit | number | No | Range 1-100; default 10 (range 1-100; default 10) Range: 1 to 100 |
Example request
curl -H "x-api-key: YOUR_API_KEY" \ "https://app.caelrith.com/api/v1/cpc/search?q=your_q"