{"info":{"_postman_id":"e28ed1ea-9701-4e72-be97-8c06d6e31170","name":"Marketcheck Cars Search API","description":"<html><head></head><body><p>Marketcheck API provides access to New, Used and Certified car inventory for all car dealers in USA and Canada.</p>\n<p>The API provides a RESTful interface with JSON-formatted responses to access most Marketcheck resources. We are continuously working on expanding our API functionality, so stay tuned!</p>\n<p><strong>Data Source</strong></p>\n<p>The data is sourced from over 53,000 Car dealer websites in USA and over 3600 dealer websites in Canada. </p>\n<p>There are about 6.2M searchable listings (about 2.2M unique VINs) for Used &amp; Certified cars and about 6.6M (about 3.9M unique VINs) New car listings from all over USA. </p>\n<p>For Canada, there are about 200k Used cars listings and 290k New car listings available via the API.</p>\n<p>The active inventory set available on target websites is refreshed once every 24 hours. All websites are tracked for changes to the inventory and only those listings that have changes published are crawled afresh.</p>\n<p><strong>Autobot</strong></p>\n<p>The data is mined from dealer websites, something that a dealer would not mind. Our bot is known by the name \"Autobot\" and is a polite web scraper respecting the robots.txt rules set across all dealer websites.</p>\n<p>Please note, mining from all target websites is actively monitored and data mining issues are actively fixed. There are always 2-3% websites that will be under maintenance for various reasons and inventory coverage from such sites wont be complete. Our operations and support teams actively monitor such sites and fixes them within 48 hours of the discovery.</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>The Developer API uses a token based authentication. You have to include the token in the querystring of every request. The token parameter is named as <code>api_key</code> Each Marketcheck API user can generate API keys and can have multiple valid tokens at the same time. </p>\n<p>To generate an API token, please Sign up at our developer portal at <a href=\"https://developer.marketcheck.com\">http://developer.marketcheck.com</a> </p>\n<p>Once signed up you can register you app/s and subscribe to the usage packs based on your usage requirements. If you are just starting out, the free Evaluation pack is best suited for you. Evaluation packages do not need prior approvals, but all other packages require approvals and you need to send an email to <a href=\"mailto:api@marketcheck.com\">api@marketcheck.com</a> once you request higher packages via your developer portal account.</p>\n<p>You'll need to generate an API key to make an API Request.</p>\n<h1 id=\"testing-via-postman\">Testing via Postman</h1>\n<p>You could import the API in the Postman app and execute the sample API calls described below via Postman to get a good feel of the API.</p>\n<p>Please follow the following steps to set up Postman for the API </p>\n<ol>\n<li>Download and install Postman desktop app, if you prefer the Chrome browser extension thats fine too</li>\n<li>Click on the \"Run in Postman\" button you see on this page on the top right corner and follow the steps Postman shows you to import the collection</li>\n<li>Once imported in Postman you will see an environment configuration on the top right hand side in the Postman app with the dropdown option selected as \"Marketcheck Production.template\"</li>\n<li>Edit this environment and put your API key in this environment for the environment variable named as <code>api_key</code></li>\n<li>You can obtain the api_key by signing up and registering your app on our developer portal <a href=\"http://developer.marketcheck.com\">http://developer.marketcheck.com</a></li>\n<li>Once a valid api_key set in the environment you are good to go!</li>\n</ol>\n<p>In case you have any queries on the above process please write to us at <a href=\"mailto:support@marketcheck.zendesk.com\">support@marketcheck.zendesk.com</a></p>\n<h1 id=\"requests\">Requests</h1>\n<p><strong>Headers</strong></p>\n<p>All Marketcheck API calls must include the following headers:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Host</td>\n<td>marketcheck-prod.apigee.net</td>\n</tr>\n<tr>\n<td>Content-Type</td>\n<td>\"application/json\"</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"packages-and-rate-limits\">Packages and Rate limits</h1>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Package</th>\n<th>Quota</th>\n<th>Approval required?</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Evaluation</td>\n<td>Limited 30 days access 20K requests / Month</td>\n<td>No</td>\n</tr>\n<tr>\n<td>Basic</td>\n<td>20K requests / Month</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Standard</td>\n<td>500K API Calls / Month</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Pro</td>\n<td>3M API Calls / Month</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td>Enterprise</td>\n<td>20M API Calls / Month</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div><p>Once you sign up for a package that requires approval please send an email to <a href=\"mailto:api@marketcheck.com\">api@marketcheck.com</a> to get an approval for your API key.</p>\n<p>If you need a package with higher limits, please reach out to us at <a href=\"mailto:api@marketcheck.com\">api@marketcheck.com</a></p>\n<h1 id=\"api-client-sdks\">API Client SDKs</h1>\n<p>We have generated API Client SDKs for various languages. These are hosted here - <a href=\"https://github.com/MarketcheckCarsInc\">https://github.com/MarketcheckCarsInc</a></p>\n<p>In case you are using languages outside of those listed here you could send us a request to get the Client SDK generated for you.</p>\n<h1 id=\"getting-support\">Getting Support</h1>\n<p>For API questions and support, please send an email to <a href=\"mailto:support@marketcheck.zendesk.com\">Marketcheck Support</a>  (<a href=\"mailto:support@marketcheck.zendesk.com\">support@marketcheck.zendesk.com</a>)</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Authentication","slug":"authentication"},{"content":"Testing via Postman","slug":"testing-via-postman"},{"content":"Requests","slug":"requests"},{"content":"Packages and Rate limits","slug":"packages-and-rate-limits"},{"content":"API Client SDKs","slug":"api-client-sdks"},{"content":"Getting Support","slug":"getting-support"}],"owner":"3967924","collectionId":"e28ed1ea-9701-4e72-be97-8c06d6e31170","publishedId":"RW1hhvSR","public":true,"customColor":null,"publishDate":"2018-05-09T08:59:25.000Z"},"item":[{"name":"Inventory Search API","item":[{"name":"Search","item":[{"name":"By Various Criteria","item":[{"name":"Search by Year, Make","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"f628dfa6-cb13-4433-83a4-169ff54d244f","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&year=2014&make=ford&latitude=34.05&longitude=-118.24&radius=100&car_type=used&start=0&rows=50&seller_type=dealer","description":"<ul>\n<li>Search cars for sale by the specified year, make combination</li>\n<li>The listings returned would be for whole of USA as there is no location filter applied</li>\n<li>All types of cars would be returned (New / Used / Certified) </li>\n<li>To pull cars of a particular condition apply the <code>car_type</code> filter</li>\n<li>The make parameter value could be in any case, the API normalises it down to the proper case at the back</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"year","value":"2014"},{"key":"make","value":"ford"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"100"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"50"},{"key":"seller_type","value":"dealer"}],"variable":[]}},"response":[],"_postman_id":"f628dfa6-cb13-4433-83a4-169ff54d244f"},{"name":"Search by Multiple Year values","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var years = [\"2015\", \"2014\", \"2013\"];","var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var temp, flag;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"}","//                         },","//                         \"required\": [\"year\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","   flag = 0;","   temp = listings[i].build.year;","   for(var j = 0; j < years.length; j++) {","       if (years[j] == temp) {","           flag = 1;","       }","   }","   ","   tests[\"Verify year is: \"+ listings[i].build.year] = flag === 1;","}",""]}}],"id":"150129b8-9f22-4b5d-a7c9-673b3f0a6631","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&latitude=40.759212&longitude=-73.984634&radius=30&car_type=used&year=2015,2014,2013&make=ford&start=0&rows=10","description":"<p>Multiple, comma separated, year values could provided to the <code>year</code> parameter and the API would return for sale listings  matching all provided years</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"latitude","value":"40.759212"},{"key":"longitude","value":"-73.984634"},{"key":"radius","value":"30"},{"key":"car_type","value":"used"},{"key":"year","value":"2015,2014,2013"},{"key":"make","value":"ford"},{"key":"start","value":"0"},{"key":"rows","value":"10"}],"variable":[]}},"response":[],"_postman_id":"150129b8-9f22-4b5d-a7c9-673b3f0a6631"},{"name":"Search by Year, Make, Model","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                             \"model\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\", \"model\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","","for (var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","    tests[\"Verify model is: F-150\"] = listings[i].build.model === \"F-150\";","}"]}}],"id":"43f93108-2677-46da-a634-7ffc7cbc9b84","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&year=2014&make=ford&model=F-150&latitude=34.05&longitude=-118.24&radius=10000&car_type=used&start=0&rows=10","description":"<p>Search cars for sale for a given Year, Make, Model combination. To filter on multiple year, make, model combinations check out the <code>ymmt</code> parameter for the Search API</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"year","value":"2014"},{"key":"make","value":"ford"},{"key":"model","value":"F-150"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10000"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"10"}],"variable":[]}},"response":[],"_postman_id":"43f93108-2677-46da-a634-7ffc7cbc9b84"},{"name":"Search by Year, Make, Model, Trim","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                             \"model\": {\"type\": \"string\"},","//                             \"trim\": {\"type\": \"string\"}","//                         },","//                         \"required\": [\"year\", \"make\", \"model\", \"trim\"]","//                     }","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2015\"] = listings[i].build.year === \"2015\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","    tests[\"Verify model is: Edge\"] = listings[i].build.model === \"Edge\";","    tests[\"Verify trim is: SE\"] = listings[i].build.trim === \"SE\";","}"]}}],"id":"930c9dea-0a5c-4635-8569-45565768cfdd","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&year=2015&make=ford&model=Edge&trim=SE AWD&latitude=34.05&longitude=-118.24&radius=30&car_type=used&start=0&rows=10","description":"<p>Search cars for sale matching the year, make, model, trim values. The <code>trim</code> parameter value must be a valid Trim value as per the VIN decoder Marketcheck uses. To pull valid trim values for a given VIN, you can use the VIN Decoder API and then pass on the trim to the search API. </p>\n<p>In most cases you are already using a VIN Decoder and chances are the trim values you have in your decoder wont match a 100% with our decoder. In such cases its advisable to use the VIN Decoder API or the <code>facets</code> parameter to the Search API described below.</p>\n<p>When <code>vin</code> / <code>vins</code> / <code>taxonomy_vins</code> parameter is used to fetch similar cars for sale, the API internally does a VIN Lookup to fetch all car specs attributes for the given <code>vin</code> / <code>vins</code> / <code>taxonomy_vins</code> value/s</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"year","value":"2015"},{"key":"make","value":"ford"},{"key":"model","value":"Edge"},{"key":"trim","value":"SE AWD"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"30"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"10"}],"variable":[]}},"response":[],"_postman_id":"930c9dea-0a5c-4635-8569-45565768cfdd"},{"name":"Search by condition (New / Used / Certified)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"8815bdda-5f88-4528-8ac0-c4f7dc8be83a","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&car_type=used&latitude=34.05&longitude=-118.24&radius=5&start=0&rows=10","description":"<ul>\n<li><code>car_type</code> attribute is used to filter on condition</li>\n<li>valid values to the <code>car_type</code> parameter are <code>new</code>, <code>used</code> and <code>certified</code></li>\n<li>Certified cars are a subset of Used cars</li>\n<li>Apply a location filter to this API call to make it execute faster - as a request to fetch all of New / Used cars would execute a lot slower. As mentioned earlier, the API tries to de-dup all matching listings on VIN and returns only one top result for each VIN matching the search criteria in the active inventory set</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"car_type","value":"used"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"5"},{"key":"start","value":"0"},{"key":"rows","value":"10"}],"variable":[]}},"response":[],"_postman_id":"8815bdda-5f88-4528-8ac0-c4f7dc8be83a"},{"name":"Search by Body Type","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify  is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"356d623e-e6b5-4a54-a042-d521d4c746ec","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&body_type=suv&latitude=34.05&longitude=-118.24&radius=5&start=0&rows=10&car_type=used","description":"<ul>\n<li><code>body_type</code> attribute is used to filter on body type</li>\n<li>few valid values to the <code>body_type</code> parameter are <code>suv</code>, <code>sedan</code>, <code>pickup</code>, <code>hatchback</code>, <code>coupe</code>, <code>wagon</code></li>\n<li>To fetch a list of all valid body types supported by the API, please check the <code>facets</code> parameter described below</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"body_type","value":"suv"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"5"},{"key":"start","value":"0"},{"key":"rows","value":"10"},{"key":"car_type","value":"used"}],"variable":[]}},"response":[],"_postman_id":"356d623e-e6b5-4a54-a042-d521d4c746ec"},{"name":"Search by Body Subtype","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"2e660888-01e3-4c61-8174-3d0b44683aac","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&body_subtype=Crew Cab&latitude=34.05&longitude=-118.24&radius=5&start=0&rows=10&car_type=used","description":"<ul>\n<li><code>body_subtype</code> attribute is used to filter on vehicle type</li>\n<li>few valid values to the <code>body_subtype</code> parameter are <code>Crew Cab</code>, <code>Regular Cab</code>, <code>Extended Cab</code>, <code>Super Cab</code> etc</li>\n<li>To fetch a list of all valid vehicle types supported by the API, please check the <code>facets</code> parameter described below</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"body_subtype","value":"Crew Cab"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"5"},{"key":"start","value":"0"},{"key":"rows","value":"10"},{"key":"car_type","value":"used"}],"variable":[]}},"response":[],"_postman_id":"2e660888-01e3-4c61-8174-3d0b44683aac"},{"name":"Search by Seller Type","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"6fadbe7b-7c6d-4b84-9462-b2901d96fb7c","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&seller_type=dealer&latitude=34.05&longitude=-118.24&radius=5&start=0&rows=10&car_type=used","description":"<ul>\n<li><code>seller_type</code> attribute is used to filter on Seller Type</li>\n<li>valid values to the <code>seller_type</code> parameter are <code>dealer</code>, <code>fsbo</code></li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"seller_type","value":"dealer"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"5"},{"key":"start","value":"0"},{"key":"rows","value":"10"},{"key":"car_type","value":"used"}],"variable":[]}},"response":[],"_postman_id":"6fadbe7b-7c6d-4b84-9462-b2901d96fb7c"},{"name":"Search by City, State, Zip","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"dc41b1cc-940e-48ec-83a7-51a6a935ab25","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&make=ford&car_type=used&city=Los Angeles&zip=90001&start=0&rows=10","description":"<ul>\n<li><code>city</code>,<code>state</code>,<code>zip</code> parameters can be used to search cars for sale near them</li>\n<li>API will return listings that are exact match for given parameter</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"city","value":"Los Angeles"},{"key":"zip","value":"90001"},{"key":"start","value":"0"},{"key":"rows","value":"10"}],"variable":[]}},"response":[],"_postman_id":"dc41b1cc-940e-48ec-83a7-51a6a935ab25"},{"name":"Search by Country","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"f598b0eb-59cb-4a85-b982-430bae521c38","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&year=2014&make=ford&car_type=used&start=0&rows=50&seller_type=dealer&country=CA","description":"<ul>\n<li>Search cars for sale from US / CA by using the <code>country</code> parameter</li>\n<li>Valid country values to the parameter as <code>US</code>, <code>CA</code>, <code>ALL</code></li>\n<li>By deault the API returns cars from US if <code>country</code> parameter is not specified</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"year","value":"2014"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"50"},{"key":"seller_type","value":"dealer"},{"key":"country","value":"CA"}],"variable":[]}},"response":[],"_postman_id":"f598b0eb-59cb-4a85-b982-430bae521c38"},{"name":"Search by Carfax Attributes","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"cb0c78a1-737f-4c98-843e-063757606ffc","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&year=2015&make=ford&car_type=used&start=0&rows=50&carfax_1_owner=true&carfax_clean_title=false","description":"<ul>\n<li>Search cars based on 2 carfax attributes</li>\n<li>carfax_1_owner (i.e. Car has had only one owner in the past)</li>\n<li>carfax_clean_title (i.e.Car has clean ownership record)</li>\n<li>Both fields <code>carfax_1_owner</code> and <code>carfax_clean_title</code> can be passed as parameters to search query with values either true or false</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"year","value":"2015"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"50"},{"key":"carfax_1_owner","value":"true"},{"key":"carfax_clean_title","value":"false"}],"variable":[]}},"response":[],"_postman_id":"cb0c78a1-737f-4c98-843e-063757606ffc"},{"name":"Search for Private Party listings","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"ec919c41-c710-4d34-bf4d-459cb49ec8c9","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&seller_type=fsbo&latitude=34.05&longitude=-118.24&radius=30&start=0&rows=10&car_type=used","description":"<ul>\n<li>Use <code>seller_type</code> attribute to filter private party / FSBO / SIY car listings</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"seller_type","value":"fsbo"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"30"},{"key":"start","value":"0"},{"key":"rows","value":"10"},{"key":"car_type","value":"used"}],"variable":[]}},"response":[],"_postman_id":"ec919c41-c710-4d34-bf4d-459cb49ec8c9"},{"name":"Search by Multiple Year Make Model / Trim Combinations","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2010\"] = listings[i].build.year === \"2010\" || listings[i].build.year === \"2014\";","    tests[\"Verify make is: Audi\"] = listings[i].build.make === \"Audi\" || listings[i].build.make === \"Ford\";","    tests[\"Verify model is: A5,2014\"] = listings[i].build.model === \"A5\" || listings[i].build.model === \"F-150\";","}"]}}],"id":"af1cc3ba-39d2-4ed3-ac14-9a092e3fd575","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&ymmt=2010|Audi|A5,2014|Ford|F-150&latitude=34.05&longitude=-118.24&radius=30&car_type=used&start=0&rows=10","description":"<ul>\n<li>Multiple year, make, model combinations could be specified in a single API call</li>\n<li>The <code>ymmt</code> parameter is used to specify all possible combinations</li>\n<li>a Year, Make, Model combination is specified in the format - year|make|model e.g. 2010|Audi|A5</li>\n<li>Multiple year, make, model combinations are joined together by a comma e.g. 2010|Audi|A5,2014|Ford|F-150</li>\n<li>You could just provide strings of the form - <code>year|make||</code> or <code>year|make|model</code> or <code>|make|model|</code> combinations. </li>\n<li>Individual year / make / model filters provied with the API calls will take precedence over the Year, Make, Model, Trim combinations. </li>\n<li>The Make, Model, Trim values must be valid values as per the Marketcheck Vin Decoder. If you are using a separate vin decoder then look at using the <code>vins</code> or <code>taxonomy_vins</code> parameter to the search api instead the year|make|model|trim combinations.</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"ymmt","value":"2010|Audi|A5,2014|Ford|F-150"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"30"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"10"}],"variable":[]}},"response":[],"_postman_id":"af1cc3ba-39d2-4ed3-ac14-9a092e3fd575"},{"name":"Search by various car specs fields","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"c7c6f8e6-916d-4512-b3d8-632feedc6482","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&body_subtype=Crew Cab&latitude=34.05&longitude=-118.24&radius=5&start=0&rows=10&car_type=used&doors=4","description":"<ul>\n<li>Filtering for sale car listings by various car specification fields is supported</li>\n<li>Apart from Year, Make, Model, Trim, Body Type, Body Subtype and Vehicle Type you could use the following additional fields too to search/filter listings </li>\n<li><code>transmission</code></li>\n<li><code>drivetrain</code></li>\n<li><code>fuel_type</code></li>\n<li><code>speeds</code></li>\n<li><code>doors</code></li>\n<li><code>engine</code></li>\n<li><code>engine_size</code></li>\n<li><code>engine_aspiration</code></li>\n<li><code>engine_block</code></li>\n<li><code>engine_mesaure</code></li>\n<li>To fetch a list of all valid filter values supported by the API for all these fields, please check the <code>facets</code> parameter described below</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"body_subtype","value":"Crew Cab"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"5"},{"key":"start","value":"0"},{"key":"rows","value":"10"},{"key":"car_type","value":"used"},{"key":"doors","value":"4"}],"variable":[]}},"response":[],"_postman_id":"c7c6f8e6-916d-4512-b3d8-632feedc6482"},{"name":"Search - Filter by exterior color","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"2c5602dd-1af7-4bc8-9fac-d685ea4cc04b","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&latitude=34.05&longitude=-118.24&radius=10&start=0&rows=10&car_type=used&exterior_color=red","description":"<ul>\n<li>The parameter to use is <code>exterior_color</code></li>\n<li>Please refer to the exterior color facets returned by the API for all valid exterior color values you could filter upon</li>\n<li>The API ignores the case of the color value passed in</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"start","value":"0"},{"key":"rows","value":"10"},{"key":"car_type","value":"used"},{"key":"exterior_color","value":"red"}],"variable":[]}},"response":[],"_postman_id":"2c5602dd-1af7-4bc8-9fac-d685ea4cc04b"},{"name":"Search - Filter by interior color","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"0abd6b0e-91b8-4c78-b711-365d1b6fd862","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&latitude=34.05&longitude=-118.24&radius=10&start=0&rows=10&car_type=used&interior_color=beige","description":"<ul>\n<li>The parameter to use is <code>interior_color</code></li>\n<li>Please refer to the interior color facets returned by the API for all valid interior color values you could filter upon</li>\n<li>The API ignores the case of the color value passed in</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"start","value":"0"},{"key":"rows","value":"10"},{"key":"car_type","value":"used"},{"key":"interior_color","value":"beige"}],"variable":[]}},"response":[],"_postman_id":"0abd6b0e-91b8-4c78-b711-365d1b6fd862"},{"name":"Search - Filter by interior and exterior color","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"2de980ac-7d03-468f-b86b-ec55d7317121","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&latitude=34.05&longitude=-118.24&radius=10&start=0&rows=10&car_type=used&interior_color=beige&exterior_color=red","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"start","value":"0"},{"key":"rows","value":"10"},{"key":"car_type","value":"used"},{"key":"interior_color","value":"beige"},{"key":"exterior_color","value":"red"}],"variable":[]}},"response":[],"_postman_id":"2de980ac-7d03-468f-b86b-ec55d7317121"}],"id":"938695f3-c5c7-46d1-b22d-e47e38bcbe50","_postman_id":"938695f3-c5c7-46d1-b22d-e47e38bcbe50","description":""},{"name":"Neaby Cars","item":[{"name":"Search - Used cars for sale near Denver, CO  within 200 miles","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings","","for(var i = 0; i < len; i++) {","    tests[\"Verify distance covered under radius is: 20\"] = listings[i].dist <= 200;","}"]}}],"id":"440043b7-9a6a-41a0-8690-899667930a4d","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&latitude=39.73&longitude=-104.99&radius=200&car_type=used&start=0&rows=10&sort_by=dist&sort_order=desc","description":"<p>An example that fetches all Used cars for sale near Denver, Colorado within 200 miles</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"latitude","value":"39.73"},{"key":"longitude","value":"-104.99"},{"key":"radius","value":"200"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"10"},{"key":"sort_by","value":"dist"},{"key":"sort_order","value":"desc"}],"variable":[]}},"response":[],"_postman_id":"440043b7-9a6a-41a0-8690-899667930a4d"}],"id":"41539f8b-06eb-4592-a394-28aeac32be8d","description":"<p>One of the most widely used features of the API is searching for cars that are for sale nearby. The API accepts the Geo Point and a radius within which for sale car listings need to searched.</p>\n","_postman_id":"41539f8b-06eb-4592-a394-28aeac32be8d"},{"name":"Plots API","item":[{"name":"Plots by VIN","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings","","for(var i = 0; i < len; i++) {","    tests[\"Verify distance covered under radius is: 20\"] = listings[i].dist <= 200;","}"]}}],"id":"cf8c177f-f7d1-43a2-935e-3b958cbe77dd","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&latitude=39.73&longitude=-104.99&radius=200&car_type=used&start=0&rows=10&sort_by=dist&sort_order=desc&plot=true","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"latitude","value":"39.73"},{"key":"longitude","value":"-104.99"},{"key":"radius","value":"200"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"10"},{"key":"sort_by","value":"dist"},{"key":"sort_order","value":"desc"},{"key":"plot","value":"true"}],"variable":[]}},"response":[],"_postman_id":"cf8c177f-f7d1-43a2-935e-3b958cbe77dd"}],"id":"787fa0cc-a48b-4098-ae4a-1a99ab1bd3ce","description":"<p>A special purpose Search API that you could use to plot nearby cars on a graph and also show additional data points available in the response on the UI when the users hover over one of the plotted points. It allows user to search with more granular control over filtering, sorting and projections of required fields.</p>\n","_postman_id":"787fa0cc-a48b-4098-ae4a-1a99ab1bd3ce"},{"name":"Sorting","item":[{"name":"Search - Sort Default - by distance","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var distAry = [];","","for(var i = 1; i <= len; i++) {","    var dist = listings[i-1].dist;","    distAry.push(dist);","    tests[\"Verify distance is sorted on : desc order\"] = dist <= distAry[i-1];","}"]}}],"id":"d5db261d-1b06-470a-bcc7-71906d66a3da","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&make=ford&car_type=used&start=1&rows=10&latitude=34.05&longitude=-118.24&radius=10","description":"<p>Default sort order for search results is distance from a given point. </p>\n<p>If the location and a sort order is not specified then the sort order is random.</p>\n<ul>\n<li><p>To fetch nearest cars first use the following parameters \n<code>sort_by=dist</code>\n<code>sort_order=asc</code>  (Or you could skip this parameter)</p>\n</li>\n<li><p>To fetch farthest cars first use the following parameters \n<code>sort_by=dist</code>\n<code>sort_order=desc</code></p>\n</li>\n</ul>\n<p>The calculated distance from the given location is available in the response under response.listing[x].dist key.</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"start","value":"1"},{"key":"rows","value":"10"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"}],"variable":[]}},"response":[],"_postman_id":"d5db261d-1b06-470a-bcc7-71906d66a3da"},{"name":"Search - Sort Default - distance descending","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var distAry = [];","","for(var i = 1; i <= len; i++) {","    var dist = listings[i-1].dist;","    distAry.push(dist);","    tests[\"Verify distance is sorted on : desc order\"] = dist <= distAry[i-1];","}"]}}],"id":"4e2f5e95-0471-46a2-94fa-7fd0d2268294","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&make=ford&car_type=used&start=1&rows=10&latitude=34.05&longitude=-118.24&radius=10&sort_order=desc","description":"<p>Default sort order for search results is distance from a given point. If the location and a sort order is not specified then the sort order is random.</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"start","value":"1"},{"key":"rows","value":"10"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"sort_order","value":"desc"}],"variable":[]}},"response":[],"_postman_id":"4e2f5e95-0471-46a2-94fa-7fd0d2268294"},{"name":"Sort on Price","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var distAry = [];","","for(var i = 1; i <= len; i++) {","    var dist = listings[i-1].dist;","    distAry.push(dist);","    tests[\"Verify distance is sorted on : desc order\"] = dist <= distAry[i-1];","}"]}}],"id":"9ee0f2c5-9b02-47b9-9f59-a352bc6cd71b","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&make=ford&car_type=used&start=1&rows=10&latitude=34.05&longitude=-118.24&radius=10&sort_by=price&sort_order=asc","description":"<p>To sort results on <code>price</code> in the ascending order, use the following two parameters </p>\n<p><code>sort_by=price</code>\n<code>sort_order=asc</code></p>\n<p>To sort in the descending order please specify the sort_order as desc</p>\n<p><code>sort_by=price</code>\n<code>sort_order=desc</code></p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"start","value":"1"},{"key":"rows","value":"10"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"sort_by","value":"price"},{"key":"sort_order","value":"asc"}],"variable":[]}},"response":[],"_postman_id":"9ee0f2c5-9b02-47b9-9f59-a352bc6cd71b"},{"name":"Sort on Miles","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var distAry = [];","","for(var i = 1; i <= len; i++) {","    var dist = listings[i-1].dist;","    distAry.push(dist);","    tests[\"Verify distance is sorted on : desc order\"] = dist <= distAry[i-1];","}"]}}],"id":"2f42a9fb-3305-4f3f-980b-2c8eb8d69f59","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&make=ford&car_type=used&start=1&rows=10&latitude=34.05&longitude=-118.24&radius=10&sort_by=miles&sort_order=asc","description":"<p>To sort results on <code>miles</code> in the ascending order, use the following two parameters </p>\n<p><code>sort_by=miles</code>\n<code>sort_order=asc</code></p>\n<p>To sort in the descending order please specify the sort_order as desc</p>\n<p><code>sort_by=miles</code>\n<code>sort_order=desc</code></p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"start","value":"1"},{"key":"rows","value":"10"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"sort_by","value":"miles"},{"key":"sort_order","value":"asc"}],"variable":[]}},"response":[],"_postman_id":"2f42a9fb-3305-4f3f-980b-2c8eb8d69f59"},{"name":"Sort on Days on Market","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var distAry = [];","","for(var i = 1; i <= len; i++) {","    var dist = listings[i-1].dist;","    distAry.push(dist);","    tests[\"Verify distance is sorted on : desc order\"] = dist <= distAry[i-1];","}"]}}],"id":"458d2c40-6860-4651-a205-917e61cf72dd","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&make=ford&car_type=used&start=1&rows=10&latitude=34.05&longitude=-118.24&radius=10&sort_by=dom&sort_order=asc","description":"<p>To sort results on <code>dom</code> (Days on Market) in the ascending order, use the following two parameters </p>\n<p><code>sort_by=dom</code>\n<code>sort_order=asc</code></p>\n<p>To sort in the descending order please specify the sort_order as desc</p>\n<p><code>sort_by=dom</code>\n<code>sort_order=desc</code></p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"start","value":"1"},{"key":"rows","value":"10"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"sort_by","value":"dom"},{"key":"sort_order","value":"asc"}],"variable":[]}},"response":[],"_postman_id":"458d2c40-6860-4651-a205-917e61cf72dd"},{"name":"Sort on Listing Age","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var distAry = [];","","for(var i = 1; i <= len; i++) {","    var dist = listings[i-1].dist;","    distAry.push(dist);","    tests[\"Verify distance is sorted on : desc order\"] = dist <= distAry[i-1];","}"]}}],"id":"2aa86952-9232-44fa-999e-f88ef028ea71","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&make=ford&car_type=used&start=1&rows=10&latitude=34.05&longitude=-118.24&radius=10&sort_by=age&sort_order=asc","description":"<p>To sort results on listing age in the ascending order, use the following two parameters </p>\n<p><code>sort_by=age</code>\n<code>sort_order=asc</code></p>\n<p>To sort in the descending order please specify the sort_order as desc</p>\n<p><code>sort_by=age</code>\n<code>sort_order=desc</code></p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"start","value":"1"},{"key":"rows","value":"10"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"sort_by","value":"age"},{"key":"sort_order","value":"asc"}],"variable":[]}},"response":[],"_postman_id":"2aa86952-9232-44fa-999e-f88ef028ea71"},{"name":"Sort on Year","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var distAry = [];","","for(var i = 1; i <= len; i++) {","    var dist = listings[i-1].dist;","    distAry.push(dist);","    tests[\"Verify distance is sorted on : desc order\"] = dist <= distAry[i-1];","}"]}}],"id":"9c1c789e-633b-4de5-aaa3-a6612fe5a4b4","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&make=ford&car_type=used&start=1&rows=10&latitude=34.05&longitude=-118.24&radius=10&sort_by=year&sort_order=desc","description":"<p>To sort results on <code>year</code> in the ascending order, use the following two parameters </p>\n<p><code>sort_by=year</code>\n<code>sort_order=asc</code></p>\n<p>To sort in the descending order please specify the sort_order as desc</p>\n<p><code>sort_by=year</code>\n<code>sort_order=desc</code></p>\n<p>Example here sorts on year in the descending order.</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"start","value":"1"},{"key":"rows","value":"10"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"sort_by","value":"year"},{"key":"sort_order","value":"desc"}],"variable":[]}},"response":[],"_postman_id":"9c1c789e-633b-4de5-aaa3-a6612fe5a4b4"},{"name":"Sort on Posted at / Listed since","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var distAry = [];","","for(var i = 1; i <= len; i++) {","    var dist = listings[i-1].dist;","    distAry.push(dist);","    tests[\"Verify distance is sorted on : desc order\"] = dist <= distAry[i-1];","}"]}}],"id":"42551d28-19c9-4671-9c7d-b37418139ac8","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&make=ford&car_type=used&start=1&rows=10&latitude=34.05&longitude=-118.24&radius=10&sort_by=posted_at&sort_order=desc","description":"<p>To sort results on Posted at / Listed since in the ascending order, use the following two parameters </p>\n<p><code>sort_by=posted_at</code>\n<code>sort_order=asc</code></p>\n<p>To sort in the descending order please specify the sort_order as desc</p>\n<p><code>sort_by=posted_at</code>\n<code>sort_order=desc</code></p>\n<p>Example here sorts on posted at in the descending order.</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"start","value":"1"},{"key":"rows","value":"10"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"sort_by","value":"posted_at"},{"key":"sort_order","value":"desc"}],"variable":[]}},"response":[],"_postman_id":"42551d28-19c9-4671-9c7d-b37418139ac8"}],"id":"9e3f03c9-e16c-4598-9161-07e730cc3d20","description":"<p>The Search API allows for sorting results on the following fields - </p>\n<ul>\n<li>Distance</li>\n<li>Price</li>\n<li>Miles</li>\n<li>Days on Market</li>\n<li>Listing age</li>\n<li>Posted at date</li>\n<li>Year</li>\n</ul>\n<p>At the moment, sorting on multiple fields is not supported.</p>\n<p>If sort_order is not specified, the results will be sorted in the ascending order.</p>\n<p>The examples below will only demonstrate the ascending sort. To sort in the descending order please specify the sort_order as desc</p>\n<p><code>sort_order=desc</code></p>\n","_postman_id":"9e3f03c9-e16c-4598-9161-07e730cc3d20"},{"name":"Pagination","item":[{"name":"First page / per page 10","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings","tests[\"Verify number of listings are: 5\"] = listings.length === 5;"]}}],"id":"e1befd07-14f3-4bdc-bbe9-bdb5fdcd5433","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&year=2014&make=ford&latitude=34.05&longitude=-118.24&radius=10&car_type=used&start=0&rows=10&sort_by=price","description":"<p>To fetch listings from the start / first page - </p>\n<p><code>start=0</code>\n<code>rows=10</code></p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"year","value":"2014"},{"key":"make","value":"ford"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"10"},{"key":"sort_by","value":"price"}],"variable":[]}},"response":[],"_postman_id":"e1befd07-14f3-4bdc-bbe9-bdb5fdcd5433"},{"name":"Second page / per page 10","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings","tests[\"Verify number of listings are: 5\"] = listings.length === 5;"]}}],"id":"907f0211-9a2a-4320-a638-11ae7c8868c4","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&year=2014&make=ford&latitude=34.05&longitude=-118.24&radius=10&car_type=used&start=10&rows=10&sort_by=price","description":"<p>To fetch listings from the second page - </p>\n<p><code>start=10</code>\n<code>rows=10</code></p>\n<p>Please note start for second page is 10 (as the first record offset starts from 0)</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"year","value":"2014"},{"key":"make","value":"ford"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"car_type","value":"used"},{"key":"start","value":"10"},{"key":"rows","value":"10"},{"key":"sort_by","value":"price"}],"variable":[]}},"response":[],"_postman_id":"907f0211-9a2a-4320-a638-11ae7c8868c4"},{"name":"First page / per page 25 listings","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings","tests[\"Verify number of listings are: 5\"] = listings.length === 5;"]}}],"id":"220ddad2-4a8c-4c15-93ad-83442229a39d","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&year=2014&make=ford&latitude=34.05&longitude=-118.24&radius=10&car_type=used&start=0&rows=25","description":"<p>To fetch listings from the start / first page - </p>\n<p><code>start=0</code>\n<code>rows=25</code></p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"year","value":"2014"},{"key":"make","value":"ford"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"25"}],"variable":[]}},"response":[],"_postman_id":"220ddad2-4a8c-4c15-93ad-83442229a39d"},{"name":"Second page / per page 25 listings","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings","tests[\"Verify number of listings are: 5\"] = listings.length === 5;"]}}],"id":"c0e873c7-2566-4ed2-8edb-083d1e092533","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&year=2014&make=ford&latitude=34.05&longitude=-118.24&radius=10&car_type=used&start=25&rows=25","description":"<p>To fetch listings from second page -</p>\n<p><code>start=25</code>\n<code>rows=25</code></p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"year","value":"2014"},{"key":"make","value":"ford"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"car_type","value":"used"},{"key":"start","value":"25"},{"key":"rows","value":"25"}],"variable":[]}},"response":[],"_postman_id":"c0e873c7-2566-4ed2-8edb-083d1e092533"}],"id":"698e134f-17a9-4e41-a5c2-33b0f17d32db","description":"<p><code>start</code> and <code>rows</code> parameters could be used to iterate through the results for a given search criteria</p>\n<p><code>start</code> parameter is the offset from which listings will be returned from the entire match set. <code>start</code> parameter starts with 0</p>\n<p><code>rows</code> parameter is the listings count you need to pull per page / per iteration. <code>page</code> parameter supports a max value of 50. Any value greater than 50 will be ignored and the API will then return only top 10 matching rows. </p>\n<p>Perhaps a better way to paginate/iterate would have been <code>page</code> and <code>per_page</code> parameters. We may implement this in the future releases. </p>\n","_postman_id":"698e134f-17a9-4e41-a5c2-33b0f17d32db"},{"name":"Similar Cars / More Like This","item":[{"name":"Similar Cars - Single input VIN","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var vins = \"19XFB2F5XFE054327\";","var taxonomyVins = vins.substring(0,8) + vins.substring(9,11);","","for(var i = 0; i < len; i++) {","    var vinOfResult = listings[i].vin;","    var taxonomyVinsOfResult = vinOfResult.substring(0,8) + vinOfResult.substring(9,11);","    tests[\"Verify all vins should have taxoomy vin: 19XFB2F5FE\"] = taxonomyVinsOfResult === taxonomyVins","}"]}}],"id":"1794f357-ef37-4bad-9e40-927548299816","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&vins=19XFB2F5XFE054327&latitude=34.05&longitude=-118.24&radius=100&car_type=used&start=0&rows=10","description":"<ul>\n<li>Cars matching the specifications for the given single VIN</li>\n<li>Please note all Car specs attributes (Year, Make, Model, Trim, Drivetrain, Transmission, Doors, Speeds, Engine specs) of the given VIN would be used to find similar cars</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"vins","value":"19XFB2F5XFE054327"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"100"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"10"}],"variable":[]}},"response":[],"_postman_id":"1794f357-ef37-4bad-9e40-927548299816"},{"name":"Similar Cars - Single input VIN with match option YMM","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var vins = \"19XFB2F5XFE054327\";","var taxonomyVins = vins.substring(0,8) + vins.substring(9,11);","","for(var i = 0; i < len; i++) {","    var vinOfResult = listings[i].vin;","    var taxonomyVinsOfResult = vinOfResult.substring(0,8) + vinOfResult.substring(9,11);","    tests[\"Verify all vins should have taxoomy vin: 19XFB2F5FE\"] = taxonomyVinsOfResult === taxonomyVins","}"]}}],"id":"5b9d8772-29bf-448c-8c65-2919389013fd","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&vins=19XFB2F5XFE054327&latitude=34.05&longitude=-118.24&radius=100&car_type=used&start=0&rows=10&match=year,make,model","description":"<p>-If you would like to match similar cars only on Year, Make, Model attributes for a given VIN (and not on all Specs attributes) then you could use the <code>match</code> parameter to specify the matching option </p>\n<ul>\n<li>To match on Year, Make, Model use the following parameter set</li>\n</ul>\n<p><code>vin=&lt;your VIN</code>\n<code>match=year,make,model</code></p>\n<ul>\n<li>To match on Year, Make, Model and Trim use the following parameter set</li>\n</ul>\n<p><code>vin=&lt;your VIN&gt;</code>\n<code>match=year,make,model,trim</code></p>\n<p>To re-iterate, the match option is provided to filter cars\nby only the car specs attributes specified in the <code>match</code> paramter to account for differences in reference value sets between the VIN decoders at your and Marketchecks end.</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"vins","value":"19XFB2F5XFE054327"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"100"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"10"},{"key":"match","value":"year,make,model"}],"variable":[]}},"response":[],"_postman_id":"5b9d8772-29bf-448c-8c65-2919389013fd"},{"name":"Similar Cars - Multiple input VINs","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var vins = \"19XFB2F5XFE054327\";","var taxonomyVins = vins.substring(0,8) + vins.substring(9,11);","","for(var i = 0; i < len; i++) {","    var vinOfResult = listings[i].vin;","    var taxonomyVinsOfResult = vinOfResult.substring(0,8) + vinOfResult.substring(9,11);","    tests[\"Verify all vins should have taxoomy vin: 19XFB2F5FE\"] = taxonomyVinsOfResult === taxonomyVins","}"]}}],"id":"f8fc1ba3-f812-4886-b185-537225787249","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&vins=19XFB2F5XFE054327,1VWBH7A31CC030563&latitude=34.05&longitude=-118.24&radius=100&car_type=used&start=0&rows=10","description":"<ul>\n<li>Cars matching the specifications for the given vins</li>\n<li>Please note all Car specs attributes (Year, Make, Model, Trim, Drivetrain, Transmission, Doors, Speeds, Engine specs) of all VINs would be used to find similar cars</li>\n<li>In this case, the VINs in the example refer to 2015 Honda Civic Sedan LX and 2012 Volkswagen Passat 2.5L SE and cars matching the specs for these would be returned in the API call response</li>\n<li>The <code>match</code> option as described above is also available when multiple VINs are passed in the <code>vins</code> parameter</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"vins","value":"19XFB2F5XFE054327,1VWBH7A31CC030563"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"100"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"10"}],"variable":[]}},"response":[],"_postman_id":"f8fc1ba3-f812-4886-b185-537225787249"},{"name":"Similar Cars - Taxonomy VIN (Single or Multiple)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var taxonomyVins = [\"5J6RM4H5CL\", \"1VWBH7A3CC\"];","","for (var i = 0; i < len; i++) {","    var vinOfResult = listings[i].vin;","    var taxonomyVinsOfResult = vinOfResult.substring(0,8) + vinOfResult.substring(9,11);","    var flag = 0;","    for (var j = 0; j < taxonomyVins.length; j++) {","        if (taxonomyVinsOfResult == taxonomyVins[j]) {","            flag = 1;","        }","    }","    tests[\"Verify all vins should have taxoomy vin: \" + taxonomyVins] = flag === 1","}"]}}],"id":"0af922f8-0e12-4882-9e87-25b30645a1d8","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&taxonomy_vins=5J6RM4H5CL,1VWBH7A3CC&latitude=34.05&longitude=-118.24&radius=100&car_type=used&start=0&rows=10","description":"<p>Cars matching the specifications for the given list of taxonomy vins</p>\n<p>A taxonomy vin is a 10 letter string that reprsents a build from the Marketcheck's car specification / VIN Decoder database. Its a short version of the 17 letter VIN and it includes the first 8 and the 10th and 11th letter from a 17 letter VIN.</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"taxonomy_vins","value":"5J6RM4H5CL,1VWBH7A3CC"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"100"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"10"}],"variable":[]}},"response":[],"_postman_id":"0af922f8-0e12-4882-9e87-25b30645a1d8"},{"name":"Similar Cars - by VIN(s) / Taxonomy VIN(s)","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var vins = [\"5J6RM4H59CL070290\", \"19XFB2F5XFE054327\"];","var taxonomyVins = [\"5J6RM4H5CL\", \"1VWBH7A3CC\"];","","for(var i = 0; i < vins.length; i++) {","    var taxonomyVin = vins[i].substring(0,8) + vins[i].substring(9,11);","    taxonomyVins.push(taxonomyVin);","}","","for(var i = 0; i < len; i++) {","    var vinOfResult = listings[i].vin;","    var taxonomyVinsOfResult = vinOfResult.substring(0,8) + vinOfResult.substring(9,11);","    var flag = 0;","    for(var j = 0; j < taxonomyVins.length; j++) {","        if (taxonomyVinsOfResult == taxonomyVins[j]) {","            flag = 1;","        }","    }","","    tests[\"Verify all vins should have taxoomy vin: \" + taxonomyVins] = flag === 1","","}"]}}],"id":"fe20395d-cd9e-4254-9a1b-3410d5d17e5e","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&vins=5J6RM4H59CL070290,19XFB2F5XFE054327&taxonomy_vins=5J6RM4H5CL,1VWBH7A3CC&car_type=used&start=0&rows=10","description":"<p>Cars matching the specifications for the given list of vins and taxonomy vins together.</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"vins","value":"5J6RM4H59CL070290,19XFB2F5XFE054327"},{"key":"taxonomy_vins","value":"5J6RM4H5CL,1VWBH7A3CC"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"10"}],"variable":[]}},"response":[],"_postman_id":"fe20395d-cd9e-4254-9a1b-3410d5d17e5e"},{"name":"Similar Cars - by VIN(s) Near NY","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var vins = \"4S4BRCFC4A3375256\";","var taxonomyVins = vins.substring(0,8) + vins.substring(9,11);","","for(var i = 0; i < len; i++) {","    var vinOfResult = listings[i].vin;","    var taxonomyVinsOfResult = vinOfResult.substring(0,8) + vinOfResult.substring(9,11);","    tests[\"Verify all vins should have taxoomy vin: 19XFB2F5FE\"] = taxonomyVinsOfResult == taxonomyVins","    tests[\"Verify distance covered under radius is: 1000\"] = listings[i].dist <= 1000;","}"]}}],"id":"93d086ba-0302-4c1b-b710-604227a879de","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&latitude=40.759212&longitude=-73.984634&radius=100&car_type=used&vins=19XFB2F5XFE212648&start=0&rows=1000&sort_by=dist&sort_order=desc","description":"<p>Cars matching the specifications for the given list of VINs / Taxonomy VINs and around New York City</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"latitude","value":"40.759212"},{"key":"longitude","value":"-73.984634"},{"key":"radius","value":"100"},{"key":"car_type","value":"used"},{"key":"vins","value":"19XFB2F5XFE212648"},{"key":"start","value":"0"},{"key":"rows","value":"1000"},{"key":"sort_by","value":"dist"},{"key":"sort_order","value":"desc"}],"variable":[]}},"response":[],"_postman_id":"93d086ba-0302-4c1b-b710-604227a879de"},{"name":"Exact match - by VIN","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var vins = \"4S4BRCFC4A3375256\";","var taxonomyVins = vins.substring(0,8) + vins.substring(9,11);","","for(var i = 0; i < len; i++) {","    var vinOfResult = listings[i].vin;","    var taxonomyVinsOfResult = vinOfResult.substring(0,8) + vinOfResult.substring(9,11);","    tests[\"Verify all vins should have taxoomy vin: 19XFB2F5FE\"] = taxonomyVinsOfResult == taxonomyVins","    tests[\"Verify distance covered under radius is: 1000\"] = listings[i].dist <= 1000;","}"]}}],"id":"6a9abf38-02b6-490a-9d02-a58535110900","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&vin=19XFB2F5XFE212648","description":"<ul>\n<li>To fetch the latest listing for a VIN you could use the <code>vin</code> parameter. </li>\n<li>Only the latest active listing for the given VIN will be returned by the API. </li>\n<li>To pull a VIN listing from a dealers lot (where you know the Car exists) you could specify the <code>source</code> / <code>dealer_id</code> parameters in addition to the <code>vin</code> parameter and the API will return the listing published by the dealer for the VIN</li>\n<li>Please note this API may not return results if the VIN is not listed for sale right now.</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"vin","value":"19XFB2F5XFE212648"}],"variable":[]}},"response":[],"_postman_id":"6a9abf38-02b6-490a-9d02-a58535110900"},{"name":"Exact match - by VIN listed on a website","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var vins = \"4S4BRCFC4A3375256\";","var taxonomyVins = vins.substring(0,8) + vins.substring(9,11);","","for(var i = 0; i < len; i++) {","    var vinOfResult = listings[i].vin;","    var taxonomyVinsOfResult = vinOfResult.substring(0,8) + vinOfResult.substring(9,11);","    tests[\"Verify all vins should have taxoomy vin: 19XFB2F5FE\"] = taxonomyVinsOfResult == taxonomyVins","    tests[\"Verify distance covered under radius is: 1000\"] = listings[i].dist <= 1000;","}"]}}],"id":"721d94f2-6f76-43e1-b31e-5426ece9557c","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&vin=19XFB2F5XFE212648&source=www.sanleandrohonda.com","description":"<ul>\n<li>To pull a VIN listing from a dealers lot (where you know the car exists) you could specify the <code>source</code> / <code>dealer_id</code> parameters in addition to the <code>vin</code> parameter and the API will return the listing published by the dealer for the VIN</li>\n<li>Please note this API may not return results if the VIN is not listed for sale right now.</li>\n<li>A single VIN could have multiple listings across websites and providing the <code>source</code> / <code>dealer_id</code> allows you to select a specific listing published online by a specific dealer</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"vin","value":"19XFB2F5XFE212648"},{"key":"source","value":"www.sanleandrohonda.com"}],"variable":[]}},"response":[],"_postman_id":"721d94f2-6f76-43e1-b31e-5426ece9557c"},{"name":"Wildcard search on VIN","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","var vins = \"4S4BRCFC4A3375256\";","var taxonomyVins = vins.substring(0,8) + vins.substring(9,11);","","for(var i = 0; i < len; i++) {","    var vinOfResult = listings[i].vin;","    var taxonomyVinsOfResult = vinOfResult.substring(0,8) + vinOfResult.substring(9,11);","    tests[\"Verify all vins should have taxoomy vin: 19XFB2F5FE\"] = taxonomyVinsOfResult == taxonomyVins","    tests[\"Verify distance covered under radius is: 1000\"] = listings[i].dist <= 1000;","}"]}}],"id":"664840b3-7f54-4270-92a5-c8af9952e71e","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&vin=Z*&latitude=40.759212&longitude=-73.984634&radius=100","description":"<ul>\n<li>You could do a wildcard search on a VIN by passing in a parameter like <code>vin=Z*</code> will match all cars with a VIN that starts with the letter Z</li>\n<li>Only suffix wildcards are supported</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"vin","value":"Z*"},{"key":"latitude","value":"40.759212"},{"key":"longitude","value":"-73.984634"},{"key":"radius","value":"100"}],"variable":[]}},"response":[],"_postman_id":"664840b3-7f54-4270-92a5-c8af9952e71e"}],"id":"530aafe2-d4d1-44a5-9ab0-e2957fbdd62a","description":"<p>Similar cars could be fetched by using a VIN or a Squish VIN. </p>\n<p>The API uses all Car specs attributes for the VIN/Squish VIN and uses those to find matching cars around a given location.</p>\n<p>** The <code>match</code> parameter **\nFor a given VIN, you could also match cars based on Year, Make, Model (and optionally) Trim for the VIN. To filter on these attributes you could use the <code>match</code> parameter and pass it the fields list you prefer to match on.</p>\n<p>To filter out cars by Year, Make, Model, Trim is supported via the <code>year</code>, <code>make</code>, <code>model</code> and <code>trim</code> parameters of the Search API. But as the VIN Decoder you are using at your end and the one that Marketcheck uses internally may have potential mismatches (esp on the Trim field) then the expected search results would not come back if you pass these field values by referring to the VIN Decoder you use at your end. To make the Search API refer to Marketcheck's VIN Decoder and then perform an internal look up the <code>match</code> parameter could be used in tandom with <code>vin</code> / <code>vins</code> parameter</p>\n<p>** Future changes **</p>\n<ul>\n<li>Similar cars by feature set</li>\n</ul>\n","_postman_id":"530aafe2-d4d1-44a5-9ab0-e2957fbdd62a"},{"name":"FSBO / SIY Listings","item":[{"name":"Search for Private Party listings","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"91739064-9daa-4d2f-baf9-49429715b922","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&seller_type=fsbo&latitude=34.05&longitude=-118.24&radius=30&start=0&rows=10&car_type=used","description":"<ul>\n<li>Use <code>seller_type</code> attribute to filter private party / FSBO / SIY car listings</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"seller_type","value":"fsbo"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"30"},{"key":"start","value":"0"},{"key":"rows","value":"10"},{"key":"car_type","value":"used"}],"variable":[]}},"response":[],"_postman_id":"91739064-9daa-4d2f-baf9-49429715b922"}],"id":"aac31429-dc2f-4585-a1b3-725b6cecd2b6","_postman_id":"aac31429-dc2f-4585-a1b3-725b6cecd2b6","description":""},{"name":"Range Filtering","item":[{"name":"Range Filter by Price range","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"9872a674-244b-4b7e-90e7-5f89aa7421b6","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&year=2014&make=ford&latitude=34.05&longitude=-118.24&radius=100&car_type=used&start=0&rows=50&seller_type=dealer&price_range=10000-15000","description":"<p>Parameter to use <code>price_range</code></p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"year","value":"2014"},{"key":"make","value":"ford"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"100"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"50"},{"key":"seller_type","value":"dealer"},{"key":"price_range","value":"10000-15000"}],"variable":[]}},"response":[],"_postman_id":"9872a674-244b-4b7e-90e7-5f89aa7421b6"},{"name":"Range Filter by Miles range","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"534883b2-42f8-433b-aeac-109110411c0d","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&year=2014&make=ford&latitude=34.05&longitude=-118.24&radius=100&car_type=used&start=0&rows=50&seller_type=dealer&miles_range=3000-5000","description":"<p>Parameter to use <code>miles_range</code></p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"year","value":"2014"},{"key":"make","value":"ford"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"100"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"50"},{"key":"seller_type","value":"dealer"},{"key":"miles_range","value":"3000-5000"}],"variable":[]}},"response":[],"_postman_id":"534883b2-42f8-433b-aeac-109110411c0d"},{"name":"Range Filter by Days on Market range","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings;","","// const test_schema = {","//     \"type\": \"object\",","//     \"properties\": {","//         \"listings\": {","//             \"type\": \"array\",","//             \"items\": {","//                 \"type\": \"object\",","//                 \"properties\": {","//                     \"build\": {","//                         \"type\": \"object\",","//                         \"properties\": {","//                             \"year\": {\"type\": \"string\"},","//                             \"make\": {\"type\": \"string\"},","//                         },","//                         \"required\": [\"year\", \"make\"]","//                     }","                    ","//                 }","//             }","//         }","//     },","//     \"required\": [\"listings\"]","// };","","// tests[\"Valid schema\"] = tv4.validate(jsonData, test_schema);","","","for(var i = 0; i < len; i++) {","    tests[\"Verify year is: 2014\"] = listings[i].build.year === \"2014\";","    tests[\"Verify make is: Ford\"] = listings[i].build.make === \"Ford\";","}"]}}],"id":"5d781818-13a8-4d4c-8114-c55d3f9d69b8","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&year=2014&make=ford&latitude=34.05&longitude=-118.24&radius=100&car_type=used&start=0&rows=50&seller_type=dealer&dom_range=30-60","description":"<p>Parameter to use <code>dom_range</code></p>\n<p>In the example, the API would fetch all cars on the market for 30 to 60 days.</p>\n<p>You can apply this range filter on all 3 dom values we calculate <code>dom_range</code> for dom lifetime,<code>dom_180_range</code> for dom in last 180 days(6 months), <code>dom_active_range</code> for dom active(dom since listing is online this time)</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"year","value":"2014"},{"key":"make","value":"ford"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"100"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"50"},{"key":"seller_type","value":"dealer"},{"key":"dom_range","value":"30-60"}],"variable":[]}},"response":[],"_postman_id":"5d781818-13a8-4d4c-8114-c55d3f9d69b8"}],"id":"7d781504-9374-48b7-aaf8-51ecbb1de026","description":"<p>The Search API supports range filtering on following fields </p>\n<ul>\n<li><code>price</code></li>\n<li><code>miles</code></li>\n<li><code>dom</code> [Days on Market]</li>\n</ul>\n<p>The parameters to use in the API call for each of these respectively are </p>\n<ul>\n<li><code>price_range</code></li>\n<li><code>miles_range</code></li>\n<li><code>dom_range</code></li>\n</ul>\n<p>The value of the parameters must be an integer range of the form <code>min-max</code> e.g. <code>1000-10000</code> or <code>30-60</code></p>\n","_postman_id":"7d781504-9374-48b7-aaf8-51ecbb1de026"}],"id":"a2bae51f-555b-40b4-9591-21d11df7c8a8","description":"<p>The Search API supports comprehensive Search/Filter criteria across many fields as listed below - </p>\n<h3>Top level filters</h3>\n- car type (new / used / certified)\n- body type\n- body subtype\n- vehicle type\n- seller type (dealer / fsbo)\n\n<h3>Basic Matching</h3> \n- year, make, model, trim\n\n<h3>Matching on more car specs attributes</h3>\n- drivetrain\n- transmission\n- engine, engine type, engine measure, engine aspiration\n- fuel type\n- speeds\n- doors\n- cylinders\n\n<h3>Colors </h3>\n- exterior color\n- interior color\n\n<h3>Location</h3>\n- Geo Point and a radius (through latitude, longitute and radius parameters)\n- City, State, Zip (Exact match)\n\n<h3>Dealer Listings</h3>\n- Marketcheck Dealer ID (To pull an active listings set for a particular dealer)\n- source / website domain (To pull active inventory listed on a particular dealer website domain)\n\n<h3>Similar Cars</h3>\n- vin / vins - Search cars matching the given VIN/s specifications\n- taxonomy vin - Search cars matching the given Squish / Taxnonmy VIN specifications\n- ymmt - Search cars matching a single or multiple year, make, model, trim combinations\n\n<h3>Range filters</h3>\n- Filter by given value range on Price, Miles, Days on Market fields\n\n<h3>Search API Defaults</h3>\n- By default the API returns listings from US. To explicitly specify the country to fetch listings for please use the `country` parameter\n- Similar cars for a given VIN are pulled on exact matches of all car specs attributes of the given VIN, to make it match on `year, make, model` or `year, make, model, trim` combinations please use the `match` parameter along with `vin / vins` parameter described below in Similar Cars / More Like This section\n- Many a times you'd find same car being advertised by a few dealers who are part of a dealership group / network. Marketcheck would have all these listings in its database, but the API would return only the first best match for your search / filter and sort criteria. Trying to find the best match at search time makes the API a touch slow to execute, but it gets faster with more search/filter criteria applied. The smaller the API result sets the faster it gets with this feature.\n- If no sorting options are specified and a location is specified in the API call then the results are sorted by distance from the given location. Nearest cars are shown first. If the location is not specified then no specific sort order is applied over the results returned by the API.\n- The distance and miles unit is Miles","_postman_id":"a2bae51f-555b-40b4-9591-21d11df7c8a8"},{"name":"Facets","item":[{"name":"Facets for Year, Make, Model, Trim","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Verify facets has: year\"] = responseBody.has(\"year\")","tests[\"Verify facets has: make\"] = responseBody.has(\"make\")",""]}}],"id":"9261e5f7-89ad-4290-8a40-ff51f687d603","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&latitude=34.05&longitude=-118.24&radius=10&car_type=used&start=0&rows=0&facets=year,make,model,trim","description":"<p>An example to fetch facets for a search criteria by Year, Make, Model, Trim fields</p>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"10"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"0"},{"key":"facets","value":"year,make,model,trim"}],"variable":[]}},"response":[],"_postman_id":"9261e5f7-89ad-4290-8a40-ff51f687d603"},{"name":"Facets with limit, offset","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var len = jsonData.listings.length;","var listings = jsonData.listings","var years = jsonData.facets.year;","var make = jsonData.facets.make;","","tests[\"Verify facets has: year\"] = responseBody.has(\"year\")","tests[\"Verify facets has: make\"] = responseBody.has(\"make\")","tests[\"Verify facets has year offset: 60\"] = years.length <= 60","tests[\"Verify facets has make offset: 60\"] = years.length <= 60"]}}],"id":"8ace9a32-8d68-4f80-9e80-65fe35eb2cde","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&latitude=34.05&longitude=-118.24&radius=100&car_type=used&start=0&rows=0&facets=make|0|60,year|0|30","description":"<ul>\n<li><p>To fetch more than top 20 terms you could pass in a offset (start) and a limit (count of terms to return)</p>\n</li>\n<li><p>The factes parameter format changes to the following when offset and limit is to be used \n <code>facets=field1|offset|limit,field2|offset|limit</code></p>\n</li>\n<li><p>e.g. To fetch top 60 makes and to 30 year values you could use the following parameter value\n <code>facets=make|0|60,year|0|30</code></p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"100"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"0"},{"key":"facets","value":"make|0|60,year|0|30"}],"variable":[]}},"response":[],"_postman_id":"8ace9a32-8d68-4f80-9e80-65fe35eb2cde"},{"name":"Inventory counts by city for a particular state","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Verify facets has: state\"] = responseBody.has(\"state\")"]}}],"id":"2a5a11de-505a-446b-b1a9-d6fdc8c316d7","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&car_type=used&start=0&rows=0&facets=city|0|25&state=CA","description":"<ul>\n<li>Please note the results will take a little while to appear if the state has a lot of listings, say &gt; 500k</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"0"},{"key":"facets","value":"city|0|25"},{"key":"state","value":"CA"}],"variable":[]}},"response":[],"_postman_id":"2a5a11de-505a-446b-b1a9-d6fdc8c316d7"},{"name":"Top 10 dealers in a city by used inventory count","event":[{"listen":"test","script":{"type":"text/javascript","exec":["tests[\"Verify facets has: state\"] = responseBody.has(\"state\")"]}}],"id":"72bd40bd-36db-423b-8a4e-60ccb6ed33f7","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&car_type=used&start=0&rows=0&facets=seller_name_o|0|10&city=Los Angeles","description":"<ul>\n<li>Pass in a <code>city</code> filter parameter</li>\n<li>Obtain facets for the field <code>seller_name</code> by passing in a limit of 10</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"car_type","value":"used"},{"key":"start","value":"0"},{"key":"rows","value":"0"},{"key":"facets","value":"seller_name_o|0|10"},{"key":"city","value":"Los Angeles"},{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[],"_postman_id":"72bd40bd-36db-423b-8a4e-60ccb6ed33f7"}],"id":"b1c1bc02-6f4a-4720-9a44-f1df48605347","description":"<p>The Search API supports facets / counts by unqiue terms for the following fields </p>\n<ul>\n<li>year</li>\n<li>make</li>\n<li>model</li>\n<li>trim (The VIN decoded trim)</li>\n<li>trim_o (The web scraped trim version)</li>\n<li>trim_r (The reconciled/corrected trim version by using trim and trim_o values for the listing)</li>\n<li>drivetrain</li>\n<li>transmission</li>\n<li>speeds</li>\n<li>body_type</li>\n<li>body_subtype</li>\n<li>vehicle_type</li>\n<li>engine</li>\n<li>engine_type</li>\n<li>engine_aspiration</li>\n<li>engine_block</li>\n<li>source (The website domains)</li>\n<li>seller_name_o (The seller name with all cases retaine)</li>\n<li>seller_name (The seller name in lower case)</li>\n<li>dealer_id (The Marketcheck dealer ID)</li>\n<li>city</li>\n<li>state</li>\n<li>interior_color</li>\n<li>exterior_color</li>\n</ul>\n<p><strong>Things to note</strong></p>\n<ul>\n<li>Facets response could be used to build drill downs on the UI</li>\n<li>You could request facets for a search criteria across multiple fields in the same API call.</li>\n<li>You could club Facets together with regular results from the Search API</li>\n<li>By default the facets response return top 20 terms by count for any field, you can pass in an offset and limit to the facets field request to fetch more terms or iterate through all facets/terms for a field.</li>\n</ul>\n","_postman_id":"b1c1bc02-6f4a-4720-9a44-f1df48605347"},{"name":"Stats","item":[{"name":"Search - with Price Stats","id":"bd846f8a-6ea8-42ef-899e-19a76a27a90a","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&make=ford&car_type=used&start=1&rows=0&stats=price&latitude=34.05&longitude=-118.24&radius=100","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"start","value":"1"},{"key":"rows","value":"0"},{"key":"stats","value":"price"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"100"}],"variable":[]}},"response":[],"_postman_id":"bd846f8a-6ea8-42ef-899e-19a76a27a90a"},{"name":"Search - with Price and Miles Stats / Averages","id":"5f37fb87-5a49-43b6-a4ab-957e3bbf06be","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&make=ford&car_type=used&start=1&rows=0&stats=price,miles&latitude=34.05&longitude=-118.24&radius=100","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"start","value":"1"},{"key":"rows","value":"0"},{"key":"stats","value":"price,miles"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"100"}],"variable":[]}},"response":[],"_postman_id":"5f37fb87-5a49-43b6-a4ab-957e3bbf06be"},{"name":"Get average days on market for a search criteria","id":"34e5f480-ac6b-44b5-8e18-d5e3812aa797","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&make=ford&car_type=used&start=1&rows=0&stats=dom","description":"<ul>\n<li>The example fetches Stats on DOM field for Used Ford cars in US</li>\n<li>The <code>mean</code> is the averags days on market a Ford cars remains on the market in US</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"start","value":"1"},{"key":"rows","value":"0"},{"key":"stats","value":"dom"}],"variable":[]}},"response":[],"_postman_id":"34e5f480-ac6b-44b5-8e18-d5e3812aa797"},{"name":"Get average days on market for a car in a given locality","id":"b5fa22eb-91f2-47b1-9a55-ec36a1c3abd3","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/search?api_key={your_api_key}&make=ford&car_type=used&start=1&rows=0&stats=dom&latitude=34.05&longitude=-118.24&radius=100","description":"<ul>\n<li>Pass in <code>latitude</code>, <code>longitude</code> and <code>radius</code> to define your region for the search</li>\n<li>Use the <code>stats=dom</code> option to get stats on Days on Market for the search criteria</li>\n</ul>\n","urlObject":{"protocol":"http","path":["search"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"make","value":"ford"},{"key":"car_type","value":"used"},{"key":"start","value":"1"},{"key":"rows","value":"0"},{"key":"stats","value":"dom"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"100"}],"variable":[]}},"response":[],"_postman_id":"b5fa22eb-91f2-47b1-9a55-ec36a1c3abd3"}],"id":"4dbb7e3b-71a8-4663-9a86-a1263b0156ff","description":"<p>The Search API could calculate various statistics for the following fields </p>\n<ul>\n<li>price</li>\n<li>miles</li>\n<li>dom (Days on Market)</li>\n</ul>\n<p><strong>Stats Response</strong> </p>\n<ul>\n<li>\"min\": Minimum value for the field</li>\n<li>\"max\": Maximum value for the field</li>\n<li>\"count\": Count of cars with the value</li>\n<li>\"missing\": Count of cars missing the value</li>\n<li>\"sum\": Sum of values from all car listings where the field is available</li>\n<li>\"mean\": The average (v1 + v2 …​. + vN)/N</li>\n<li>\"stddev\": Standard deviation, measuring how widely spread the values in the data set are</li>\n<li>\"sum_of_squares\": Sum of all values squared (a by product of computing stddev)</li>\n<li>\"median\": The Median is the \"middle\" of a sorted list of numbers</li>\n</ul>\n<p>For more info on the response fields please refer to - <a href=\"https://lucene.apache.org/solr/guide/6_6/the-stats-component.html\">https://lucene.apache.org/solr/guide/6_6/the-stats-component.html</a></p>\n<p>Please note all values are returned realtime based on the data that is contonuously updating at the back in the database.</p>\n<p>Just like Facets, Stats could be included in the regular Search API calls too.</p>\n","_postman_id":"4dbb7e3b-71a8-4663-9a86-a1263b0156ff"}],"id":"ce5e872b-7cde-448f-a0b1-4bb23ac7f4e7","description":"<p>Marketcheck's API has a comprehensive Search API that allows cars to be filtered on many car attributes. The Search API provides the following major features </p>\n<h3>Search:</h3> \n- Search active cars matching your search criteria\n\n<h3>Stats:</h3>\n- Get Local and National market averages for Price, Miles, Days on Market fields for listings matching your search criteria\n\n<h3>Facets:</h3>\n- Build UI drill downs using the Facets feature of the Search API\n- You could use the Facets in various reports to show the inventory levels across multiple dimensions\n\n<h3>Location Aware:</h3>\n- The Search API could perform all of the above features for a geo-point you provide and a radius around it","_postman_id":"ce5e872b-7cde-448f-a0b1-4bb23ac7f4e7"},{"name":"Listing Details API / VDP API","item":[{"name":"Get Listing","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var listingId = \"ab2281d2-05fc-4d61-aa32-3fab037501c3\";","tests[\"Verify listing id is: \" + listingId] = jsonData.id === listingId"]}}],"id":"1c2dea8c-0c78-4e84-a287-c76c32d8a10e","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/listing/ab2281d2-05fc-4d61-aa32-3fab037501c3?api_key={your_api_key}","description":"<p>Get all details from the Marketcheck database for a particular for sale listing.</p>\n","urlObject":{"protocol":"http","path":["listing","ab2281d2-05fc-4d61-aa32-3fab037501c3"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"}],"variable":[]}},"response":[],"_postman_id":"1c2dea8c-0c78-4e84-a287-c76c32d8a10e"},{"name":"Get Listing Extra Attributes","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var listingId = \"03b65568-be2e-442e-9125-47beda77ce7e\";","tests[\"Verify listing id is: \" + listingId] = jsonData.id === listingId","tests[\"Verify: features\"] = responseBody.has(\"features\")","tests[\"Verify: options\"] = responseBody.has(\"options\")",""]}}],"id":"7df18ae1-b37c-46d1-aa7e-1447c34d5d22","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/listing/03b65568-be2e-442e-9125-47beda77ce7e/extra?api_key={your_api_key}","description":"<p>Marketcheck keeps history of all online listings and gives you the ability to query the historical listings for a VIN.</p>\n<p>The data goes back to Jan 2013, with over 1.2 billion listings stored in the database.</p>\n","urlObject":{"protocol":"http","path":["listing","03b65568-be2e-442e-9125-47beda77ce7e","extra"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"}],"variable":[]}},"response":[],"_postman_id":"7df18ae1-b37c-46d1-aa7e-1447c34d5d22"},{"name":"Get Listing Media Attributes","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var listingId = \"03b65568-be2e-442e-9125-47beda77ce7e\";","tests[\"Verify listing id is: \" + listingId] = jsonData.id === listingId","tests[\"Verify: photo_links\"] = responseBody.has(\"photo_links\")"]}}],"id":"584447b3-5f58-4a0e-a5dd-b0e9c6fd4b35","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/listing/03b65568-be2e-442e-9125-47beda77ce7e/media?api_key={your_api_key}","urlObject":{"protocol":"http","path":["listing","03b65568-be2e-442e-9125-47beda77ce7e","media"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"}],"variable":[]}},"response":[],"_postman_id":"584447b3-5f58-4a0e-a5dd-b0e9c6fd4b35"}],"id":"75e633af-5dc4-4aac-acc8-3e2aefb584ad","description":"<p>Once a Search is performed the next logical step would be to obtain more details about the listing like the car photos, installed options list, features, seller comments etc. These could be obtained using the Listing API by passing in a unique Marketcheck Listing ID to the API that you obtain from the Search API responses. </p>\n<p>This API could be used to build Vehicle Details Pages (VDPs) on your website / mobile app.</p>\n<p>There are 3 variants of the VDP API - </p>\n<ol>\n<li>Get all details for a listing <code>/listing/listing_id</code></li>\n<li>Get only options, features, seller comments for a listing - <code>/listing/listing_id/extra</code></li>\n<li>Get only Media (car photos, videos (if available) for a listing - <code>/listing/listing_id/media</code></li>\n</ol>\n","_postman_id":"75e633af-5dc4-4aac-acc8-3e2aefb584ad"},{"name":"Online Listing History API","item":[{"name":"History - Get Car / VIN History","id":"3b940ab3-3099-417d-99c7-20ad4c4ed554","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/history/YV4CN982171397177?api_key={your_api_key}","urlObject":{"protocol":"http","path":["history","YV4CN982171397177"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"}],"variable":[]}},"response":[],"_postman_id":"3b940ab3-3099-417d-99c7-20ad4c4ed554"},{"name":"History with All fields","id":"c53af874-b580-4ec3-b9dc-c71dce6de5a3","request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/history/YV4CN982171397177?api_key={your_api_key}&full=true","urlObject":{"protocol":"http","path":["history","YV4CN982171397177"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"full","value":"true"}],"variable":[]}},"response":[],"_postman_id":"c53af874-b580-4ec3-b9dc-c71dce6de5a3"},{"name":"History with fields list","id":"1a44cad9-6ce0-4dae-955e-6f54212f9bcc","request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/history/5TDZK3DC6DS350288?api_key={your_api_key}&fields=seller_type,dealer_id,seller_name,seller_phone,seller_email,vdp_url,source,last_seen_at,price,miles,city,state,zip,scraped_at","description":"<p>You can pass in list of fields to select for history for any VIN</p>\n","urlObject":{"protocol":"http","path":["history","5TDZK3DC6DS350288"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"fields","value":"seller_type,dealer_id,seller_name,seller_phone,seller_email,vdp_url,source,last_seen_at,price,miles,city,state,zip,scraped_at"}],"variable":[]}},"response":[],"_postman_id":"1a44cad9-6ce0-4dae-955e-6f54212f9bcc"}],"id":"60b95600-0e22-4c12-bea5-1c658a485238","description":"<p>Pull online listing history for a VIN from Marketcheck's historical database that hosts data extracted from over 900M VDP pages since Jan 2013 till date and growing at a rate of about 30-40M unique listings a month from all over the web.</p>\n","_postman_id":"60b95600-0e22-4c12-bea5-1c658a485238"},{"name":"Market API","item":[{"name":"Market Days Supply (MDS)","item":[{"name":"MDS with exact and debug","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","tests[\"year is present\"] = responseBody.has(\"year\");","tests[\"make is present\"] = responseBody.has(\"make\");","tests[\"model is present\"] = responseBody.has(\"model\");","tests[\"trim is present\"] = responseBody.has(\"trim\");","tests[\"verify mds is not null\"] = responseBody.mds !== null;","tests[\"verify mds is not zero\"] = responseBody.mds !== 0;","tests[\"verify total_active_cars_for_ymmt is not null\"] = responseBody.total_active_cars_for_ymmt !== null;","tests[\"verify total_active_cars_for_ymmt is not zero\"] = responseBody.total_active_cars_for_ymmt !== 0;","tests[\"verify total_cars_sold_in_last_45_days is not null\"] = responseBody.total_cars_sold_in_last_45_days !== null;","tests[\"verify total_cars_sold_in_last_45_days is not zero\"] = responseBody.total_cars_sold_in_last_45_days !== 0;","","var per_day_sold_rate = (jsonData.total_cars_sold_in_last_45_days / 45);","var mds = Math.round(jsonData.total_active_cars_for_ymmt / per_day_sold_rate)","tests[\"verify mds\"] = jsonData.mds === mds",""]}}],"id":"907b23c5-e624-472e-8381-50a4b8f8e895","request":{"method":"GET","header":[{"key":"host","value":"marketcheck-prod.apigee.net"},{"key":"","value":""}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/mds?api_key={your_api_key}&vin=2T2BK1BA1DC181616&latitude=37.998&longitude=-84.522&radius=1000&exact=true&debug=1","description":"<p>To filter active cars based on Year, Make, Model and Trim and also consider the same cars sold count from last 45 days you'd need to pass in the parameter <code>exact=true</code> </p>\n<p>Without the <code>exact</code> parameter mentioned in the API, it will match similar cars only on Year, Make, Model values for a given VIN.</p>\n<p>The <code>debug</code> parameter is used to print the component values that go in the MDS calculation formula. It prints the Active cars count and the past 45 days sold count values the API uses to arrive at the final MDS value.</p>\n","urlObject":{"protocol":"http","path":["mds"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"vin","value":"2T2BK1BA1DC181616"},{"key":"latitude","value":"37.998"},{"key":"longitude","value":"-84.522"},{"key":"radius","value":"1000"},{"key":"exact","value":"true"},{"key":"debug","value":"1"}],"variable":[]}},"response":[],"_postman_id":"907b23c5-e624-472e-8381-50a4b8f8e895"},{"name":"MDS with debug and without exact","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","tests[\"year is present\"] = responseBody.has(\"year\");","tests[\"make is present\"] = responseBody.has(\"make\");","tests[\"model is present\"] = responseBody.has(\"model\");","tests[\"verify mds is not null\"] = responseBody.mds !== null;","tests[\"verify mds is not zero\"] = responseBody.mds !== 0;","tests[\"verify total_active_cars_for_ymmt is not null\"] = responseBody.total_active_cars_for_ymmt !== null;","tests[\"verify total_active_cars_for_ymmt is not zero\"] = responseBody.total_active_cars_for_ymmt !== 0;","tests[\"verify total_cars_sold_in_last_45_days is not null\"] = responseBody.total_cars_sold_in_last_45_days !== null;","tests[\"verify total_cars_sold_in_last_45_days is not zero\"] = responseBody.total_cars_sold_in_last_45_days !== 0;","","var per_day_sold_rate = (jsonData.total_cars_sold_in_last_45_days / 45);","var mds = Math.round(jsonData.total_active_cars_for_ymmt / per_day_sold_rate)","tests[\"verify mds\"] = jsonData.mds === mds",""]}}],"id":"92db36b6-e378-4778-a7c6-7251d88fa212","request":{"method":"GET","header":[{"key":"host","value":"marketcheck-prod.apigee.net"},{"key":"","value":""}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/mds?api_key={your_api_key}&vin=2T2BK1BA1DC181616&latitude=37.998&longitude=-84.522&radius=1000&debug=1","urlObject":{"protocol":"http","path":["mds"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"vin","value":"2T2BK1BA1DC181616"},{"key":"latitude","value":"37.998"},{"key":"longitude","value":"-84.522"},{"key":"radius","value":"1000"},{"key":"debug","value":"1"}],"variable":[]}},"response":[],"_postman_id":"92db36b6-e378-4778-a7c6-7251d88fa212"},{"name":"MDS without exact and debug","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","tests[\"verify mds is not null\"] = responseBody.mds !== null;","tests[\"verify mds is not zero\"] = responseBody.mds !== 0;","tests[\"verify total_active_cars_for_ymmt is not null\"] = responseBody.total_active_cars_for_ymmt !== null;","tests[\"verify total_active_cars_for_ymmt is not zero\"] = responseBody.total_active_cars_for_ymmt !== 0;","tests[\"verify total_cars_sold_in_last_45_days is not null\"] = responseBody.total_cars_sold_in_last_45_days !== null;","tests[\"verify total_cars_sold_in_last_45_days is not zero\"] = responseBody.total_cars_sold_in_last_45_days !== 0;","","var per_day_sold_rate = (jsonData.total_cars_sold_in_last_45_days / 45);","var mds = Math.round(jsonData.total_active_cars_for_ymmt / per_day_sold_rate)","tests[\"verify mds\"] = jsonData.mds === mds",""]}}],"id":"f2186b6c-7639-4b2e-b48d-cad993a8d8a2","request":{"method":"GET","header":[{"key":"host","value":"marketcheck-prod.apigee.net"},{"key":"","value":""}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/mds?api_key={your_api_key}&vin=2T2BK1BA1DC181616&latitude=37.998&longitude=-84.522&radius=1000","description":"<p>Without the <code>exact=true</code> parameter the API will match similar cars, active and last 45 days sold, based only on Year, Make and Model values for a given VIN.</p>\n","urlObject":{"protocol":"http","path":["mds"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"vin","value":"2T2BK1BA1DC181616"},{"key":"latitude","value":"37.998"},{"key":"longitude","value":"-84.522"},{"key":"radius","value":"1000"}],"variable":[]}},"response":[],"_postman_id":"f2186b6c-7639-4b2e-b48d-cad993a8d8a2"},{"name":"MDS with all sold vins","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","tests[\"verify mds is not null\"] = responseBody.mds !== null;","tests[\"verify mds is not zero\"] = responseBody.mds !== 0;","tests[\"verify total_active_cars_for_ymmt is not null\"] = responseBody.total_active_cars_for_ymmt !== null;","tests[\"verify total_active_cars_for_ymmt is not zero\"] = responseBody.total_active_cars_for_ymmt !== 0;","tests[\"verify total_cars_sold_in_last_45_days is not null\"] = responseBody.total_cars_sold_in_last_45_days !== null;","tests[\"verify total_cars_sold_in_last_45_days is not zero\"] = responseBody.total_cars_sold_in_last_45_days !== 0;","","var per_day_sold_rate = (jsonData.total_cars_sold_in_last_45_days / 45);","var mds = Math.round(jsonData.total_active_cars_for_ymmt / per_day_sold_rate)","tests[\"verify mds\"] = jsonData.mds === mds",""]}}],"id":"c4aee6ac-42b2-492f-9c9d-d5c1e37aaba9","request":{"method":"GET","header":[{"key":"host","value":"marketcheck-prod.apigee.net"},{"key":"","value":""}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/mds?api_key={your_api_key}&vin=2T2BK1BA1DC181616&latitude=37.998&longitude=-84.522&radius=1000&include_sold=true","description":"<p>Using paramter <code>include_sold=true</code> this returns all vins sold in last 45 days. The maximum limit on sold vins is 10K.</p>\n","urlObject":{"protocol":"http","path":["mds"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"vin","value":"2T2BK1BA1DC181616"},{"key":"latitude","value":"37.998"},{"key":"longitude","value":"-84.522"},{"key":"radius","value":"1000"},{"key":"include_sold","value":"true"}],"variable":[]}},"response":[],"_postman_id":"c4aee6ac-42b2-492f-9c9d-d5c1e37aaba9"}],"id":"1cfeda7a-1b8e-4ad2-91b0-341d59c6d7db","description":"<p>The API calculates and returns Market Days Supply of similar cars identified by the input VIN. Also returns all vins that were sold in last 45 days.</p>\n<p>The formula implemented to calculate Market Days Supply is as follows, </p>\n<p>MDS = (Active inventory count) / (Past 45 days sale count)</p>\n<p>The similar cars for a given could be matched by two criteria - </p>\n<ul>\n<li>Year, Make, Model</li>\n<li>Year, Make, Model, Trim</li>\n</ul>\n","_postman_id":"1cfeda7a-1b8e-4ad2-91b0-341d59c6d7db"},{"name":"Trends","id":"0c433625-d7d3-4ef4-ab1b-31714e479a40","request":{"method":"GET","header":[{"key":"host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/trends?api_key={your_api_key}&vin=1FMCU9GXXEUA10071&car_type=used","description":"<p>Get Monthwise averages for cars that match the exact specifications of the input VIN.</p>\n<p>The response includes monthwise averages for price, miles, days on market values and the average number of units that were listed for sale in the month.</p>\n<p>You could use this data to plot trendlines across these fields.</p>\n","urlObject":{"protocol":"http","path":["trends"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"vin","value":"1FMCU9GXXEUA10071"},{"key":"car_type","value":"used"}],"variable":[]}},"response":[],"_postman_id":"0c433625-d7d3-4ef4-ab1b-31714e479a40"}],"id":"addc164f-d8f0-4b96-a3eb-a39672a9f3bd","description":"<p>Explore the live market with various analytical APIs we have put up so far. </p>\n<ul>\n<li>Market Days Supply - For any car find out the current supply level based on last 45 days sale </li>\n<li>Trends - Get Price, Miles and Days on Market moving averages for past months, going back to Jan 2015</li>\n<li>Plots - Plot Price x Miles scatterplot</li>\n</ul>\n","_postman_id":"addc164f-d8f0-4b96-a3eb-a39672a9f3bd"},{"name":"Dealer API","item":[{"name":"Dealer by id","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var dealerId = jsonData.id","tests[\"Verify dealer id is: 1006292\"] = dealerId === \"1006292\";",""]}}],"id":"5977afdf-8740-401a-9fd5-e926c983aa52","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/dealer/1006292?api_key={your_api_key}","urlObject":{"protocol":"http","path":["dealer","1006292"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"}],"variable":[]}},"response":[],"_postman_id":"5977afdf-8740-401a-9fd5-e926c983aa52"},{"name":"Dealers - Near Rochester, NY","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var dealers = jsonData.dealers;","","for(var i = 0; i < dealers.length; i++) {","    tests[\"Verify dealers should cover under radius: 100\"] = dealers[i].distance <= \"100\";","}","",""]}}],"id":"6668c9d4-b645-4f18-b539-b0ab4fcdaac5","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/dealers?api_key={your_api_key}&latitude=43.1856307&longitude=-77.7565881&radius=100&start=100&rows=20&sort_by=dist&sort_order=desc","urlObject":{"protocol":"http","path":["dealers"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"latitude","value":"43.1856307"},{"key":"longitude","value":"-77.7565881"},{"key":"radius","value":"100"},{"key":"start","value":"100"},{"key":"rows","value":"20"},{"key":"sort_by","value":"dist"},{"key":"sort_order","value":"desc"}],"variable":[]}},"response":[],"_postman_id":"6668c9d4-b645-4f18-b539-b0ab4fcdaac5"},{"name":"Dealers - Near Los Angeles","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var dealers = jsonData.dealers;","","for(var i = 0; i < dealers.length; i++) {","    tests[\"Verify dealers should cover under radius: 100\"] = dealers[i].distance <= \"100\";","}","",""]}}],"id":"6d9544c0-0d03-4a1f-8873-9bbc3874df53","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/dealers?api_key={your_api_key}&latitude=34.05&longitude=-118.24&radius=100&start=100&rows=20&sort_by=dist&sort_order=desc","urlObject":{"protocol":"http","path":["dealers"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"latitude","value":"34.05"},{"key":"longitude","value":"-118.24"},{"key":"radius","value":"100"},{"key":"start","value":"100"},{"key":"rows","value":"20"},{"key":"sort_by","value":"dist"},{"key":"sort_order","value":"desc"}],"variable":[]}},"response":[],"_postman_id":"6d9544c0-0d03-4a1f-8873-9bbc3874df53"},{"name":"Dealers - Near Denver, CO 200 miles","event":[{"listen":"test","script":{"type":"text/javascript","exec":["var jsonData = JSON.parse(responseBody);","var dealers = jsonData.dealers;","","for(var i = 0; i < dealers.length; i++) {","    tests[\"Verify dealers should cover under radius: 200\"] = dealers[i].distance <= \"200\";","}","",""]}}],"id":"6b0f7759-35d5-4fc9-97ce-46f023f91a66","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/dealers?api_key={your_api_key}&latitude=39.73&longitude=-104.99&radius=200&rows=20&sort_by=dist&sort_order=desc","urlObject":{"protocol":"http","path":["dealers"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"},{"key":"latitude","value":"39.73"},{"key":"longitude","value":"-104.99"},{"key":"radius","value":"200"},{"key":"rows","value":"20"},{"key":"sort_by","value":"dist"},{"key":"sort_order","value":"desc"}],"variable":[]}},"response":[],"_postman_id":"6b0f7759-35d5-4fc9-97ce-46f023f91a66"}],"id":"1e413c35-78d8-4c40-b442-98e0159d9816","description":"<p>Find dealers in USA &amp; Canada around a given geo point. </p>\n","_postman_id":"1e413c35-78d8-4c40-b442-98e0159d9816"},{"name":"VIN Decoder API","item":[{"name":"VIN Decoder ","id":"ba81146f-b024-431e-a47d-3b86532af8b6","request":{"method":"GET","header":[{"key":"Host","value":"marketcheck-prod.apigee.net"}],"body":{"mode":"raw","raw":""},"url":"http://api.marketcheck.com/v1/vin/1FAHP3F28CL148530/specs?api_key={your_api_key}","urlObject":{"protocol":"http","path":["vin","1FAHP3F28CL148530","specs"],"host":["api.marketcheck.com/v1"],"query":[{"key":"api_key","value":"{your_api_key}"}],"variable":[]}},"response":[],"_postman_id":"ba81146f-b024-431e-a47d-3b86532af8b6"}],"id":"dd485ee0-4fe9-408b-9226-f6ccd7bd4fdb","description":"<p>Decode any VIN and get the specifications for it. The VIN decoder data is sources from VinAudit.com and is refreshed daily and new cars make it in to the decoder as they come in market. </p>\n","_postman_id":"dd485ee0-4fe9-408b-9226-f6ccd7bd4fdb"}]}