Skip to main content
12 votes

API "Hello World" code

Python: Below is python code to get minimal info results. See bottom on how to run. import requests BASEURL = "" params = { "site" : "...
3 votes

API "Hello World" code

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 ( '...
3 votes

Stack Exchange API in Chrome extension

I've built an extension that uses StackExchange API using OAuth2 flow. I did not use the JS SDK and did it manually instead. Here is how I did it: function auth(sendResponse) { const scope = '...
mmohammad's user avatar
  • 141
2 votes

Getting started: /users/{id}

I am trying to get the amount of reputation that a user has how to handle the response (or get one) from a script You can do this with a Bash command that you can then embed in a script. Here's how: ...
Matthias Braun's user avatar

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