Questions tagged [api]
Questions about the Stack Exchange API *only*. If your question concerns any other API, do not use this tag. For bugs, please (also) use the version tag, EG [api-v2.2], that the bug applies to.
454 questions
1
vote
1
answer
159
views
Getting questions that have a specific tag or tags?
In the current API (2.1 and 2.2), how do you get questions that have a specific tag or tags?
EG:
All Stack Overflow questions asked in the past 2 months tagged 'ruby'?
All Stack Overflow questions ...
0
votes
1
answer
509
views
Get UserId by passing email ID in the Stack Exchange API? [duplicate]
The Stack Exchange API is mostly based on 'ids'. IE
/2.2/users/{ids}/top-tags?site=stackoverflow
How can we get {ids} for a particular user using his email id or name? Is there any method available ...
4
votes
1
answer
136
views
What's the difference between the Stack Exchange API and the Stack Overflow API?
I heard about the Stack Overflow API. Is there a Stack Overflow API available. Or is it the same as the Stack Exchange API?
5
votes
1
answer
97
views
Which reputation events are private?
I've been reading the API documentation on retrieving a user's reputation history (docs/types/reputation-history)
and Stack Overflow's description of how reputation is calculated.
But, I can't find ...
3
votes
0
answers
54
views
/answers API request returns no tags if body_markdown is included [duplicate]
This API request to /answers has the filter set to return the tags field for the corresponding question. It works fine:
api.stackexchange.com/docs/answers#filter=!9YdnSPElz
But, when the filter is ...
16
votes
2
answers
2k
views
Why does the API lack (proper) HTTP cache control headers?
I've just read Kevin's answer to Do I need API key to use StackAuth API? and been quite surprised that the API doesn't seem to facilitate proper HTTP caching already:
You really shouldn't be hitting ...
0
votes
1
answer
65
views
What about actually identical requests?
Now, it says here that I should not make lots of semantically equivalent requests. It also says that there is a lot of caching. So I was wondering, what about exactly identical requests. Should I wait ...
1
vote
1
answer
204
views
How to increase the allowed number of API calls?
Stack Exchange provides the possibility to do a limited number of API calls per day from the same IP (10,000 if the customer registers the app).
Is it possible to get that number increased?
2
votes
1
answer
417
views
Best strategies for calling the API with full throttling support?
I know this would be subjective on a normal SE site but as the relevant chat rooms are mostly dormant, we have no meta site, and nobody noticed when I asked if this kind of question is OK here, I'm ...
4
votes
0
answers
101
views
Add a special page where developers can reset throttle timeouts
As George Edison noted, it would be useful to have a special page where developers can reset the throttle timeout when we accidentally trigger it.
This happened to me this morning — I got banned for ...
2
votes
1
answer
195
views
Stack Exchange API not realtime?
I was testing the inbox/unread API but noticed that there is a big delay between one gets a message, and this message gets included in the API response. Like one minute or more.
Is this API not real-...
21
votes
1
answer
268
views
Can we have some debug endpoints for testing corner cases?
After encountering a throttle violation today (which I posted in another question), it occurred to me that although I've put together code to handle "backoff" conditions, and potentially throttle ...
12
votes
2
answers
213
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 ...
2
votes
0
answers
60
views
Request: Mark inbox items as read, now that API 2.2 is here [duplicate]
Now we have write API, can we get a method for the inbox to mark inbox items as read?
Previously I believe the reason for not having this was the risk of apps marking items as read without the user ...
2
votes
2
answers
141
views
Total Number Of Answers
I need to find the total number of answers submitted by a user on stackoverflow. I tried the following:
I got my json from the following:
https://api.stackexchange.com/users/2440312/answers?site=...
2
votes
1
answer
132
views
"We are no longer accepting questions from this account.". Error with write access, using the API
I have created an application for testing write-access APIs. After registration, I can successfully retrieve an access token by hitting the URL:
https://stackexchange.com/oauth/dialog?client_id=3973&...
3
votes
1
answer
73
views
How can I access all questions asked by an arbitrary user?
Within the web app for courses I organize, I'd like students to be able to provide their Stack Overflow username, so that we can pull in their most recent and unanswered questions. This information is ...
3
votes
1
answer
144
views
Is developing, with the Stack Exchange API, possible on my local machine?
I'm sorry if this question seems trivial for the most of you but I'm not very familiar with OAuth and the Stack Exchange API.
Is it possible to use this API in local environment for the development ...
5
votes
0
answers
183
views
Filter doesn't consistently return comment bodies
I've been trying to set up a filter I can use with /questions/{id}/answers/ (using the UI at this link), which returns the following fields:
answer:
answer_id
body_markdown
comments
...
1
vote
1
answer
129
views
How to sort by the newest question?
I'm trying to retrieve the latest questions posted in a particular tag.
What's the equivalent for:
http://stackoverflow.com/questions/tagged/php?sort=newest&pagesize=15
I see that v1.1 API is ...
2
votes
1
answer
262
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:
https://api.stackexchange.com/2.1/posts/144890/comments/add?site=meta.stackoverflow&key=ArbQthisismykeyjyecuJQ((&...
4
votes
1
answer
97
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.2/questions/{id}/...
1
vote
1
answer
6k
views
How to programmatically retrieve the access_token from client-side OAuth flow?
I'm making an application in C# and I need to both search and post answers, so I need an access token.
I found some information, libraries, and code pieces:
The authentication guide for the Stack ...
4
votes
0
answers
96
views
How can I get unread messages for inbox testing? [duplicate]
I use /users/{id}/inbox/unread method to get unread items in a user's inbox. But how could I test it if I have no unread items in my inbox?
How can I get/generate unread messages for testing?
P.S. ...
3
votes
1
answer
115
views
Can I retrieve the API interfaces via the API?
I'd like to retrieve a list of methods with their arguments/defaults and their return types through automated means. Is this possible and, if so, how can I do it?
This isn't just for curiosity's ...
5
votes
1
answer
101
views
Possible to get a user's flag history?
Is it possible to retrieve a signed-in user's flagging history, preferably with the status of the flag?
I looked at the /me/timeline docs, and noticed it doesn't return flags. Is this type of ...
2
votes
0
answers
119
views
Unhelpful error message when attempting to authenticate [duplicate]
I moved my app to a different server as part of a rewrite, and forgot to update the URL of the app on Stack Apps. When I tried to send a query to https://stackexchange.com/oauth and pass my (old, ...
0
votes
1
answer
287
views
Post to Stackoverflow
Is it possible to post a question to Stack Overflow using PHP in the same way that it's possible to post content to Facebook?
2
votes
1
answer
276
views
C# Stackexchange Questions API [duplicate]
I need to build an web application C# and below is what I'm stuck with
Can I use Stack Exchange's API with Key? Do they have a "hello world" key can be used for learning purpose.
I wish to get the ...
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 ...
7
votes
1
answer
586
views
No website (yet), how to register?
I just started developing a Stack Overflow client, and wanted to add authentication. I found out I needed to register for that and wasn't sure if it was okay to register your app when it is not yet ...
6
votes
1
answer
173
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 ...
1
vote
1
answer
260
views
Implicit OAuth authentication is not redirecting
I'm trying to build a simple iOS application , with login feature to stack overflow network.
I've read the documentation and choose to use Implicit OAuth2.0.
I've already registered an StackApps, so ...
3
votes
1
answer
163
views
CodeTipper - Easily reward quality content with BitCoin, DogeCoin and LiteCoin tips!
CodeTipper
https://codetipper.com
About
CodeTipper provides an easy way for you to express your appreciation for the quality advice, and expert assistance that Stack Exchange users provide everyday ...
2
votes
1
answer
95
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
0
answers
96
views
How switch user accounts on the same device?
The Problem
I'm integrating Stack Exchange API on iOS (iPhone). I've run into a situation where I can't log out and authenticate with a different account. I am stuck with the first account that I have ...
4
votes
0
answers
75
views
API response doesn't indicate the nature of a rejected question POST
I have a question, which I post to Stack Overflow. The addition of the answer gets rejected and I know that it is due to the fact that I used the tag coredata rather than core-data.
When I do this on ...
4
votes
0
answers
71
views
Please add a "self answer" flag to the answer results/object
Is there an easy way to tell if an answer is from the question poster?
I'm working on Blaze, and I'm grabbing answers from the /answers method. I'd like to indicate if the answer is from the question ...
2
votes
0
answers
81
views
Version used by StackExchange API if version is not specified in api calls
I have used some StackExchange API calls in my chrome extension - StackEye. With the release of API 2.0, I want to update the api calls so I wanted to know
New things available in 2.0+ which were not ...
5
votes
1
answer
135
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:
...
2
votes
0
answers
278
views
Stack Overflow question downloader in markdown or HTML format?
I want to download a series of questions from Stack Overflow; is there a tool or API that can do this? The download could be in markdown or HTML format. I basically want an offline reference for those....
1
vote
1
answer
106
views
Abstract paged results to enable cleaner libraries
It would make great sense for paged results array property to have a common name, items perhaps.
For those writing in languages that support 'generic' constructs, this would simplify the code ...
7
votes
0
answers
141
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 ...
2
votes
0
answers
89
views
Would it be possible (in a future API release) to combine queries?
I've been doing a lot of work on StackMobile lately and I made the following observation:
Many of the pages (especially the ones that display a user's profile) make a number of requests to display ...
2
votes
1
answer
169
views
How to use the Stack Exchange API in PhoneGap?
I want to write a program using PhoneGap. How can I use the Stack Exchange API in PhoneGap?
4
votes
0
answers
625
views
What should I put in redirect_uri for implicit OAuth 2.0
From the document I can't figure out what value should I put in redirect_uri if I want to implement iPhone app. I try https://stackexchange.com/oauth/login_success but it not work and show this error
...
-3
votes
1
answer
108
views
How do I make sure my access_token gets passed?
I am authenticating via the explicit method, but I still get a 502 throttling error. Is my key not getting passed?
Do I need to pass the access_token with the request? if so. How do I do that.
I am ...
3
votes
0
answers
94
views
Include creator in tag_synonym
When I looked at recent tag synonyms there is a Creator row, but I can't query this data with the API.
I'd like to see this data added, and a list of all approves would be nice too.
6
votes
1
answer
136
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 ...
0
votes
1
answer
75
views
Support for OR constraint when querying questions based on tags [duplicate]
Right now, there is no way (as far as I know) to query for questions based on multiple tags using an OR constraint.
You can query for questions tagged with multiple of these tags, but not with one or ...