Questions tagged [faq]
These questions are the most frequently asked and answered questions on Stack Apps.
12 questions
1
vote
1
answer
389
views
Getting a "Forbidden" response when calling the API from code, but not when using the exact same URL in a browser
Forgive me if this is a dumb question, but I'm just trying the SO API, and have run into a basic problem.
If I enter the following URL in a web browser...
https://api.stackexchange.com/2.3/questions?...
109
votes
3
answers
24k
views
API Documentation and Help
Method List
All API methods can be found at https://api.stackexchange.com/docs.
Global Method Parameters
All methods accept the following parameters:
type=jsontext: responds with mime-type text/json.
...
21
votes
5
answers
1k
views
Conscientious use of the API
What constitutes abuse?
Making an undue number of requests in a short span of time, or regularly exceeding a request quota during "normal" use.
Guidelines for polling
We realize that a great ...
140
votes
3
answers
31k
views
API "Hello World" code
The Stack Exchange API is based on HTTP and URLs, just like the web page you're browsing now. Except instead of HTML, the responses are all in JSON.
Let's say we wanted to call the /info method:
https:...
12
votes
1
answer
415
views
How the /sites method is meant to be used
The /sites method is used to enumerate all sites in the network. If your [app] is meant to run against more than a single site (and many are) this method is how you should be discovering new sites in ...
5
votes
0
answers
572
views
Platforms Supported by the API and Response Compression
What platforms are supported for use with the Stack Exchange API?
In short, anything that can make a GET request to the API servers and supports JSON/JSONP & GZIP. (JavaScript, Python, PHP, Java, ...