Shop

Get a product

get/products/{id}

Request

  • Base URL
    https://gorest.co.in/public/v3
  • URL
    https://gorest.co.in/public/v3/products/{id}
  • Auth
    • none
    • or HTTP bearer

Query parameters

productsstring

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

includestring

Adds related items to each item, one level deep: category. Comma separated.

Headers

If-None-Matchstring

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

Response

The product. With include the ETag is weak, as it covers the included items too.

category_idstring uuid
created_atstring date-time
currencystring

An ISO 4217 code (see /currencies). Fixed once the product is made.

descriptionstring
idstring uuid required
namestring
price_minorinteger

The price in minor units of currency: 249900 with INR is ₹2,499.00.

read_onlyboolean

True for sample data (the seed); it cannot be changed.

skustring

Your code for the product, unique in your account.

stockinteger nullable

Units left; null when stock is not tracked (sample products). An order takes from it and a cancel puts it back.

updated_atstring date-time

Example response

{
  "category": {
    "name": "Home and kitchen",
    "slug": "home-kitchen"
  },
  "currency": "INR",
  "name": "Wireless earbuds",
  "price_minor": 249900,
  "sku": "EL-1001"
}

Changes

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