LemonFree API 2.0 Documentation - Makes Feed

Last Updated: January 21, 2014

Overview

The Makes feed provides access to all the vehicle makes currently available on LemonFree.

Base URL

http://api.lemonfree.com/v2/makes

Parameters

Parameter Type Occurrence Description
key string required Your API key
format Result Format optional Sets the format of the result.
If format is not specified the default format is xml.
price_min Price optional Limits the results to a price range; price_min specifies the lower end of this range.
If used, price_max must also be specified, and be greater than or equal to price_min.
price_max Price optional Limits the results to a price range; price_max specifies the upper end of this range.
If used, price_min must also be specified, and be less than or equal to price_max.
year_from Year optional Limits the results to a year range; year_from specifies the lower end of this range.
If used, year_to must also be specified, and be greater than or equal to year_from.
year_to Year optional Limits the results to a year range; year_to specifies the upper end of this range.
If used, year_from must also be specified, and be less than or equal to year_to.
state State optional Limits the results to the specified state/province.
sort_by Sort optional Sorts the results by the specified value.
If sort_by is not specified the default sort order is by make name.

Query Result Fields

Field Description
make_id The ID of the make
make The name of the make
listing_count The number of listings with this make

Sample Results

XML

<?xml version="1.0" encoding="UTF-8"?>
<response xmlns:lf="http://api.lemonfree.com/ns/1.0">
    <lf:request_type>makes</lf:request_type>
    <lf:request_params>
        <lf:attr name="feed">makes</lf:attr>
        <lf:attr name="key">[YOUR API KEY]</lf:attr>
    </lf:request_params>
    <lf:response_code>0</lf:response_code>
    <lf:result>
        <lf:item>
            <lf:attr name="make_id">67</lf:attr>
            <lf:attr name="make">Ac</lf:attr>
            <lf:attr name="listing_count">5</lf:attr>
        </lf:item>
        <lf:item>
            <lf:attr name="make_id">3</lf:attr>
            <lf:attr name="make">BMW</lf:attr>
            <lf:attr name="listing_count">68858</lf:attr>
        </lf:item>
        <lf:item>
            <lf:attr name="make_id">6</lf:attr>
            <lf:attr name="make">Chevrolet</lf:attr>
            <lf:attr name="listing_count">422880</lf:attr>
        </lf:item>
    </lf:result>
</response>    

JSON

{
    "response":{
        "request_type":"makes",
        "request_params":{
            "feed":"makes",
            "format":"json",
            "key":"[YOUR API KEY]"
        },
        "response_code":"0",
        "result":[
            {
                "make_id":"67",
                "make":"Ac",
                "listing_count":"5"
            },
            {
                "make_id":"3",
                "make":"BMW",
                "listing_count":"68858"
            },
            {
                "make_id":"6",
                "make":"Chevrolet",
                "listing_count":"422880"
            }
        ]
    }
}    

Examples

Query LemonFree API URL to use
All makes http://api.lemonfree.com/v2/makes/?key=[YOUR API KEY]
All makes sorted by count http://api.lemonfree.com/v2/makes/?sort_by=count&key=[YOUR API KEY]
All makes of listings that are over $5,000 http://api.lemonfree.com/v2/makes/?price_min=5000&price_max=9999999&key=[YOUR API KEY]
All makes of 2000-2010 listings that are between $5,000 and $20,000 http://api.lemonfree.com/v2/makes/?price_min=5000&price_max=20000&year_from=2000&year_to=2010&key=[YOUR API KEY]
All makes of listings in North Carolina http://api.lemonfree.com/v2/makes/?state=NC&key=[YOUR API KEY]