Count
Count: Category breakdown
GET
/v1/count/categoriesTop primary categories of one area (Primary Count), with Uncategorized and Other.
- Authentication
- Workspace API key:
Authorization: Bearer YOUR_API_KEY - Price
- 1,000 credits ($0.001 per request)1,000 credits per successful request.
Try in PlaygroundOpens the request in the Playground. Nothing runs until you choose Run.
Parameters
| Parameter | Type and limits | Description |
|---|---|---|
countryrequired | string | ISO 3166-1 alpha-2 country code. |
stateoptional | string | Admin1 name (Admin1 area). |
cityoptional | string | Admin2 name; requires state (Admin2 area). |
h3_celloptional | string | One H3 resolution 8 cell (15 hex characters); not combined with state/city. |
poi_validityoptional | stringOne of all, valid, uncertain, invalid, unknowndefault all | Validity bucket; unknown is places without an assessment. |
limitoptional | integer1–100, default 10 | Top N categories, 1–100. |
Response
JSON. The example on the right shows the shape with illustrative values.
X-Request-Id: Server-generated ID of this request; quote it to support.X-Credits-Charged: Credits actually debited for this request (0when nothing was charged).Retry-After: 429 only: seconds until the rate window ends.
Errors
| Status | Meaning |
|---|---|
401 | Missing, invalid or revoked API key (WWW-Authenticate: Bearer). Not charged. |
402 | Insufficient credits: the wallet cannot cover the operation's base price before the call, or the actual price of the result at debit time (for example a large page). Nothing is charged; top up and retry. |
404 | Country dataset or place not found. Not charged. |
422 | Invalid parameter or combination, or an invalid cursor. Not charged. |
429 | Workspace rate limit exceeded; retry after Retry-After seconds. Not charged. |
502 | Upstream error or unexpected response. Not charged. |
504 | Upstream timeout. Not charged. |
Errors are JSON, {"detail": "..."}. See Errors and rate limits.