GET/products/{id}
Get product by ID
Retrieve a single product. Supports ETag conditional requests via `If-None-Match`.
Parameters 4
| Name | Type | Description |
|---|---|---|
_fields | query · string | Sparse fieldset — comma-separated fields to return. Leave blank for the full object. |
_expand | query · string | Expand parent relations inline. Applies only when the resource has a matching parent (e.g. `user` on posts). |
_embed | query · string | Embed child collections. Applies only when the resource has a matching child (e.g. `comments` on posts). |
ReturnsProduct
Bearer token required
Response examples
200The product
{
"id": 1,
"categoryId": 4,
"name": "Desk Lamp",
"description": "Ultra-fast connectivity with rock-solid reliability.",
"price": 161.28,
"originalPrice": 231.38,
"currency": "USD",
"stock": 257,
"sku": "SKU-00001",
"rating": 4.4,
"reviewCount": 188,
"image": "https://picsum.photos/seed/prod1/400/400",
"images": [
"https://picsum.photos/seed/prod1-0/400/400",
"https://picsum.photos/seed/prod1-1/400/400",
"https://picsum.photos/seed/prod1-2/400/400",
"https://picsum.photos/seed/prod1-3/400/400",
"https://picsum.photos/seed/prod1-4/400/400"
],
"weight": 9.19,
"dimensions": {
"width": 33.4,
"height": 40,
"depth": 14.6
},
"isAvailable": true,
"isFeatured": false,
"tags": [
"backend"
],
"createdAt": "2024-05-30T01:37:26.059Z",
"updatedAt": "2026-12-15T02:55:19.943Z"
}404404 — resource not found
{
"error": {
"status": 404,
"message": "users #999 not found"
}
}