Frequent Questions
760 questions
3
votes
1
answer
123
views
Paging fails at 10K items for /search on any site but Stack Overflow
There's a problem with requesting more than 10,000 items.
With Stack Overflow it works just fine.
But with Super User, Server Fault, etc. no items are returned for requests for items after the 10,...
3
votes
1
answer
174
views
What's the relation between access_token, key, quota_max, and throttling?
From How API Keys Work (FAQ) I read that the limit of requests per day per IP is 300 without a registered key, or 10000 with it.
And this is what I see by experimenting myself: since I've not ...
3
votes
1
answer
298
views
Localhost test Stack App authentication: error 'redirect_uri' does not match
I tried the answer at "Can the redirect_uri contain port number"?
But I am getting the following error:
Provided redirect_uri does not match the redirect_uri this code was created with
My access ...
3
votes
0
answers
42
views
Call to search/advanced is treating tagged as an AND search, not OR [duplicate]
The docs for search/advanced (https://api.stackexchange.com/docs/advanced-search) have this to state about the tagged attribute:
"tagged - a semicolon delimited list of tags, of which at least ...
3
votes
1
answer
186
views
Is dev.meta.stackoverflow.com gone?
Sorry If I am posting in wrong place, but when I try to login to dev.meta.stackoverflow.com today, I got password protected page and looks like previous password is not valid anymore.
3
votes
1
answer
100
views
Add information to badges/{id} method.
Currently, there is no practical way to retrieve badge information given its ID. I would like to see title and description added at the very least.
Current method for retrieving the data:
call the /...
3
votes
3
answers
791
views
How to format an url-friendly slug for question urls
I would like to construct a slug starting from the question title.
It would be useful to apps that want to show the original link to the question in a human readable way.
On StackPrinter i have this ...
3
votes
1
answer
310
views
PLACEHOLDER - How to get write_access to comment/answer on Stack Exchange
I'm trying to integrate the Stack Exchange API into my web app so I can fetch all posts as well as I can post answer or comments on them. I have successfully got access_token for no_expiry and ...
3
votes
1
answer
164
views
Permission request form is broken, approve button is hidden, css variables are missing
You can check that form doesn't work with this link https://stackoverflow.com/oauth?client_id=17581&scope=no_expiry&redirect_uri=http://functional.localdomain:3449/login/github
3
votes
0
answers
931
views
Stack2XML - A JSON to XML Conversion Service
About
Stack2XML is a web service that fulfills API requests on your behalf and converts the results to XML before returning it to you. The purpose of this service is to support those languages / ...
3
votes
1
answer
371
views
Web SENotify - Stack Exchange website new question notification
Screenshot
About
This website is a notification tool of new question on Stack Exchange website.
License
Public Domain
Download
Download http://senotify.jeb.be/ content (html, css, js from)
Platform
...
3
votes
2
answers
491
views
What is the correct way to get the stackoverflow.com URL for an answer via the API?
A while ago I made a little "Recently answered on Stack Overflow" sidebar widget for my homepage. Currently this works by filtering answers out of the user feed however I thought I'd update it to make ...
3
votes
1
answer
387
views
What write in app access for sending data
Here is my app's code:
However, I get this error:
3
votes
1
answer
416
views
iOS Client for stackoverflow always throws redirect_uri not a valid uri
I tried to use the Stack Exchange API to authenticate the user.
I have registered my app with redirect_uri as stackexchange.com/oauth/login_success.
But it always throws "redirect_uri is not a valid ...
3
votes
0
answers
116
views
stackcpp - An asynchronous C++11 library for the StackExchange API
stackcpp is an asynchronous C++11 library for the StackExchange API!
Code Snippet
Here's a small example of the API in action:
#include <iostream>
#include "stackcpp/client.h"
int main() {
...
3
votes
1
answer
428
views
"OAuth request must be over HTTPS" when request is over https
I had a bug reported to me that I was able to reproduce. When authorizing to my Badges webapp, we get the following error:
error: invalid_request
error description: OAuth request must be over ...
3
votes
1
answer
118
views
Answers information with tags
I am trying to chart the up votes on answers received by a user by tags. Something like:
I am running into the same situation as this question: How to filter getAnswersForUser by tag?.
If the answers ...
3
votes
1
answer
183
views
How to calculate users, who have posted (question/answer) using specific tag?
For example, if I want to know the number of users who asked and answered about PHP.
Currently, I can just get the list of questions and its total number, but it's not enough, because one user could ...
3
votes
1
answer
299
views
Encoding problem while accessing the API using Java
Trying to call an API URL from a Java application, I'm having problems accessing the contents of the URL.
I can access other sites through my program but not the Stack Exchange site.
But I can call ...
3
votes
1
answer
390
views
Java wrapper for the Stack Exchange API 2.0?
I've checked out StackWrap4J, but it looks like it doesn't support some of the new methods provided in the v2.0 API (specifically the ones having to do with user authentication). Does anyone know if ...
3
votes
0
answers
189
views
What's the proper way to fetch the score of all answers of SO?
I wrote a small program querying the SE API to grab the public scoring data of all SO answers (excluding the last 3 days).
Basically the request I do gets me this:
Questions[]:
Id
Title
...
3
votes
0
answers
86
views
Why is there a difference between "questions" and "search" in API?
I have a query to find the number of questions tagged java from 2012-08-01 to 2013-08-01. Running this using both /questions and /search produces different results:
https://api.stackexchange.com/2.1/...
3
votes
1
answer
123
views
OBSOLETE - List Area51 discuss in the StackAuth sites list
The API works for Area 51 discuss, but it isn't listed on the site list. Would it be possible to add it so software using the API can access it without adding specific code for it?
3
votes
1
answer
148
views
Help with javascript SDK configuration
The following problem is REAL! All names have been changed to protect the innocent.
I have a site at "http://Something.github.io/MyRepository/Directory/index.html"
And I have my app configured like ...
3
votes
1
answer
159
views
How to check if a given question is changed
What is the fastest way to check if a question is changed using the API calls?
For my purpose (a cache), a question is considered changed if:
A new comment is added to the question or to any of its ...
3
votes
1
answer
109
views
How can I get user links in the API call like Twitter, GitHub and so on?
I'm trying to get the user's user links from his profile. Like this person
has GitHub and Twitter links on his profile. How can I get those?
3
votes
0
answers
176
views
davidism's sandbox and misc apps
This app registration supports development environments for the following projects by enabling OAuth and API access locally:
sopython (GitHub) is the official website of the Python chat on Stack ...
3
votes
1
answer
265
views
Getting global information (Stack Exchange) about a list of users
I'm working with the API for several weeks (see my app here) and I'm trying to get the username of a particular user from its Stack Exchange ID.
It's possible by querying /users/{ids} but it returns ...
3
votes
0
answers
226
views
HamStare: Basic automation for chat
Get it from Github!
HamStare is the last word in disapproving stares. Now, roll your own! Out of the box is how it is configured for me, but if you have a little knowledge of Javascript (or not), it ...
3
votes
1
answer
438
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 ...
3
votes
1
answer
3k
views
Searching on Stack Overflow and using the API give different results?
I am trying to use the Stack Exchange API to see the trends on different topics.
Looking at the API documentation, I see that I could do this using the /search path (it's documented that this method ...
3
votes
0
answers
49
views
/associated should include user's display name and the api_site_parameter
/associated should include api_site_parameter
The /associated routes return the site_name and site_url but not the api_site_parameter.
It would be useful if it did because api_site_parameter is ...
3
votes
1
answer
101
views
Can we get write access to user favorites?
I'd like users of my app to be able to add questions to their favourites.
Will this be added to the API as an authenticated call?
3
votes
0
answers
48
views
bounties_offered are not being returned correctly from /users/{ids}/reputation
When querying the /users/{ids}/reputation API route, reputation changes for bounties_offered are not being returned correctly.
In my own results, I see a reputation object with a reputation_change ...
3
votes
2
answers
1k
views
Python library for the StackExchange v2 API? [duplicate]
So I'm aware of Py-StackExchange and pyso.py, but neither covers the v2.0 API. Does anyone know of a Python library for the 2.0 API?
3
votes
0
answers
69
views
Room Topic Change Helper
When the room topic changes, don't you wish you knew what it used to be before the change? Well now you can!
This script automatically updates room topic change posts with the previous topic so you ...
3
votes
1
answer
136
views
Why do you need to specify a site when getting the inbox?
I'm getting a user's inbox via /me/inbox. I am forced to specify a site with this, so I'm setting it to Stack Overflow. However, it still gets all my notifications, including those from other sites. ...
3
votes
1
answer
195
views
How do I add newlines when editing a post body via the API?
I am editing the tags of a question via the API, and to do that you have to pass the body and title etc.
I can get the Markdown or HTML from the API but I can't see how to send it back formatted ...
3
votes
1
answer
217
views
Will the new traffic measuring formula be available via the API as well?
From this MSO answer:
stackexchange.com/sites was just updated today to use a new formula for traffic. Area 51 is still using the old formula, but will be updated soon to use the new formula.
...
3
votes
0
answers
156
views
Moderation request: Please make `app-key` a synonym of `api-key`
Refer to Are "api-key" and "app-key" the same thing?.
Although I've now retagged the questions that used app-key, there are still plenty of places where the redundant term is ...
3
votes
1
answer
155
views
Why is there no /answers route?
As I was answering this question, https://meta.stackoverflow.com/questions/66403/find-answers-with-max-upvotes, I found myself wondering, quite late in the game, why there is not an /answers route ...
3
votes
1
answer
178
views
Inbox item not marked as read after viewing [duplicate]
Accessing inbox items using the following url:
/me/inbox
Unread inbox items remain unread (is_unread = true) even after that specific item has been read using the API (v2.1).
The items are marked ...
3
votes
1
answer
325
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 ...
3
votes
1
answer
129
views
Why is "body" missing from certain inbox items?
I have run into some confusion over the presence of the body attribute in an inbox-item returned by the /inbox method.
When item_type is set to "careers_invitations", the body attribute appears to be ...
3
votes
0
answers
88
views
Regional 12-hour timestamps
This script is a modification of Kip's "Display absolute timestamps (in local time)"; I have his permission to post this. Most of the credit for the script goes to him.
About
This script ...
3
votes
1
answer
331
views
Soapi.LastSeen - List users by last access time
Soapi.LastSeen
About
Soapi.LastSeen lists the top 3,000 users of any Stack Exchange site by last access time.
License
GPL - source code in Soapi.CS demos and provided below.
Download
Soapi.LastSeen ...
3
votes
0
answers
185
views
Good looking, higher quality Stack Exchange flairs!
Higher quality flair for your Stack Exchange accounts.
Want a flair like this?
Or this:
Or even this?
It's easy! Simply use this URL:
https://timtjtim.co.uk/API/1.0/flair/SITENAME/USERID/COLOR
...
2
votes
1
answer
197
views
Is there an easy way to get user reputation via API?
I am looking for an easy way to access user reputation so that I can write a small react component and display my rep on my portfolio site.
I want to make this package available on NPM and have ...
2
votes
1
answer
162
views
Area 51 sites api [duplicate]
Why does http://api.stackoverflow.com/1.1/usage/stackauth-methods/sites not list Area 51 (http://area51.stackexchange.com/)
2
votes
1
answer
195
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 ...