Selasa, 14 Juli 2009

Information New York Times and API

When released in march this month, in New York state legislature to answer questions about fire albany's lawkers with a name biographical details of the tasks and committees.
API provides billing and renewal introductions by members, so easy to know the charges are each sponsor. In both cases, the new 20 bill is displayed, and all responses can be taken as XML or JSON.

The 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 occurence 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 whic are outlined in this illustration.

As the mame implies, it's a "search api", so naturally there are many tipes 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.

Tidak ada komentar:

Posting Komentar