Product API reference
You can make a GET
request for the information of any product using the Ajax Product API.
All Ajax API requests should use locale-aware URLs to give visitors a consistent experience.
Anchor to GET /{locale}/products/{product-handle}.jsGET /{locale}/products/{product-handle}. js
Get the JSON of a product using the product handle.
All monetary properties are returned in the customer's presentment currency. To check the customer's presentment currency, you can use the currency
field of the /{locale}/cart.js
endpoint. To learn more about selling in multiple currencies, see Support multiple currencies and languages.
Anchor to ExampleExample
Anchor to ResponseResponse
The JSON of the product.
Example:
The JSON of the product can contain a maximum of 250 variants in the variants array.
Anchor to Selling plan exampleSelling plan example
Products with selling plans will have the following additional properties available at /{locale}/products/<handle>.js
.