Shop

Get a category

get/categories/{id}

Request

  • Base URL
    https://gorest.co.in/public/v3
  • URL
    https://gorest.co.in/public/v3/categories/{id}
  • Auth
    none required

Query parameters

categoriesstring

fields[categories]=name,slug returns only those fields; included items are added whole.

Headers

If-None-Matchstring

An ETag from an earlier answer; an unchanged item answers 304 with no body.

Response

The category.

descriptionstring
idstring uuid required
namestring
slugstring

Example response

{
  "name": "Home and kitchen",
  "slug": "home-kitchen"
}

Changes

No recorded changes to this operation across all 1 revision of this API.