Price comparison

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.

Price comparison product attributes

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.

Example response

Here is a sample product response showing the price comparison attributes.

  • <product merchant_price="219.99" large_image_url="http://images.jr.com/productimages/APPMB528LLA.PNG?WID=150&CVT=JPEG" product_group_count="17" name="Apple MB528LL/A 8GB iPod Touch" merchant_id="1949" retail_price="219.99" product_group_id="18599627" product_group_merchant_count="17" url="http://r.popshops.com/rp/7pt525q9bmxe0n3okvqlw1qcy/918414669/megabuzz" product_group_min_price="189.99" description="Up to 1, 750 songs in 128-Kbps AAC format - 10, 000 iPod-viewable photos - 10-hours of video / New contoured design / 3.5 widescreen display" product_group_max_price="259.0"/>

Example price comparison request

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)

http://api.popshops.com/v2/brgymtenmw5ea9unauesmh9nz/products.xml?catalog_key=48qsligejm5qng6cv5waprcoq&keywords=ipod&product_group_id=18599627

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.

 
 
 
© 2010 PopShops.com FAQ Contact Jobs Privacy Policy Terms of Service