Get Product

Retrieve a single product by its ID.

🔒

Requires read_product access scope. For more access scope

The Product Details API allows developers to fetch comprehensive information about a product by using its unique id and query parameters. This endpoint supports retrieving specific fields based on the user’s request. For example, users can request key product attributes such as id, name, and price.This API is especially useful for:

  1. Retrieving product's metadata like price and owner details.

  2. Customizing query results by specifying required fields.

Request Parameters

Public Request Parameters

📘

Path Parameters

ParameterTypeRequiredDescriptionExample
product_idstringyesSpecifies which product is to be retrieved."prod_123"

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"200"HTTP status code
messagestring"Success"Operation result message
data.productarray of objects-product

Product Object

ParameterTypeExampleDescription
idstring"prod_123"Product ID
titlestring"Wireless Headphones"Product title
descriptionstring"Noise-cancelling wireless headphones"Product description
publishedbooleantruePublished status
requires_shippingbooleantrueShipping requirement
taxablebooleantrueTaxable status
tagsarray of strings["audio", "wireless"]Product tags
vendorstring"Sony"Vendor name
vendor_urlstring"https://sony.com"Vendor URL
notestring"Limited edition"Internal note
seo_titlestring"Premium Headphones"SEO title
seo_descriptionstring"Buy best wireless headphones"SEO description
seo_keywordsarray of strings["headphones", "audio"]SEO keywords
handlestring"wireless-headphones"Product handle
has_only_default_variantbooleanfalseSingle variant flag
inventory_trackingbooleantrueInventory tracking
inventory_policystring"deny"Inventory policy
need_variant_imagebooleantrueVariant image requirement
spustring"SPU123"Standard product unit
fake_salesstring"100"Display sales count
display_fake_salesbooleantrueShow fake sales
optionsarray of objects-Product options
options.idstring"opt_123"Option ID
options.namestring"Color"Option name
options.valuesarray of strings["Black", "White"]Option values
options.positionstring"1"Option position
imagesarray of objects-Product images
images.idstring"img_123"Image ID
images.srcstring"https://example. com/image.jpg"Image URL
images.widthint32800Image width
images.heightint32600Image height
images.altstring"Black headphones"Image alt text
images.positionstring"1"Image position
images.pathstring"/images/headphones"Image path
variantsarray of objects-Product variants
variants.idstring"var_123"Variant ID
variants.product_idstring"prod_123"Parent product ID
variants.image_idstring"img_123"Variant image ID
variants.created_atstring"2025-01-01T00:00:00Z"Creation time
variants.updated_atstring"2025-06-01T00:00:00Z"Update time
variants.titlestring"Black"Variant title
variants.option1string"Black"Option 1 value
variants.option2string"Large"Option 2 value
variants.option3string""Option 3 value
variants.imageobject-Variant image
variants.image.positionstring"1"Image position
variants.compare_at_pricefloat199.99Compare at price
variants.pricefloat149.99Current price
variants.skustring"SKU123BLK"Stock keeping unit
variants.barcodestring"123456789"Barcode
variants.notestring"New stock"Variant note
variants. inventory_quantitystring"50"Inventory count
variants.weightfloat0.5Product weight
variants.weight_unitstring"kg"Weight unit
variants.cost_pricefloat89.99Cost price
variants.whole_pricesarray of objects-Wholesale prices
variants. whole_prices.pricefloat129.99Wholesale price
variants.whole_prices. min_quantitystring"10"Minimum quantity
variants. retail_pricefloat149.99Retail price
variants. is_discountbooleanfalseDiscount status
variants. origin_pricefloat149.99Original price
variants. extendobject-Extended properties
variants. extend.lengthfloat20.5Product length
variants. extend.widthfloat15.0Product width
variants. extend.heightfloat5.0Product height
variants.extend. dimension_unitstring"cm"Dimension unit
variants.extend. origin_country_codestring"CN"Country of origin
variants.extend. hs_codestring"8518.29"HS code
variants.extend. mixed_wholesalebooleanfalseMixed wholesale
product_typestring"electronics"Product type
brandstring"Sony"Product brand
briefstring"Premium audio"Brief description
inventory_quantitystring"150"Total inventory
price_minfloat149.99Minimum price
price_maxfloat199.99Maximum price
compare_at_price_minfloat199.99Minimum compare price
compare_at_price_maxfloat249.99Maximum compare price
published_atstring"2025-05-15T00:00:00Z"Publish date
created_atstring"2025-01-01T00:00:00Z"Creation date
updated_atstring"2025-06-01T00:00:00Z"Update date
salesstring"75"Actual sales count
independent_seobooleantrueCustom SEO flag
urlstring"/products/wireless-headphones"Product URL
availablebooleantrueAvailability status
retail_price_minfloat149.99Minimum retail price
retail_price_maxfloat199.99Maximum retail price
origin_price_minfloat149.99Minimum original price
origin_price_maxfloat199.99Maximum original price
primary_imageobject-Primary image
primary_image.srcstring"https://example. com/primary.jpg"Image URL
primary_image.widthint32800Image width
primary_image.heightint32600Image height
primary_image.altstring"Primary product image"Alt text
primary_image.pathstring"/images/primary"Image path
tax_codestring"TAX123"Tax code
category_idstring"cat_123"Category ID
categoryobject-Category details
category.idstring"cat_123"Category ID
category.namestring"Electronics"Category name
category.google_idstring"12345"Google category ID
category.levelint322Category level
category.pathstring"Electronics/Audio"Category path

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message
Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!