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

2
votes
1answer
201 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 ...
2
votes
1answer
36 views

How do I get a user's bio with the SE API?

Am I just missing something here or is there not a way to retrieve a user's bio with the SE API? I looked at the documentation under the "Users" section, but I didn't find anything. Any suggestions?
2
votes
2answers
234 views

Logging out so another user can log in

Just in the process of final testing for an iPad SE browser, and uncovered some odd behaviour. I'm using Google for authentication. If I deploy a clean version of the app, and authenticate, I get the ...
2
votes
2answers
404 views

Stacky JSON error

I'm trying to use Stacky to grab a question from Stackoverflow, however I always an error. The error thrown is: JsonReaderException was unhandled - Unexpected character encountered while parsing ...
2
votes
2answers
200 views

Is there an api to post questions without using the websites interface?

I wanted to post questions after a proper user authentication explained here. Is there anyway I can do this?
2
votes
2answers
91 views

Why does Stats Return a Statistics Array

Why does the stats API Call return an Array instead of just an object? Example Response: { "statistics": [ { "total_questions": 723903, "total_unanswered": 114097, ...
2
votes
3answers
79 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 ...
2
votes
1answer
78 views

Is it possible to access data in real-time using the Stack Exchange API?

I want to show an animation of: Questions being asked and answered in the most popular tag Comments being posted New users joining All in real time. Is there access to real-time data?
2
votes
1answer
33 views

Does the StackExchange API have a WSDL file?

The title pretty much says it all: Does the StackExchange API have a WSDL file to help implement access to the API?
2
votes
1answer
1k views

How to convert a (javascript) date to the API timestamp format?

When I am using this page for the Stack Exchange API /search path, I can see that it is generating time-stamps in this format: fromdate=1380326400&todate=1380412800 What is this date format? ...
2
votes
1answer
841 views

Get questions content from StackOverflow API

I need to get the question content from StackOverflow site. I already built the functions that parse the HTML for a question, and return me the question content. But, I found that there is an API, ...
2
votes
1answer
129 views

Creating a PHP script to use the stack api

I would like to know how to use the Stack API and get all questions with a particular tag. I am coding in PHP. So I would like to write a script which can get all questions with a particular tag. I ...
2
votes
1answer
46 views

Access to answers.onstartups.com via the API?

Is answers.onstartups.com available via the API? It doesn't seem to be listed in the sites list, but I know it is a StackExchange site. Asking for mainly personal reasons - I want to add it to ...
2
votes
3answers
289 views

-430 rep - why?

I just lost 430 rep. from 6777 earlier today to 6347. This seems to be localized to my account only. Why?
2
votes
1answer
27 views

Syntax for Adding a Question as a Favorite?

I would like to be able to have my application make a request to the Stack Exchange API to favorite a question for the current user. The API specifies that this can be done via: ...
2
votes
1answer
60 views

How to make a Stack Exchange API call, using my key

I have a Meteor application and I'm making API calls like: var urlString = "http://api.stackexchange.com/2.2/users/"+surl; HTTP.call ("GET", urlString, {params:{site:"stackoverflow"}}, function ...
2
votes
1answer
47 views

/users/{id} and /users/{id}/reputation disagree over +2 accept-answer bonuses

I am using the 2.2 API to display user stats by quarter, but I also want to display reputation changes between any 2 dates. I use the /users/{ids} API to get the summaries. For example, user 2403309 ...
2
votes
1answer
44 views

Is there any support for Area 51 in the new API?

Does the new API support Area 51? Will there be support in the future?
2
votes
1answer
68 views

What's the different between user_id and account_id?

What is the difference between user_id and account_id in the User object ? Both are different and I'm looking for the unique ID of the User. { "items": [ { "user_id": 2144246, ...
2
votes
1answer
49 views

Maximum length of “about me” in the Stack Exchange API?

What is the Maximum length of "about me" in the Stack Exchange API? The one from the /me path. And in general, where are the length limits published? If anywhere?
2
votes
1answer
64 views

What happened to the recent API contest?

I am curious to know the results of recent stackoverflow contest It has been removed from the api.stackoverflow page and no updates were seen. I believe that the deadline for the results ...
2
votes
1answer
28 views

Is there a way to get the edit URL for a tag wiki from the API?

I've been playing with a little webapp for tags of a certain kind for travel.SE (current pre-alpha version gist on github). One thing I would like to do is add links for the various tag-related ...
2
votes
1answer
80 views

How to limit the number of responses in Stack.PHP?

How do I limit the number of results provided by Stack.PHP (a library wrapper over the Stackexchange API)? For example, how do I get the first 50 questions tagged with a keyword? The query I ...
2
votes
1answer
90 views

Conditional GET support for chat RSS feeds?

I'm trying to use one of the RSS feeds from chat.stackexchange.com in my application. I'm using the python feedparser package for this. Feedparser supports a couple of different "conditional get" ...
2
votes
1answer
130 views

How do I get a GreaseMonkey/UserScript to interact with the Live Preview?

I've converted a script that I hope to get embedded on a StackExchange site (Lego Answers) to a GreaseMonkey/Userscript but I'd like to get it interacting with the live preview when creating or ...
2
votes
1answer
107 views

Has calling StackAuth changed for Apps?

I started upgrading to v1.1 and have an interesting problem I can't seem to resolve. When calling http://stackauth.com/1.0/sites using a .Net WebClient I receive responses successfully and I am able ...
2
votes
1answer
107 views

How do I fetch one question at a time starting from the latest?

I'm trying to fetch questions one by one, starting from the latest, so that I can create an infinite stream of questions in a Clojure program. I haven't yet been able to do so. I can't just get the ...
2
votes
1answer
198 views

What are the mechanics of private API beta badge/reputation rewards?

Update: George Edisons comments appear to explain most issues raised here (if not all), so I reformulated the question to reduce the noise and allow for an answer accordingly. I have considered to ...
2
votes
1answer
110 views

Eligibility for the competition?

I notice in the blog post that to be eligible for the comp you need to be listed in the App tab. What is the criteria to get listed on that tab? My app is tagged correctly and I think I am using the ...
2
votes
1answer
2k views

jQuery Ajax calls return null

When I enter the API URLs into my browser they work, but when I try from jQuery they just return null. When I open the HTML below, all I get is an alert that says null, despite the fact that Firebug ...
2
votes
3answers
134 views

display_name isn't always there (should have OpenID name if needed)

usually in the owner dictionary there is a display_name value to give the username. But in a few questions it simply doesn't exist and I can't see why only those questions: eg, this excerpt from the ...
2
votes
1answer
32 views

Can API stats return real revision number instead of 1234.5678?

Currently it returns like this "revision": "1.0.1234.5678" And looks like that number never changed. So, Can API return real revision number whenever there is an update? It will be very useful ...
2
votes
1answer
11 views

In lieu of write access, can a user be referred to a site with title and tags in the URL?

For an app I'm working on, I'd like to refer users to Stack Overflow instead of providing an "Ask a Question" interface. Users will enter their question and I'll be using the similar API to suggest ...
2
votes
2answers
55 views

How to set the width of an image in the body of a question?

I used the questions/{ids}/edit to add a hyperlinked image at the end of a question. It works if I use the default dimensions of the image. However, if I specify the width using width="320" or ...
2
votes
1answer
78 views

Why am I getting a 404 when trying to post a comment?

I'm dabbling around in /posts/{id}/comments/add, and I'm trying this query: ...
2
votes
1answer
59 views

Get questions with body and answers

How can I get the latest 30 questions with body and answers using the api? And then, I want to get only first most voted 3 answers for each question. Is this possible with only one request? To get ...
2
votes
1answer
42 views

Top questions by tag and period

I want to get via API the most voted questions from the latest week (for example) from a specified tag (php, for example). How can I do this?
2
votes
1answer
24 views

In the API, User object, what are all these reputation properties?

I am going through the JSON that is resulting from calling the Stack Exchange User API. I see a bunch of reputation fields. private Number reputation; private Number reputation_change_day; private ...
2
votes
1answer
67 views

Moderation request: Make “scripts” and “user-script” into synonyms of “script”

We currently have three tags that are essentially the same thing -- especially in a stackapps context. They are scripts, user-script, and script. script is one of the "required tags" and has a nice ...
2
votes
1answer
28 views

How can I get a list of favorite/ignored tags?

I can not find an API method method that would provide me with a set of favorite/ignored tags for a given user. Is there such a method? If not, is there a recommended way to get this information?
2
votes
1answer
35 views

Can you identify a user from the access_token?

I have the access_token after authentication from the user. At this point I don't know with which sites this user has registered. Is it possible to get user information like the display name or ...
2
votes
1answer
23 views

How can I re-authenticate StackAlert Addon

Recently I removed StackAlert Firefox addon from my apps list in StackExchange. Now when I reinstall it, it is not authenticating and giving message key is not valid for passed access_token.. How ...
2
votes
1answer
56 views

Get accepted answers from Stack Overflow using Stack Overflow API 2.1

I want to fetch only my accepted answers from Stack Overflow using the API 2.1 and currently I've following code $data = ...
2
votes
1answer
29 views

What's an example of the backoff field? Is there some way I can simulate it to test appropriate behavior?

In reading about the API rate limiting, the documentation talks about a method responding with an ominous backoff field, and states that the client should cease from calling that method for that many ...
2
votes
1answer
154 views

Using an existing Java oAuth implementation to access the Stack Exchange 2 Api?

I found the Scribe oAuth api and I was wondering how a call would work with the Stack Exchange API, since that uses oAuth. I'm sorta green when it comes to oAuth but I'm planning on writing an ...
2
votes
1answer
47 views

how to get the number of profile views

according to the documentation, a User object has an attribute view_count, indicating the number of views of the user's profile. An example is also given there. However, when I sent a request ...
2
votes
1answer
32 views

User profile_image dimensions

I'd like to use the user profile_image string property (which is the url of a user's avatar image e.g. http://www.gravatar.com/avatar/fbc10e7e541ba1f171a06af062bef7c0?s=128&d=identicon&r=PG) ...
2
votes
1answer
29 views

The migrated predicate on advanced_search seems underachieving

What does the migrated parameter to the advanced_search method mean? Setting it to true on CS finds only one question that has been migrated away, out of several: { "items": [ { ...
2
votes
1answer
80 views

API v2.0 Developing desktop app

If I am developing a client side application, what kind of domain should I provide to 0Auth callback? Can it be a custom application-centric scheme (like myapp://oauthcallback/)?
2
votes
1answer
45 views

Answers without owners

Is it valid for StackOverflow data to have an answer that does not have an owner? For example if you hit the following API url http://api.stackoverflow.com/1.1/answers/18, it does not bring back an ...