{"id":3467,"date":"2016-03-17T01:26:01","date_gmt":"2016-03-17T01:26:01","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=3467"},"modified":"2016-03-17T01:26:01","modified_gmt":"2016-03-17T01:26:01","slug":"query-stackoverflow-tag","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/query-stackoverflow-tag\/","title":{"rendered":"Query Stackoverflow by tag"},"content":{"rendered":"<p>Stackoverflow allows you to query their data with SQL (see <a href=\"https:\/\/data.stackexchange.com\/stackoverflow\/query\/new\">https:\/\/data.stackexchange.com\/stackoverflow\/query\/new<\/a>).<\/p>\n<p>For example, you can get a list of all posts tagged with &#8216;scala&#8217; like so:<\/p>\n<pre lang=\"sql\">\nselect *\nfrom Posts p\njoin PostTags pt on p.Id = pt.PostId\njoin Tags t on pt.TagId = t.Id and TagName = 'scala'\n<\/pre>\n<p><img alt='' class='alignnone size-full wp-image-3469' src='http:\/\/172.104.26.128\/wp-content\/uploads\/2016\/03\/img_56ea079ee9550.png' \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stackoverflow allows you to query their data with SQL (see https:\/\/data.stackexchange.com\/stackoverflow\/query\/new). For example, you can get a list of all posts tagged with &#8216;scala&#8217; like so: select * from Posts p join PostTags pt on p.Id = pt.PostId join Tags t on pt.TagId = t.Id and TagName = &#8216;scala&#8217;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[523,529],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3467"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=3467"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3467\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=3467"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=3467"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=3467"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}