Available in v2 of the API is the ability to get back additional data about products which can be used to build price comparison applications.
Additional attributes will be returned with a product if it belongs to a group of similar products and you have passed in the 'include_product_groups=1' parameter on your product request.
This group of related products is identified within PopShops with a product_group_id. These attributes will be returned in addition to the normal product attributes.
| Attribute | Value | Description |
|---|---|---|
| product_group_id | integer | A unique id identifying a group of similar products the product belongs to. |
| product_group_product_count | integer | The number of products in the product group. |
| product_group_merchant_count | integer | The number of merchants belonging to the product group. |
| product_group_min_price | decimal 10.00,19.95, etc |
The lowest price available in the product group. |
| product_group_max_price | decimal 10.00,19.95, etc |
The highest price available in the product group. |
To retrieve products for a specific product group you make a normal product query, but add the product_group_id for the relevant product group. Here is an example call. (Note: It may not work because of the specific merchants in your catalog)
The 'keywords' parameter is required when passing a product_group_id.
Look at the product request documentation to see the available request/response fields that are associated with this call.