GET

Get Category By Slug


Gets a category with the provided slug.

Permissions
Manage Blog
Read Blog
Read Draft Blog Posts
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/blog/v3/categories/slugs/{slug=**}

Query Params
slugstringRequired

Slug of the category to retrieve.


fieldsetsArray <string>

List of additional category fields to include in the response. For example, use the URL fieldset to retrieve the url field in the response in addition to the category’s base fields. Base fields don’t include any of the supported fieldset values. By default only the category’s base fields are returned.


languagestring

2-or-4-letter language code in IETF BCP 47 language tag format. Language of the category to retrieve.

Response Object
categoryCategory

Category info.

Get Category By Slug Example 1
Request
cURL
curl \ 'https://www.wixapis.com/blog/v3/categories/slugs/summer-slug' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH>'
Response
JSON
{ "category": { "id": "5f2bcaa0879ad500173577f3", "label": "Summer", "url": { "base": "https://some-user.wixsite.com/my-site", "path": "/blog/categories/summer" }, "postCount": 17, "description": "Posts about my summer", "title": "Summer", "displayPosition": 1, "language": "en", "slug": "summer-slug", "translationId": "111a58a2-dc75-422d-9ca6-00a489750dfd" } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?