Skip to content

Instantly share code, notes, and snippets.

@hmason
Created September 25, 2010 04:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hmason/596477 to your computer and use it in GitHub Desktop.
Save hmason/596477 to your computer and use it in GitHub Desktop.
curl 'http://api.nytimes.com/svc/search/v1/article?query=justin%20beiber&api-key=f7b4a1749764aec0364b215c354e3a0f:18:25759498'
{
offset: "0"
-results: [
-{
body: "Maybe we should just let the children run the country, at least until the recession is over. They appear to be the only people not bubbling over with anger, anxiety and frustration. According to a Gallup poll released on Thursday, 70 percent of U.S. students in grades 5 through 12 say they are thriving, 63 percent say they feel engaged and 53"
byline: "By CHARLES M. BLOW"
date: "20100814"
title: "OP-ED COLUMNIST; Justin Bieber for President"
url: "http://www.nytimes.com/2010/08/14/opinion/14blow.html"
}
]
-tokens: [
"justin"
"beiber"
]
total: 1
}
@briansorahan
Copy link

May want to update this. I get

Article Search API v1 is deprecated. Please use the Article Search API v2. See http://developer.nytimes.com for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment