You need help with the use of the Stack Exchange API, apps built on the API, or assistance building scripts that work on Stack Exchange websites.

learn more… | top users | synonyms

90
votes
4answers
20k 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: ...
52
votes
2answers
10k views

How to list your application/library/wrapper/script here

If you've created an application, script, or library for use on the Stack Exchange network, that's fantastic! Now publicize it by creating a question with the correct tag: app ...
28
votes
1answer
1k views

Announcing API version 1.1 and Roadmap

As has been announced on the blog, we're rolling out a minor revision of our existing read-only API. While the blog post gives some high level details, I figured [app] developers would appreciate ...
21
votes
5answers
2k views

Google App Engine [app]s - We are all on the same quota!

Noticing a couple of "This IP has exceeded the request-per-day limit" errors on StackPrinter log, I asked for a verification and the prompt answer was: There are a number of [app]s using ...
13
votes
4answers
241 views

Prevent that posts tagged with app or library enter Community Wiki mode when the owner edits it 8 times

I've edited my App 8 times and my question has switched automatically to Community Wiki (I'm aware that it's reported in the faq). The main reason of these many edits is my shaky english, but I can ...
12
votes
1answer
672 views

Registering app for API 2.0 key without Oauth domain

I'm trying to register an app, but it states that I need to add an OAuth domain. But I have Enable Client Side OAuth Flow disabled, because I don't need it right now. I basically have two questions: ...
11
votes
1answer
158 views

Is it safe to assume the API will be at api.<DOMAIN>?

I'm writing an application that will eventually allow you to use it for any StackExchange site. Thus, I'm allowing users to input the domains of the sites they want to use (e.g. stackoverflow.com). ...
10
votes
2answers
6k views

Why Content-Encoding gzip rather than Transfer-Encoding gzip

The API responses are returned in gzipped format. But by using Content-Encoding gzip, the burden of unzipping is on the user of the API. On the other hand if the server uses Transfer-Encoding gzip, ...
10
votes
2answers
212 views

Why does this Stack Overflow API query return binary data?

The Stack Overflow API query http://api.stackoverflow.com/1.1/search?tagged=javascript&intitle=%3Cdiv%3E returns what appears to be binary data: ...
9
votes
1answer
914 views

Should we add a “this site is not affiliated to Stack Overflow..” disclaimer to our website app?

I've checked legal section but it does not say anything specific of this aspect apart from: Do feel free to explain that your product is built on the Stack Exchange platform so people understand your ...
9
votes
1answer
100 views

Add close-vote information to the questions object

Would it be possible to add close/reopen vote information to the questions object? For example, you usually see something along the lines of: close (3) when a question has three (current) ...
8
votes
1answer
824 views

How to see which users upvoted a question?

I assume this information is tracked, since StackOverflow shows me the questions I have upvoted (when going to their question page, I can undo the upvote). I couldn't find any api call that gives this ...
8
votes
3answers
192 views

Roadmap - any update?

So now it's 2011 and we should be getting some API updates. As a company you must have some kind of plan. So can you either say the API is never going to be updated or give a time frame to at least a ...
8
votes
1answer
393 views

API Key limit 10k is Per IP Address or Globally?

Getting started FAQ says No Key limit is IP Address based, but it does not say for with API Key. When I test my API Key from different IP Addresses, I noticed that 10k limit is globally, limit is ...
8
votes
2answers
188 views

Is there an API to upload images to SE's imgur installation?

Is there an API for uploading images to the StackExchange-specific imgur installation? I could use the main imgur site, but they don't keep the images indefinitely. Use case: It would be ...
8
votes
1answer
147 views

Where did the “apps” tab disappear?

I may just be missing something, but there used to be an "apps" tab on the main page, which showed you a (sorted by vote) list of all the apps and libraries. I can't find it anymore. Where did it ...
8
votes
2answers
197 views

Terms of the use for the API

What are the terms of use for the API? Are there any restrictions in terms of how I can use it, except for access limitations?
8
votes
1answer
51 views

Whatever happened to closed_reason?

When pulling back info on a closed question, I have come to expect closed_reason to be a present key if there's a closed_date. It seems that as of recently this is no longer true. Proof: ...
8
votes
1answer
43 views

Can I determine the post that caused a user to earn a badge?

Some badges, like 'Yearling' are associated with a user. Other badges, like 'Great Question' and 'Great Answer' are associated with a post as well. When I fetch the recipients of the badges, I get a ...
8
votes
0answers
214 views

Why is my API quota not resetting after UTC reset?

According to How API Keys Work, the default daily API limit -- which is per site, per day -- is 300. I started with 300, as expected, but over a period of days, I've noticed that the remaining quota ...
8
votes
0answers
56 views

What to do with “OAuth Domain” in the registration page for a browser user script?

I want to register my first project so I can make more API calls without hitting the limit now that it seems to be good enough for others to use. My project is a browser userscript that works with ...
8
votes
0answers
122 views

suggest add favicon.ico to api endpoints

It will reduce 404 entries in your logs and in our browser based fiddler results. Cheap, easy, fast. GET /favicon.ico HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 ...
7
votes
2answers
1k views

Why can I access the API from a browser but not wget?

If I try to access the following from firefox everything works even if I'm not logged in http://api.stackexchange.com/2.0/users/19068?order=desc&sort=reputation&site=stackoverflow However ...
7
votes
2answers
979 views

Am I accessing the API correctly?

When running the code $.getJSON('http://api.stackoverflow.com/0.8/questions/4', function(data) { // Do some stuff here.... }); I get the error Failed to load resource Am I accessing this ...
7
votes
1answer
744 views

Looking for a beginner's tutorial to using the API

I see the Stack Exchange API but I'm unable to understand it. I don't think there is any fundamental tutorial showing how to use Stack Overflow fully in the API documentation. I want some fundamental ...
7
votes
2answers
213 views

How to get a User Id

Is there a way to get the user id so I can use the method /users/{id} I guess that for security you cannot asked the API give the id of a user with this openid Identification but is there another ...
7
votes
2answers
86 views

How to get data related to Winter Bash?

I was thinking of creating a nice question on Programming Puzzles & Code Golf related to Winter Bash 2014, but I need some specific data for that question - The number of hats of each user. Is ...
7
votes
3answers
308 views

When does the judging take place?

I am planning to work some more on my apps tomorrow and get some last minute changes implemented. However, I notice that: The API Contest winners will be picked the first week of August. ...
7
votes
1answer
56 views

How to obtain the bibtex item for a question with a program or HTTP request?

Which request should my program send to mathoverflow.net to get the bibtex, which is so well hidden behind the share button? Rephrased: what I'm after is something analogous to a link like: ...
7
votes
1answer
241 views

My app has to be published first? But it's still under development

Okay, I want to build an App that allows me to create questions on Stack Exchange. I registered it here on Stack Apps but now when I want to create a question I get this message: { "error_message": ...
7
votes
1answer
88 views

Can we have the display_name field in the /me/associated route?

I'm reading the Authentication documentation and I've noticed that the /me/associated route returns fields like user_id, badges, reputation but not the display_name, even specifying a custom Filter. ...
7
votes
0answers
58 views

2.0 API get votes

I've been searching the 2.0 API for a list of my own (up and down) votes. I don't see them in the API. I don't think this is a prohibitively resource intensive query or that it can be used to ...
6
votes
3answers
853 views

How do I find a user based upon email hash?

I'm looking for specific guidance on how to locate a user on SO by email address. I'll use this information to work with the API and determine how many points they have on the site.
6
votes
2answers
170 views

What are the min and max parameters?

Several of the api methods (e.g. questions) have min and max parameters with the following description: min (optional) Minimum of the range to include in the current . number ...
6
votes
2answers
541 views

Is there a Stack Exchange notification app for Windows 7?

Is there a Stack Exchange notification app for Windows 7?
6
votes
1answer
979 views

Is it safe to embed my API key into my javascript-only application?

I have an application I'm developing that's pure javascript and consumes the Stack API. My API key is embedded in the source which anyone could read. Is this safe?
6
votes
1answer
385 views

URL Length Limit For For Requests Taking Vectorised Ids (/answers/{id}, /questions/{id}, etc)

I am trying to use /questions/{id} API to get a list of questions by their ids. Help page for this request does not indicate the maximum number of ids that can be passed in. Pagesize is maximum 100, ...
6
votes
2answers
214 views

Url length limits have been increased

There's been some grumbling in the past about the unreliability of really ludicrously long URLs sent to the API. We've always considered this suboptimal, but the underlying technical constraints ...
6
votes
0answers
144 views

How to get the count of a query efficiently

To get the count of a query without returning results, simply specify pagesize=0. http://api.stackoverflow.com/0.9/users?filter=mike&sort=name&pagesize=0 { "total": 1161, "page": 1, ...
5
votes
2answers
243 views

Getting unauthorized_error when using OAuth2.0

I want to create a simple desktop application which connects to my account and shows some information in the status bar. I've been trying to authenticate using OAuth2.0 but I'm getting stuck and I ...
5
votes
3answers
199 views

Stack Exchange userscript template / boilerplate

I find it annoying to have to type the entire list of Stack Exchange sites to include every single time I make a new userscript. Furthermore, jQuery isn't automatically included by default. Is there ...
5
votes
2answers
110 views

How to get a User's picture (Avatar)

I've seen a couple of Stack Apps that have the actual picture for the user profile. Is that coming from the API, and if so how? If not I'm assuming they are using some screen-scrapping to get that ...
5
votes
3answers
150 views

Injecting HTML Into A Stackexchange Site

I am writing an application that injects some HTML into the page. I was wondering what the policy is for this. Is it ok or generally frowned upon?
5
votes
4answers
225 views

My App unintentionally DoSed api, and my IP got blocked across all the sites, now what should I do?

I put a program in cron to run every 5 minutes, and that program loop 5 times and read each api site 12 seconds interval. But last night (12 hours ago), I noticed that my program broke and there was ...
5
votes
1answer
97 views

Getting questions with multiple tags

http://api.stackoverflow.com/0.8/questions/tagged/gwt,google-app-engine returns nothing, but http://stackoverflow.com/questions/tagged/gwt+google-app-engine does have plenty of entries. And ...
5
votes
1answer
58 views

List of Votes by Authenticated users

In the API documentation for the question type, it says that you can access, for a specific question, whether or not the authenticated user (in the private_info scope) upvoted/downvoted the question. ...
5
votes
1answer
73 views

Access for Statistical Analysis using the Stack Exchange API

We are small company in Malaysia and intended to do a small research to analyze technology trends. We would like to use the Stack Exchange API for this purpose but we are afraid it might get detected ...
5
votes
1answer
1k views

List all tags in use on stackoverflow

I am trying to list all tags used on stackoverflow here: http://api.stackoverflow.com/1.1/usage/methods/tags and I cannot seem to list all. How do I do it?.
5
votes
2answers
95 views

Prefered way to retrieve all search results

I'm trying to figure out a reliable way to retrieve all the results from a search query (in subsequent pages. My use case includes cases with more than 100 results (the maximum page size). Looking at ...
5
votes
1answer
460 views

Is it possible to authenticate a user through Stackoverflow API?

Is it possible to use the Stackoverflow API to authenticate a given user identity such as with Facebook, Twitter or OpenID? If it's possible: Can you tell me the method(s) that make this happen? ...