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

81
votes
4answers
18k 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: ...
45
votes
2answers
8k 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 ...
27
votes
1answer
1k views

Announcing API version 1.1

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
1k 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
227 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 ...
11
votes
1answer
157 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). ...
9
votes
2answers
172 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
443 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: ...
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
457 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 ...
8
votes
1answer
144 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
1answer
50 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: ...
7
votes
2answers
855 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
648 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 ...
7
votes
2answers
3k 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, ...
7
votes
3answers
304 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
374 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 ...
7
votes
1answer
91 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) ...
7
votes
1answer
37 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 ...
7
votes
2answers
193 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?
7
votes
0answers
115 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 ...
6
votes
2answers
590 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 ...
6
votes
3answers
724 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
206 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 ...
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
500 views

Is there a Stack Exchange notification app for Windows 7?

Is there a Stack Exchange notification app for Windows 7?
6
votes
1answer
791 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
83 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. ...
5
votes
3answers
148 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
1answer
94 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
746 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
1answer
89 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": ...
5
votes
2answers
388 views

Is there a Stack Exchange icon available?

StackAuth /sites route provides all the site's icons except for the one of the Stack Exchange master site. Could you please provide it in some way (a static SVG would be good)?
5
votes
1answer
34 views

Using OR with featured questions

My question is similar to: Getting questions that have a specific tag or tags? What I am trying to do is get a list of Featured questions within a list of tags. I have tried using the following: ...
5
votes
1answer
135 views

How to register application for API implicit authentication?

I am working on an applet to for Cairo-Dock, to check the user's StackExchange inbox. Right now I've worked around this by using the genuwine json feed, but that's not stable since posts are marked as ...
5
votes
1answer
251 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, ...
5
votes
1answer
106 views

Provide a post listing changes to the API?

While it's possible to pick up on many of the changes that are made to the API by looking at every [status-completed] tagged question on here, I'd like to see a single post that's updated every time a ...
5
votes
1answer
51 views

Can you access a user's tag reputation/score via the API?

Is it possible to retrieve a user's tag specific reputation/score via the API? If not, is it possible to make an API call that returns enough information that you can calculate the value?
5
votes
1answer
109 views

Is there a way to programmatically access chat?

I'm thinking about starting a project where I'd like to have access to the "chat" feature of the stack exchange sites. I saw this project here: ...
5
votes
1answer
72 views

API 'search' method with 'tagged' parameter

From the docs for tagged paremeter: List of tags delimited by semi-colons of which at least one must be on a question Yet, when I execute this query ...
5
votes
2answers
209 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 ...
5
votes
1answer
39 views

How to access global stackexchange user favourites in a feed?

I was looking for a way to IFTTT my questions, and found this recipe, that automaqically saves your favourited questions to Evernote. Nice. It uses stack2rss (thus the SE API) to provide a feed with ...
5
votes
1answer
37 views

Do calls on the 1.1 API and the 2.0 count against each other's limits?

Do the old 1.1 API and new 2.0 share limits? Or do my StackApps running on 1.1 calls not affect my limits for apps running on 2.0 calls?
5
votes
0answers
175 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 ...
5
votes
0answers
40 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 ...
5
votes
0answers
50 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 ...
5
votes
0answers
138 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
0answers
79 views

API Parameters: Consolidated Observations

This wiki question is meant to be a central location for observations and suggestions in the interest of shaping the API meta data. Perhaps items can be removed when accepted and resolved as ...
4
votes
2answers
237 views

Odd String Format Result from API Call

I'm just getting started messing around with the SO api, I haven't worked with JSON before, and I am getting a strange result from a basic call (No API Key). WebClient stackClient = new WebClient(); ...
4
votes
2answers
228 views

When does a rate-limit day start and end?

After reading the docs/faqs, I couldn't help but wonder... What exactly is a day? When does it start? When does it end? What timezone are you using? In other words, when my app runs out of ...