product
Version 2024-11-01
Important
The Buy with Prime API is offered as a preview and might change as we receive feedback and iterate on the interfaces. We are sharing this early documentation to help you learn about the Buy with Prime API as we write and iterate on the content.
Overview
Returns a product
Required scope(s)
View & Edit Catalog Data
Response
Return type Product
Arguments
Argument | Description |
---|---|
identifier (ProductIdentifierInput) | Product identifiers to locate a product. |
Examples
Query By Sku
Request
query product {
product(identifier: {
sku: "example-sku-1"
}) {
id
externalId {
value
}
sku {
value
}
amazonSku {
value
}
offerPrime
productDetailPageUrl
image {
displayReadyUrl
sourceUrl
}
description {
values {
value
locale
}
defaultLocale
}
title {
values {
value
locale
}
defaultLocale
}
externalVersion
advertisedPrice {
currentPrice {
currencyCode
amount
}
}
price {
currentPrice {
currencyCode
amount
}
}
}
}
Response
{
"data": {
"product": {
"id": "abcdef01234567",
"externalId": {
"value": "example-external-id"
},
"sku": {
"value": "example-sku"
},
"amazonSku": {
"value": "example-amazon-sku"
},
"offerPrime": true,
"productDetailPageUrl": "example.com",
"image": {
"displayReadyUrl": "example.com/display-ready-product-image.jpeg",
"sourceUrl": "example.com/product-image.jpeg"
},
"description": {
"values": [
{
"value": "<h2>This is an English description</h2>",
"locale": "en-US"
},
{
"value": "<p>这是一条中文产品描述</p>",
"locale": "zh-CN"
}
],
"defaultLocale": "en-US"
},
"title": {
"values": [
{
"value": "my-title",
"locale": "en-US"
}
],
"defaultLocale": "en-US"
},
"externalVersion": "product-version",
"advertisedPrice": {
"currentPrice": {
"currencyCode": "USD",
"amount": 10
}
},
"price": {
"currentPrice": {
"currencyCode": "USD",
"amount": 10
}
}
}
}
}
Query By Amazon Sku
Request
query product {
product(identifier: {
amazonSku: { value: "example-amazon-sku-1" }
}) {
id
externalId {
value
}
sku {
value
}
amazonSku {
value
}
offerPrime
productDetailPageUrl
image {
displayReadyUrl
sourceUrl
}
description {
values {
value
locale
}
defaultLocale
}
title {
values {
value
locale
}
defaultLocale
}
externalVersion
advertisedPrice {
currentPrice {
currencyCode
amount
}
}
price {
currentPrice {
currencyCode
amount
}
}
}
}
Response
{
"data": {
"product": {
"id": "abcdef01234567",
"externalId": {
"value": "example-external-id"
},
"sku": {
"value": "example-sku"
},
"amazonSku": {
"value": "example-amazon-sku"
},
"offerPrime": true,
"productDetailPageUrl": "example.com",
"image": {
"displayReadyUrl": "example.com/display-ready-product-image.jpeg",
"sourceUrl": "example.com/product-image.jpeg"
},
"description": {
"values": [
{
"value": "This is description for example with id abcdef01234567",
"locale": "en-US"
}
],
"defaultLocale": "en-US"
},
"title": {
"values": [
{
"value": "my-title",
"locale": "en-US"
}
],
"defaultLocale": "en-US"
},
"externalVersion": "product-version",
"advertisedPrice": {
"currentPrice": {
"currencyCode": "USD",
"amount": 10
}
},
"price": {
"currentPrice": {
"currencyCode": "USD",
"amount": 10
}
}
}
}
}
Query By External Id
Request
query product {
product(identifier: {
externalId: "example-external-id-1"
}) {
id
externalId {
value
}
sku {
value
}
amazonSku {
value
}
offerPrime
productDetailPageUrl
image {
displayReadyUrl
sourceUrl
}
description {
values {
value
locale
}
defaultLocale
}
title {
values {
value
locale
}
defaultLocale
}
externalVersion
advertisedPrice {
currentPrice {
currencyCode
amount
}
}
price {
currentPrice {
currencyCode
amount
}
}
}
}
Response
{
"data": {
"product": {
"id": "abcdef01234567",
"externalId": {
"value": "example-external-id"
},
"sku": {
"value": "example-sku"
},
"amazonSku": {
"value": "example-amazon-sku"
},
"offerPrime": true,
"productDetailPageUrl": "example.com",
"image": {
"displayReadyUrl": "example.com/display-ready-product-image.jpeg",
"sourceUrl": "example.com/product-image.jpeg"
},
"description": {
"values": [
{
"value": "This is description for example with id abcdef01234567",
"locale": "en-US"
}
],
"defaultLocale": "en-US"
},
"title": {
"values": [
{
"value": "my-title",
"locale": "en-US"
}
],
"defaultLocale": "en-US"
},
"externalVersion": "product-version",
"advertisedPrice": {
"currentPrice": {
"currencyCode": "USD",
"amount": 10
}
},
"price": {
"currentPrice": {
"currencyCode": "USD",
"amount": 10
}
}
}
}
}
Query By Product Id
Request
query product {
product(identifier: {
productId: "example-productId-1"
}) {
id
externalId {
value
}
sku {
value
}
amazonSku {
value
}
offerPrime
productDetailPageUrl
image {
displayReadyUrl
sourceUrl
}
description {
values {
value
locale
}
defaultLocale
}
title {
values {
value
locale
}
defaultLocale
}
externalVersion
advertisedPrice {
currentPrice {
currencyCode
amount
}
}
price {
currentPrice {
currencyCode
amount
}
}
}
}
Response
{
"data": {
"product": {
"id": "abcdef01234567",
"externalId": {
"value": "example-external-id"
},
"sku": {
"value": "example-sku"
},
"amazonSku": {
"value": "example-amazon-sku"
},
"offerPrime": true,
"productDetailPageUrl": "example.com",
"image": {
"displayReadyUrl": "example.com/display-ready-product-image.jpeg",
"sourceUrl": "example.com/product-image.jpeg"
},
"description": {
"values": [
{
"value": "<p>This is description for example with id abcdef01234567</p>",
"locale": "en-US"
}
],
"defaultLocale": "en-US"
},
"title": {
"values": [
{
"value": "my-title",
"locale": "en-US"
}
],
"defaultLocale": "en-US"
},
"externalVersion": "product-version",
"advertisedPrice": {
"currentPrice": {
"currencyCode": "USD",
"amount": 10
}
},
"price": {
"currentPrice": {
"currencyCode": "USD",
"amount": 10
}
}
}
}
}
Updated 5 days ago