Hot answers tagged

7

Python: Below is python code to get minimal info results. See bottom on how to run. import requests BASEURL = "https://api.stackexchange.com/2.2/info" params = { "site" : "stackoverflow" } r = requests.get(BASEURL, params=params) print(r.json()) Expected output is like: {u'has_more': False, u'items': [{u'...


2

JavaScript: Here is a bare-bones javascript, and you can run it from the console of decent modern browsers. It returns the 5 most recently active economics questions, tagged inflation: fetch ( 'https://api.stackexchange.com/2.2/questions?pagesize=5&tagged=inflation&site=economics' ) .then (function (response) { if (response.ok) { return ...


Only top voted, non community-wiki answers of a minimum length are eligible