Marketplace API / Types
Product
ObjectA product listing. Every product has at least one variant containing its price, inventory, and options.
type Product implements NodeFields
| Field | Type | Description |
|---|---|---|
activeAuction | Auction | The active auction for this product, or null when the product has no active auction. |
activeGiveaway | Giveaway | The giveaway currently running on any of this product's variants, or the most recently completed one when none is running. Null when no variant of the product has a running or completed giveaway. When several qualify, the most recently started running giveaway wins, then the most recently completed one. Cancelled giveaways are never returned. |
createdAt | DateTime! | When the listing was created. The value does not change for the life of the product. |
description | String! | The seller's description of the item, as the seller entered it. Empty when the seller wrote none. |
digitalAssetCount | NonNegativeInt! | The number of distinct files linked to this product's variants. A file linked to several variants counts once. A buyer receives the files linked to the variant they purchase, which can be fewer. Zero when no variant includes a file. |
digitalAssetMediaTypes | [MimeType!]! | The media types of the files counted by digitalAssetCount, each once, in ascending order. A file whose stored media type is not a valid MimeType is left out, so this list can be shorter than digitalAssetCount. Empty when no variant includes a file. |
displayVariant | ProductVariant! | The preferred variant to display. Returns the first purchasable variant, falling back to the first variant. |
id | ID! | A globally unique ID. Treat this value as an opaque string. |
isDigitalOnly | Boolean! | Whether no variant of this product is shipped. False when any variant is shipped. This says nothing about files: digitalAssetCount does, and ProductVariant.hasDigitalAssets is per variant and stays true for a variant that includes a file and also ships. |
likeCount | NonNegativeInt! | The total number of likes across the product's variants. Likes on variants that are no longer active are included. |
media | ProductMediaConnection! | Media (images and videos) associated with this product, ordered for display. The first edge is the primary thumbnail.Arguments: after: String — Return media after this cursor.first: Int — Maximum number of media items to return. |
offerEligibility | ProductOfferEligibility! | How offers participate in purchasing this listing (accepts offers, doesn't, or is offer-only). |
priceRange | ProductPriceRangeResult! | Price range across the product's variants, or a reason the price is unavailable. |
seller | User | The seller, or null when unavailable. |
shippingEstimate | ProductShippingEstimate! | An estimate of what the seller charges to ship one unit of this product to a United States address. Every caller, including an unauthenticated one, reads the same value. The estimate comes from the seller's shipping configuration for this product alone. It ignores the destination address, the quantity, other items in the order, tax, and a previous order from the same seller that is still open for combined shipping. The amount charged at checkout can differ. The estimate applies to a variant that is shipped; checkout charges nothing to ship a variant that is not shipped. When the seller has more than one United States configuration, the most recently updated one is read. |
shipsFrom | ShipsFromLocation | The country and region this item ships from, or null when unknown. |
slug | Slug! | The product's URL-friendly identifier, such as orange_ball_42bc. |
thumbnailMedia | [Asset!]! | Up to two media items for product thumbnails. The first is primary and the second is an alternate. Empty when the product has no media. Prefer this field when rendering product lists; media performs a separate lookup for each product. Use media for the complete paginated list. |
title | String! | The product's customer-facing title. |
url | URL! | The product's canonical storefront URL. |
variantCount | Int! | The number of variants on this product. |
variants | ProductVariantConnection! | Variants belonging to this product. A product always has at least one variant. Defaults to seller-defined position, then oldest first.Arguments: after: String — Return variants after this cursor.first: Int! — Maximum number of variants to return. |
viewCount | NonNegativeInt! | The number of times the listing has been viewed. Every caller reads the same value. Each recorded view counts, including repeat views by one person. A listing that no one has viewed reports 0 or 1. |
viewer | ProductViewerState | The authenticated user's relationship to this product, or null when unauthenticated. |