Price Comparison API

Access thousands of online store products and prices information to integrate with your website, blog or app.

curl --include --request GET "http://www.pricetree.com/dev/api.ashx?pricetreeId=11072&apikey=7770AD31-382F-4D32-8C36-3743C0271699"
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script>
function priceTreeCallback(data) {
    // do something with the data
}
$.ajax({
   "url":"http://www.pricetree.com/dev/api.ashx?pricetreeId=11072&apikey=7770AD31-382F-4D32-8C36-3743C0271699",
   "crossDomain":true,
   "dataType":"jsonp"
});
</script>
var request = require("request");

request("http://www.pricetree.com/dev/api.ashx?pricetreeId=11072&apikey=7770AD31-382F-4D32-8C36-3743C0271699", 
function(err, response, body) {
  console.log(body);
});
<?php
$request = "http://www.pricetree.com/dev/api.ashx?pricetreeId=11072&apikey=7770AD31-382F-4D32-8C36-3743C0271699";
$response = file_get_contents($request);
$results = json_decode($response, TRUE);
?>
import json
import urllib

results = json.load(urllib.urlopen("http://www.pricetree.com/dev/api.ashx?pricetreeId=11072&apikey=7770AD31-382F-4D32-8C36-3743C0271699"))
require 'rest_client'
response = RestClient.get 'http://www.pricetree.com/dev/api.ashx?pricetreeId=11072&apikey=7770AD31-382F-4D32-8C36-3743C0271699'
HttpResponseMessage response = await client.GetAsync("http://www.pricetree.com/dev/api.ashx?pricetreeId=11072&apikey=7770AD31-382F-4D32-8C36-3743C0271699");

if (response.IsSuccessStatusCode)
{
    priceComparisonList item = await response.Content.ReadAsAsync();
    Console.WriteLine("{0}\t${1}\t{2}", item.PriceTree_Id, item.Seller_Name, item.Best_Price);
}

Input parameters and details

Parameter Name Data type and Sample value Description
api_key A unique key for all users The api_key parameter specifies your developer key, an alphanumeric string that uniquely identifies the application making an API request.
input type and value(priceTreeId, storeUri, isbn)

Examples

priceTreeId=10822

storeUri=http://www.flipkart.com/samsung-galaxy-s4-i9500/p/itmdv6f4bazcv86p?pid=MOBDK7U9FFPUAGPZ

isbn=9788129124913

Currently, we support 3 input format.

PriceTreeId is a unique identifier for each product listed on PriceTree. e.g 10822 for Samsung Galaxy S4

storeUri is the url of product you want to search for price comparison. E.g "http://www.flipkart.com/samsung-galaxy-s4-i9500/p/itmdv6f4bazcv86p?pid=MOBDK7U9FFPUAGPZ" is the URL for Samsung Galaxy S4 on Flipkart.com

isbn(International Standard Book Number) is unique number for all books and can be used for books search only.

offset int (e.g 10, 20, 50) A maximum number of record to be returned for an API call.

Output parameters, data type and details

Parameter Name Data type Description
status_code a HTTP code(200, 404 ..) [int] A standard HTTP code for all API request to provide information about the status of request. See more about HTTP status code here
status_message message (Success, Fail ..) [String] A user friendly message for all request to provide information about the status of request.
count total records[int] Count of total sellers(Including variants and out of stock) available for that product
PriceTree_Id [int] The unique id represent a product on PriceTree website
Seller_Name Name of the online stores[String] For example (Flipkart, Snapdeal, eBay, Amazon etc..)
Best_Price [Numeric] Best price of product on particular store
In_Stock [String] Yes or No: Based on whether item is available on site or not.
Product_Name [String] The name of product as on seller's website.
Product_Color [String] The color of product as on sellers website
Uri [String] The URL of sellers product(landing page) for particular product

Note: All Free API users don't have access of stores url, instead a PriceTree redirection url is served

powered by Typeform