New York Times Gives You 2.8 Million Articles via an API

John Musser, February 5th, 2009

New York Times Article SearchThe big API day is finally here for the New York Times. After launching a series of interesting and useful APIs since last fall, covering everything from campaign finance to movie reviews, they’ve now released their most important API to date: their Article Search API. With this new web service, developers now have access to 2.8 million articles from the paper of record dating from 1981 through today (our Article Search profile). This API should be a terrific source for a wide range of mashups and third party applications.

Their announcement gives some good details about what you can do:

  • Find recipes that have an associated thumbnail image
  • Find the first occurrence of “internet”
  • See instances of the phrase “job loss” by month for 2008
  • Search for the phrase “stock market” in all articles that are marked as a review in the Books section
  • Find articles that mention “Iraq” in the title and have related multimedia
  • Identify articles that appeared on the front page and mentioned “coffee prices”

It’s a RESTful API that returns data as JSON (XML support coming later). It supports approximately 35 searchable fields, many of which are outlined in this illustration:

nytimesart

As the name implies, it’s a “search api”, so naturally there are many types of queries available:

  • Date range: all articles from X date to Y date
  • Field search: search within any number of given fields, e.g., title:obama byline:dowd
  • Conjunction and disjunction (AND and NOT) operations, e.g., baseball yankees -"red sox"
  • Ordering by closest (variable ranking algorithms), newest and oldest
  • Faceted searching

As an emblematic symbol of the challenges the newspaper industry is facing, by opening-up this new distribution channel, the Times shows they’re looking at innovative ways to leverage their valuable content in this new platform economy.

Tags: Media, News, Search
Both comments and pings are currently closed.

9 Responses to “New York Times Gives You 2.8 Million Articles via an API”

February 5th, 2009
at 7:40 am
Comment by: OpeningYou.net

The endless possibilities one can think of to utilize such a powerful API…

—————-
Come join us at our next event:
NetSavvy – Upscale IT Networking Event for IT Professionals
RSVP: ( http://tiny.cc/dMofU )

February 5th, 2009
at 9:39 am
Comment by: BrianOberkirch.com – You Oughtta Know

[...] NYTimes API. [...]

February 5th, 2009
at 11:59 am
Comment by: Shu

According to their API documentation complete articles are not available. The API will pull “headlines, abstracts, lead paragraphs and links to associated multimedia.” Will users have to pay to see the entire article?

February 5th, 2009
at 2:25 pm
Comment by: John Musser

@Shu, yes, the API does not provide access to the full article content. Users would need to go to NYTimes.com to see the whole article.

February 6th, 2009
at 11:47 am
Comment by: 欢若平生的工作笔记 » Blog Archive » Newspaper is Platform 纽约时报开仓放粮

[...] http://blog.programmableweb.com/2009/02/05/new-york-times-gives-you-28-million-articles-via-an-api/ posted under 数字媒体 [...]

February 7th, 2009
at 4:06 pm
Comment by: rascunho » Blog Archive » links for 2009-02-07

[...] New York Times Gives You 2.8 Million Articles via an API (tags: blog.programmableweb.com 2009 mes1 dia7 nyt webservices api) [...]

February 7th, 2009
at 8:51 pm
Comment by: Douglas Clifton

The Times dropped their online subscription model two years ago, so just collect the article URL from your API query and link to it.

May 14th, 2009
at 10:32 pm
Comment by: API Marketing | APIs and beyond

[...] New York Times Gives You 2.8 Million Articles via an API (programmableweb.com) [...]

December 15th, 2011
at 8:25 am
Comment by: Finanzierungsrechner Immobilien

Hi! I’m at work surfing around your blog from my new iphone 3gs! Just wanted to say I love reading your blog and look forward to all your posts! Keep up the outstanding work! Finanzierungsrechner Immobilien

Follow the PW team on Twitter

ProgrammableWeb
APIs, mashups and code. Because the world's your programmable oyster.

John Musser
Founder, ProgrammableWeb

Adam DuVander
Executive Editor, ProgrammableWeb. Author, Map Scripting 101. Lover, APIs.