Measura API documentation · v1
Retrieve a product and its variants with pagination support.
GET /api/v1/products/{productId}
Headers:
Authorization: Bearer <api-key>
Content-Type: application/jsonScroll horizontally to see all columns.
| Parameter | Type | Description |
|---|---|---|
productId | string | Required - The Shopify product REST ID |
Scroll horizontally to see all columns.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Optional - Number of variants per page. Positive integer; capped at 100. Default: 50 |
cursor | string | Optional - Pagination cursor from a previous response to fetch the next page |
{
"success": true,
"data": {
"product": {
"id": "123",
"measurementType": "weight",
"variants": [
{
"id": "456",
"isMeasuraEligible": true,
"fractionalInventory": { "123456": { "quantity": 0.25 } },
"unitMeasurement": {
"unit": "kg",
"value": 1
},
"settings": {
"onlineStore": {
"displayStyle": "number",
"rules": {
"min": 0.5,
"increment": 0.5,
"defaultValue": 1
}
}
}
}
]
}
},
"error": null,
"meta": {
"nextCursor": "eyJ...",
"prevCursor": null,
"hasMore": true
}
}Scroll horizontally to see all columns.
| Field | Type | Description |
|---|---|---|
success | boolean | Indicates whether the request was successful |
data | object | Response data object |
error | null | Null for a successful request |
data.product | Product | The product object with nested variants |
meta | PaginationMeta | Pagination metadata for cursor-based navigation |
Scroll horizontally to see all columns.
| Status code | Description |
|---|---|
| 400 | Bad Request - Missing product ID or invalid limit parameter |
| 401 | Unauthorized - Missing or invalid API key |
| 403 | Forbidden - Public API access is unavailable for this shop |
| 404 | Not Found - Product not found |
| 422 | Unprocessable Entity - Product is not configured for sell-by-measurement |
| 429 | Too Many Requests - API rate limit exceeded |
| 500 | Internal Server Error - Server error while processing the request |
Note
isMeasuraEligible: false; check eligibility before treating a variant as measured.meta.hasMore, then use meta.nextCursor to fetch the next page. The returned meta.prevCursor is the page start cursor; this endpoint only supports forward paginationlimit parameter controls the page size; values above 100 are capped at 100Related: