{"id":4219,"date":"2012-12-16T04:52:27","date_gmt":"2012-12-16T04:52:27","guid":{"rendered":"http:\/\/zerokidz.com\/ideas\/?p=4219"},"modified":"2014-06-16T10:55:06","modified_gmt":"2014-06-16T14:55:06","slug":"new-york-times-article-search-api","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=4219","title":{"rendered":"New York Times article search API"},"content":{"rendered":"<p>update 6\/2014 &#8211; This version of the API appears to be broken. Will need to update the example below.<\/p>\n<div class=\"panel\">\n<p>Note:\u00a0As of June 1, 2014, version 1 of the Article Search API has been deprecated. Please use\u00a0<a href=\"http:\/\/developer.nytimes.com\/docs\/read\/article_search_api_v2\">version 2<\/a>.<\/p>\n<\/div>\n<div class=\"panel\">\n<p>original post<\/p>\n<\/div>\n<p><a href=\"http:\/\/developer.nytimes.com\/docs\/article_search_api\">http:\/\/developer.nytimes.com\/docs\/article_search_api<\/a><\/p>\n<p>Example that works (except for the api key):<\/p>\n<p>http:\/\/api.nytimes.com\/svc\/search\/v1\/article?query=dubstep&#038;begin_date=20121101&#038;end_date=20121130&#038;api-key=123<\/p>\n<p>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.<\/p>\n<p>There are examples in the above link and explanation of using &#8216;facets&#8217; which give you stuff like counts of articles and mentions of things like corporation names &amp; other common things. Also some logic tricks for doing complex queries.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>update 6\/2014 &#8211; This version of the API appears to be broken. Will need to update the example below. Note:\u00a0As of June 1, 2014, version 1 of the Article Search API has been deprecated. Please use\u00a0version 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&#038;begin_date=20121101&#038;end_date=20121130&#038;api-key=123 I loaded the result file from &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=4219\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;New York Times article search API&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[143],"tags":[6,190,25,12],"class_list":["post-4219","post","type-post","status-publish","format-standard","hentry","category-interactive-media-art","tag-interactive-media","tag-portfolio","tag-programming","tag-web-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>New York Times article search API - reactive music<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/reactivemusic.net\/?p=4219\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"New York Times article search API - reactive music\" \/>\n<meta property=\"og:description\" content=\"update 6\/2014 &#8211; This version of the API appears to be broken. Will need to update the example below. Note:\u00a0As of June 1, 2014, version 1 of the Article Search API has been deprecated. Please use\u00a0version 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&#038;begin_date=20121101&#038;end_date=20121130&#038;api-key=123 I loaded the result file from &hellip; Continue reading &quot;New York Times article search API&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=4219\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2012-12-16T04:52:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-06-16T14:55:06+00:00\" \/>\n<meta name=\"author\" content=\"Tom Zicarelli\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tom Zicarelli\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=4219#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=4219\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"New York Times article search API\",\"datePublished\":\"2012-12-16T04:52:27+00:00\",\"dateModified\":\"2014-06-16T14:55:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=4219\"},\"wordCount\":142,\"keywords\":[\"interactive media\",\"portfolio\",\"programming\",\"web development\"],\"articleSection\":[\"interactive media art\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=4219\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=4219\",\"name\":\"New York Times article search API - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"datePublished\":\"2012-12-16T04:52:27+00:00\",\"dateModified\":\"2014-06-16T14:55:06+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=4219#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=4219\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=4219#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"New York Times article search API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/\",\"name\":\"reactive music\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/reactivemusic.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\",\"name\":\"Tom Zicarelli\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"caption\":\"Tom Zicarelli\"},\"sameAs\":[\"http:\\\/\\\/tomzicarelli.com\"],\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"New York Times article search API - reactive music","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/reactivemusic.net\/?p=4219","og_locale":"en_US","og_type":"article","og_title":"New York Times article search API - reactive music","og_description":"update 6\/2014 &#8211; This version of the API appears to be broken. Will need to update the example below. Note:\u00a0As of June 1, 2014, version 1 of the Article Search API has been deprecated. Please use\u00a0version 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&#038;begin_date=20121101&#038;end_date=20121130&#038;api-key=123 I loaded the result file from &hellip; Continue reading \"New York Times article search API\"","og_url":"https:\/\/reactivemusic.net\/?p=4219","og_site_name":"reactive music","article_published_time":"2012-12-16T04:52:27+00:00","article_modified_time":"2014-06-16T14:55:06+00:00","author":"Tom Zicarelli","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tom Zicarelli","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/reactivemusic.net\/?p=4219#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=4219"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"New York Times article search API","datePublished":"2012-12-16T04:52:27+00:00","dateModified":"2014-06-16T14:55:06+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=4219"},"wordCount":142,"keywords":["interactive media","portfolio","programming","web development"],"articleSection":["interactive media art"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=4219","url":"https:\/\/reactivemusic.net\/?p=4219","name":"New York Times article search API - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"datePublished":"2012-12-16T04:52:27+00:00","dateModified":"2014-06-16T14:55:06+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=4219#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=4219"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=4219#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"New York Times article search API"}]},{"@type":"WebSite","@id":"https:\/\/reactivemusic.net\/#website","url":"https:\/\/reactivemusic.net\/","name":"reactive music","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/reactivemusic.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571","name":"Tom Zicarelli","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","caption":"Tom Zicarelli"},"sameAs":["http:\/\/tomzicarelli.com"],"url":"https:\/\/reactivemusic.net\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/4219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4219"}],"version-history":[{"count":7,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/4219\/revisions"}],"predecessor-version":[{"id":4221,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/4219\/revisions\/4221"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}