The Editorial API V1

The Editorial API provides full access to Edmunds.com's rich and wide range of content that spans many different automotive categories from the Editor vehicle reviews to vehicle-specific articles. Learn more about the people behind the content:

Before you start using this API, please note the following Special Requirements:

Edmunds.com’s Editorial Content consists of articles (“Articles”) that are the copyright property of Edmunds.com, Inc., and we have special requirements for the use of the Articles.

  • The following meta tag should be added to all of your pages that display an Article:

    <link href="/URL SUPPLIED WITH THE ARTICLE" rel="canonical" />

    The URL SUPPLIED WITH THE ARTICLE is the URL of the content you’re displaying on your site. The URL is provided in the response object you’ll receive when you make a REST call request.

    The meta tag needs to exist in the <header> section of your page.
     
  • Each Article you elect to display must be displayed in the form it is provided, i.e., it may not be edited, supplemented or abridged.
     
  • The “date published” and/or “date revised” that accompanies each Article may not be removed or altered, and should be displayed above the Article.

  • Each Article should be accredited as follows: "From Edmunds.com" at the top of the article (i.e., below the article’s title and above the “date published”), in a font size not smaller than the font size that you use for the text of the Article.

  • The following notice should be affixed to the end of each Article: Copyright Edmunds.com, Inc. All rights reserved. First published on www.edmunds.com and reprinted with permission. Edmunds and the Edmunds.com car logo are registered trademarks of Edmunds.com, Inc.

  • Each Article should be refreshed not less often than once every 30 days, in order to obtain updates and revisions by Edmunds.com.

URL Stub

http://api.edmunds.com/{version}/content/?fmt={json|xml}&api_key={Editorial API Key}

JSON Format of Response

In order to get a JSON object back, you need to set fmt=json in your API call. The response object will have the following format:

[
    {
        link: "URL",
        title: "STRING",
        published: "YYY-MM-DD",
        content: "TEXT IN HTML FORMAT"
    }, 
    {
        link: "URL",
        title: "STRING",
        published: "YYY-MM-DD",
        content: "TEXT IN HTML FORMAT"
    }, 
    {
        link: "URL",
        title: "STRING",
        published: "YYY-MM-DD",
        content: "TEXT IN HTML FORMAT"
    },
    {
        link: "URL",
        title: "STRING",
        published: "YYY-MM-DD",
        content: "TEXT IN HTML FORMAT"
    }, ....
]

XML (feed) Format of Response

In order to get an XML feed object back, you need to specify fmt=xml in your API call. The response object will have the following format:

<feed xmlns="http://www.w3.org/2005/Atom">
    <entry>
        <link href="/URL" />
        <published>YYY-MM-DD</published>
        <title>TITLE</title>
        <content type="html">HTML</content>
    </entry>
    <entry>
        <link href="/URL" />
        <published>YYY-MM-DD</published>
        <title>TITLE</title>
        <content type="html">HTML</content>
    </entry>
    <entry>
        <link href="/URL" />
        <published>YYY-MM-DD</published>
        <title>TITLE</title>
        <content type="html">HTML</content>
    </entry>
    <entry>
        <link href="/URL" />
        <published>YYY-MM-DD</published>
        <title>TITLE</title>
        <content type="html">HTML</content>
    </entry>
</feed>

The core properties of the response object are:

  • link: The article's URL on Edmunds.com
  • title: The title of the article
  • published: The date the article was published
  • content: The full article

API Filters

There are five distinct ways through which you can get content using this API. We call them filters:

FILTERURL STRUCTURE
category-only api.edmunds.com/v1/content/?category=xxxx&fmt=json
&api_key=xxxx
model-only api.edmunds.com/v1/content/?make=xxxx&model=xxxx
&fmt=json&api_key=xxxx
vehicle-only api.edmunds.com/v1/content/?make=xxxx&model=xxxx
&year=xxxx&fmt=json&api_key=xxxx
model with category api.edmunds.com/v1/content/?make=xxxx&model=xxxx
&category=xxxx&fmt=json&api_key=xxxx
vehicle with category api.edmunds.com/v1/content/?make=xxxx&model=xxxx
&year=xxxx&category=xxxx&fmt=json&api_key=xxxx

Available Categories

The following categories could be passed in the &category= parameter in the API call:

CATEGORYDESCRIPTION
reviews Editor Reviews articles
car+news Care News articles
road+tests Road Tests articles
car+buying Car Buying articles
auto+finance Auto Finance articles
insurance Insurance-related articles
warranties Warranties-related articles
car+technology Car Technology articles
driving All driving-related articles
fuel+economy Fuel Economy articles
how-to How-To articles
vehicle+safety Vehicle Safety and Safety Ratings articles
maintenance+%26+repair Maintenance and Repair articles

Pagination

We have a lot of articles. A lot. Therefore, it doesn't really make a whole lot of sense for us to send them all in one response object. Your systems (and ours) won't be able to handle it.

So we made it so that by default we always send be the latest 30 articles. To get more or less articles, you should use the &limit paramter in your call.

Here's how it works:

api.edmunds.com/v1/content/?fmt=json&api_key=xxxx&limit=[article index],[# of articles]

Let's say you don't want to get all the latest 30 articles all at once. Let's say you just need the last 5 articles in Editor Reviews. Here's the call you should make:

api.edmunds.com/v1/content/?category=reviews&fmt=json&api_key=xxxx&limit=0,5

What if you want to get the five articles but starting with the 50th most recent article? Here's the call for that:

api.edmunds.com/v1/content/?category=reviews&fmt=json&api_key=xxxx&limit=50,5

Pagination gives you the power to get what you want when you want it.

API Sample Calls

URLDESCRIPTION
api.edmunds.com/v1/content/?make=bmw&model=m6
&year=2012&fmt=json&api_key=xxxx
Get the latest 30 articles from any category related to BMW M6 2012 and give me the results in JSON format.
api.edmunds.com/v1/content/?category=reviews
&fmt=json&api_key=xxxx
Get the latest 30 editor reviews.
api.edmunds.com/v1/content/?category=reviews
&limit=0,10&fmt=json&api_key=xxxx
Get the latest 10 editor reviews.
api.edmunds.com/v1/content/?category=reviews
&limit=11,3&fmt=json&api_key=xxxx
Get three editor review articles starting with the 11th latest article.
api.edmunds.com/v1/content/?category=car+news
&fmt=json&api_key=xxxx&limit=0,3
Get the latest three Car News articles.