New York Times article search API

update 6/2014 – This version of the API appears to be broken. Will need to update the example below.

Note: As of June 1, 2014, version 1 of the Article Search API has been deprecated. Please use version 2.

original post

http://developer.nytimes.com/docs/article_search_api

Example that works (except for the api key):

http://api.nytimes.com/svc/search/v1/article?query=dubstep&begin_date=20121101&end_date=20121130&api-key=123

I loaded the result file from this query into a max patch: JSON_readwrite-nyt-test and printed out the title and body of the first article returned.

There are examples in the above link and explanation of using ‘facets’ which give you stuff like counts of articles and mentions of things like corporation names & other common things. Also some logic tricks for doing complex queries.