# Google Shopping on Onekey > 4 endpoints for Google Shopping (0 stable, 4 beta), 2 credits each. Category: E-commerce & marketplaces. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Access: 4 of 4 endpoints are marked "needs a pack" or "may need a pack": free-grant credits reach only the open fetch path; a verified email and a purchased pack unlock the rest. Page: https://onekey.dev/platforms/google_shopping Reference (Markdown): https://onekey.dev/docs/api/google_shopping.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 4 mapped Google Shopping endpoints return each: - `listing.currency` (string): 3 - `listing.price` (number): 3 - `content.createdAt` (ISO 8601 date): 2 - `entity.id` (string): 2 - `entity.url` (URL): 2 - `author.displayName` (string): 1 - `content.id` (string): 1 - `content.text` (string): 1 - `content.title` (string): 1 - `engagement.votes` (integer): 1 - `entity.description` (string): 1 - `entity.name` (string): 1 - `entity.stats.rating` (number): 1 - `entity.stats.ratingCount` (integer): 1 - `listing.available` (boolean): 1 - `listing.brand` (string): 1 - `listing.condition` (string): 1 - `listing.seller` (string): 1 - `media.thumbnailUrl` (URL): 1 - plus 1 platform-specific field under `ext.` ## Endpoints ### google_shopping.price_history Google Shopping price history of a product. - Price: 2 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/google_shopping/price_history?product_id=123456789` with header `x-api-key: YOUR_API_KEY` - Parameters: - `product_id` (string, optional): Product id as it appears on the product page URL - `url` (string, optional): Full URL of the product page (alternative to the id) - Fields returned: `content.createdAt`, `listing.price`, `listing.currency` - Reference: https://onekey.dev/docs/api/google_shopping/price_history.md ### google_shopping.product Google Shopping product detail. - Price: 2 credits per fresh call. Status: beta. Access: needs a pack. Returns: one record. - Request: `GET https://api.onekey.dev/v1/google_shopping/product?product_id=123456789` with header `x-api-key: YOUR_API_KEY` - Parameters: - `product_id` (string, optional): Product id as it appears on the product page URL - `url` (string, optional): Full URL of the product page (alternative to the id) - Fields returned: `entity.id`, `entity.name`, `entity.url`, `entity.description`, `media.thumbnailUrl`, `listing.price`, `listing.currency`, `listing.brand`, `entity.stats.rating`, `entity.stats.ratingCount` - Reference: https://onekey.dev/docs/api/google_shopping/product.md ### google_shopping.reviews Google Shopping product reviews. - Price: 2 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/google_shopping/reviews?gid=4172129135583325756` with header `x-api-key: YOUR_API_KEY` - Parameters: - `gid` (string, optional): Product gid as returned by the product search - `data_docid` (string, optional): Google Shopping data_docid of the product (alternative to gid) - Fields returned: `content.id`, `content.title`, `content.text`, `content.createdAt`, `author.displayName`, `engagement.votes`, `ext.rating` - Reference: https://onekey.dev/docs/api/google_shopping/reviews.md ### google_shopping.sellers Sellers of a Google Shopping product. - Price: 2 credits per fresh call. Status: beta. Access: needs a pack. Returns: a list. - Request: `GET https://api.onekey.dev/v1/google_shopping/sellers?product_id=123456789` with header `x-api-key: YOUR_API_KEY` - Parameters: - `product_id` (string, optional): Product id as it appears on the product page URL - `url` (string, optional): Full URL of the product page (alternative to the id) - Fields returned: `entity.id`, `listing.seller`, `entity.url`, `listing.price`, `listing.currency`, `listing.condition`, `listing.available` - Reference: https://onekey.dev/docs/api/google_shopping/sellers.md ## Sample request ```bash curl "https://api.onekey.dev/v1/google_shopping/product?product_id=123456789" \ -H "x-api-key: YOUR_API_KEY" ```