Skip to content
cresvaDevelopers

One product

GET/api/storefront/{brandId}/products/{productId}
No keyCallable anonymously. Rate limited by IP.10 requests a minute

Parameters

brandIdstring · pathrequiredThe storefront's brand id. There is no public endpoint that maps a domain to a brand id; ask the merchant for their storefront URL, the id is in it.
productIdstring · pathrequiredThe product id, a cuid.

Request

bash
BRAND_ID=cmqmr1f6j0003la04nu93f4k4
curl "https://cresva.ai/api/storefront/$BRAND_ID/products/{productId}"

Response

Captured from production on 2026-09-16: 200 in 761ms, X-OSP-Version: 2026-03-01. This is what the endpoint returned, not an example of what it might.

JSON
{
  "product": {
    "id": "cmtpqwhit001ajv04e1vvv5j6",
    "title": "The Videographer Snowboard",
    "price": {
      "amount": 885.95,
      "currency": "USD",
      "formatted": "$885.95"
    },
    "availability": "in_stock",
    "rating": null,
    "summary": "",
    "attributes": {},
    "comparison_context": null,
    "purchase_url": "https://cresva-pilot-two.myshopify.com/products/the-videographer-snowboard",
    "images": [
      "https://cdn.shopify.com/s/files/1/0803/1135/3541/files/Main.jpg?v=1787511528"
    ]
  },
  "review_details": null,
  "content_score": null
}

Response codes

200One product card.
idstringrequired
titlestringrequired
summarystring
priceobjectrequired
amountnumber or nullrequiredNull when the shop's currency could not be established. Never 0 as a stand-in.
currencystring or nullrequired
formattedstring or nullrequired
compare_atnumber
discount_percentnumber
availabilitystring, one of in_stock, low_stock, out_of_stock, preorderrequired
ratingobject or nullNull when the product has no ratings. Never 0.
scorenumber
countinteger
attributesobject
purchase_urlstring or null, uri
imagesarray of string
401The key does not match any active key.
erroranyTwo shapes exist across this API and that is deliberate rather than untidy. Each route kept the error shape it already used, so an existing client's error handling keeps working. See x-cresva-error-shapes.
403The key is valid but belongs to a different brand than the one in the path. Keys are scoped to one brand and do not travel.
erroranyTwo shapes exist across this API and that is deliberate rather than untidy. Each route kept the error shape it already used, so an existing client's error handling keeps working. See x-cresva-error-shapes.
404No such brand.
erroranyTwo shapes exist across this API and that is deliberate rather than untidy. Each route kept the error shape it already used, so an existing client's error handling keeps working. See x-cresva-error-shapes.
429Over the rate limit.
erroranyTwo shapes exist across this API and that is deliberate rather than untidy. Each route kept the error shape it already used, so an existing client's error handling keeps working. See x-cresva-error-shapes.
503The rate limiter could not be reached, so the request was refused rather than served unmetered. Deliberately not a 429: the caller has done nothing wrong and the fault is ours.
erroranyTwo shapes exist across this API and that is deliberate rather than untidy. Each route kept the error shape it already used, so an existing client's error handling keeps working. See x-cresva-error-shapes.

Generated from the storefront OpenAPI document at growthagents 269d7898b, sha256 047fe4d301258100. Nothing on this page was typed by hand.