{"id":23907,"date":"2014-10-08T21:35:56","date_gmt":"2014-10-08T12:35:56","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=23907"},"modified":"2014-10-08T21:35:56","modified_gmt":"2014-10-08T12:35:56","slug":"hacker-news-api","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/hacker-news-api\/","title":{"rendered":"\u3010\u6717\u5831\u3011Hacker News\u306e\u516c\u5f0fAPI\u300cHacker News API\u300d\u304c\u516c\u958b"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/10\/blogNewImage49.png\" alt=\"NewImage\" title=\"NewImage.png\" border=\"0\" width=\"546\" height=\"466\" \/><\/p>\n<p>\u6d77\u5916\u30cf\u30c3\u30ab\u30fc\u5fa1\u7528\u9054\u306e\u6280\u8853\u7cfb\u30cb\u30e5\u30fc\u30b9\u30b5\u30a4\u30c8\u300cHacker News\u300d\u306e\u30c7\u30fc\u30bf\u306b\u307b\u307c\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u516c\u5f0fAPI\u300c<a href=\"https:\/\/github.com\/HackerNews\/API\">Hacker News API<\/a>\u300d\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059(<a href=\"http:\/\/blog.ycombinator.com\/hacker-news-api\">Y Combinator Blog<\/a>\u3001<a href=\"https:\/\/news.ycombinator.com\/item?id=8422599\">Hacker News<\/a>\u3001<a href=\"http:\/\/codezine.jp\/article\/detail\/8191\">CodeZine<\/a>)\u3002<\/p>\n<p>\u516c\u5f0fAPI\u306f\u3001Hacker News\u3092\u904b\u55b6\u3057\u3066\u3044\u308bY Combinator\u304cFirebase\u3068\u63d0\u643a\u3057\u3066\u958b\u767a\u3055\u308c\u305f\u3082\u306e\u3002\u63d0\u4f9b\u3055\u308c\u308b\u30c7\u30fc\u30bf\u306fAndroid\u3001iOS\u3001Web\u304b\u3089\u7c21\u5358\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304a\u308a\u3001REST\u30b5\u30dd\u30fc\u30c8\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d6\u30ed\u30b0\u306b\u3088\u308b\u3068\u3001Hacker News\u3067\u306f\u3001\u4eca\u5f8c\u4e09\u9031\u9593\u5185\u306b\u30c7\u30b6\u30a4\u30f3(\u30de\u30fc\u30af\u30a2\u30c3\u30d7)\u306e\u5909\u66f4\u304c\u884c\u308f\u308c\u308b\u4e88\u5b9a\u3067\u3001\u73fe\u72b6\u591a\u304f\u306eHacker News\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u306b\u983c\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u3075\u307e\u3048\u3001\u6b63\u3057\u3044\u30c7\u30fc\u30bf\u3078\u306e\u30a2\u30af\u30bb\u30b9\u65b9\u6cd5\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306bAPI\u306e\u516c\u958b\u306b\u8e0f\u307f\u5207\u3063\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h3>\u4f7f\u7528\u65b9\u6cd5\u306f\uff1f<\/h3>\n<p>REST API\u306e\u30d9\u30fc\u30b9URL\u306f\u300chttps:\/\/hacker-news.firebaseio.com\u300d\u3002\u3053\u308c\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u3064\u3044\u3066\u300chttps:\/\/hacker-news.firebaseio.com\/v0\u300d\u304c\u57fa\u672c\u5f62\u306b\u306a\u308a\u307e\u3059\u3002\u5c06\u6765\u7684\u306b\u306fOAuth\u3092\u4f7f\u3063\u305f\u30e6\u30fc\u30b6\u30fc\u8a8d\u8a3c\u3092\u884c\u3046\u8a08\u753b\u304c\u3042\u308b\u305d\u3046\u306a\u306e\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u90e8\u5206\u306f\u5909\u66f4\u3055\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070Top Strories\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306eURL\u3078\u30a2\u30af\u30bb\u30b9\u3002<\/p>\n<pre>\nhttps:\/\/hacker-news.firebaseio.com\/v0\/topstories.json?print=pretty\n<\/pre>\n<p>\u3059\u308b\u3068ID\u306e\u30ea\u30b9\u30c8\u304c\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n<pre>\n[ 8414149, 8414078, 8413972, 8411638, 8414102, 8413204, 8413100, 8413971, 8412744, 8414003, 8412841, 8412802, 8412605, 8413548, 8413123, 8414437, 8412897, 8413028, 8413341, 8412425, 8411762, 8413623, 8412346, 8411356, 8413056, 8413365, 8412372, 8414055, 8412877, 8412167, 8413264, 8414137, 8410519, 8412933, 8411846, 8412929, 8411254, 8411512, 8412777, 8412626, 8413274, 8414389, 8414117, 8412114, 8412212, 8412759, 8412696, 8412768, 8411643, 8411866, 8413966, 8410976, 8410545, 8410358, 8413979, 8414129, 8411791, 8409075, 8410314, 8411532, 8411553, 8412099, 8412085, 8410356, 8409084, 8412862, 8409823, 8412705, 8410220, 8409323, 8414090, 8410326, 8414206, 8411026, 8408298, 8407364, 8413066, 8412104, 8412235, 8412786, 8395689, 8414318, 8406384, 8414314, 8406507, 8408501, 8413630, 8414180, 8400778, 8413804, 8407298, 8413233, 8412601, 8411277, 8409940, 8414287, 8397750, 8412679, 8412727, 8413104 ]\n<\/pre>\n<p>\u3053\u306eID\u3092\u4f7f\u3063\u3066\u500b\u5225\u306b\u30b9\u30c8\u30fc\u30ea\u30fc\u7b49\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\nhttps:\/\/hacker-news.firebaseio.com\/v0\/item\/126809.json?print=pretty\n<\/pre>\n<p>API\u3092\u547c\u3073\u51fa\u3059\u5404\u8a00\u8a9e\u7528\u306e\u4fbf\u5229\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3059\u3050\u306b\u4f5c\u3089\u308c\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<p>Hacker News\u5c02\u7528\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u3088\u3046\u3068\u601d\u3063\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306b\u3068\u3063\u3066\u559c\u3070\u3057\u3044\u30cb\u30e5\u30fc\u30b9\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6d77\u5916\u30cf\u30c3\u30ab\u30fc\u5fa1\u7528\u9054\u306e\u6280\u8853\u7cfb\u30cb\u30e5\u30fc\u30b9\u30b5\u30a4\u30c8\u300cHacker News\u300d\u306e\u30c7\u30fc\u30bf\u306b\u307b\u307c\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u516c\u5f0fAPI\u300cHacker News API\u300d\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059(Y Combinator Blog\u3001H [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":23906,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[66,75],"tags":[618,918],"class_list":["post-23907","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-webservice","category-software","tag-api","tag-hackernews"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/23907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=23907"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/23907\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/23906"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=23907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=23907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=23907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}