categories
List all categories.
get/api/v1/categories
Request
- Base URL: https://crates.io
- URL: https://crates.io/api/v1/categories
- Auth: none declared
Query parameters
sortstring
The sort order of the categories.
Valid values: alpha, and crates.
Defaults to alpha.
pageinteger
The page number to request.
This parameter is mutually exclusive with seek and not supported for all requests.
per_pageinteger
The number of items to request per page.
seekstring
The seek key to request.
This parameter is mutually exclusive with page and not supported for all requests.
The seek key can usually be found in the meta.next_page field of paginated responses.
Response
Successful Response
Example response
{
"categories": [
{
"category": "Game development",
"crates_cnt": 42,
"created_at": "2019-12-13T13:46:41Z",
"description": "Libraries for creating games.",
"id": "game-development",
"parent_categories": [],
"slug": "game-development",
"subcategories": []
}
],
"meta": {
"total": 123
}
}Changes
No recorded changes to this operation across all 1 revision of this API.