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
2
votes
0
answers
49
views
Okay if our Internal Customer Service Software polls the Stack Exchange API?
We are in the process of creating a number of API's and extensible software which we expect will result eventually in questions being asked on stack overflow for working with our API's and extensible ...
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 ...
6
votes
1
answer
84
views
Does the API have a method to get the total favorite count of a question?
Like it says in the title, is the total favorite count of a question exposed anywhere via the API? I know about the favorites method, but that looks like it will give you the specific favorites of a ...
4
votes
1
answer
904
views
Wrong content-type in JSONP calls
When passing jsonp parameter, the API returns "application/json" instead of "application/javascript".
I found this because if you do:
<script src='http://api.stackoverflow.com/1.0/badges?jsonp=...
3
votes
1
answer
349
views
Do I need permission to use the SE API for a commercial app?
I recently developed a mobile app using the publicly available API of one of the Stack Exchange sites.
Do I need to obtain permission from Stack Exchange before releasing the app to the public? Can I ...
1
vote
0
answers
241
views
Attribute error while using the stackoverflow api wrapper for python on IDLE
This is the code that I use to access Stack Overflow:
from stackexchange import Site, StackOverflow
so = stackexchange.StackOverflow()
for q in so.questions(pagesize=50):
print q.title
It runs ...
10
votes
0
answers
734
views
SOAPI-REST: Complete Stack Overflow API specification in machine readable format
SOAPI-REST Services
At four hour intervals, SOAPI-WATCH parses the complete Stack Overflow API documentation and generates a complete object graph representing the API including all routes, ...
1
vote
2
answers
183
views
How to get the site name from document to pass to API?
Most APIs take a parameter site which must be set to the name of the site your queries are about.
For meta.travel or travel.
But of course sites have various names, for example gaming.stackexchange....
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. ...
5
votes
2
answers
165
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 ...
1
vote
3
answers
280
views
What is the best way to provide support for an unknowable number of StackExchange sites?
I just wrote an app for Chrome extensions and received a request to make it cross-StackExchange compatible. If there's eventually going to be more sites than just the few listed and I don't really ...
0
votes
1
answer
100
views
Searching answers with API
I'm very new to the API and I was looking for a way to get answers of a user. E.g. something like if you click on a tag in your tags section of your profile.
For questions this seems to be quiet easy ...
2
votes
0
answers
72
views
How can I show recently answered questions and answers in my blog site?
I would like to showcase some of my Stack Exchange answers in my blog site. I couldn't find a relevant post on how to implement this.
Also, from what I can see, in order to use the API a user needs ...
3
votes
1
answer
65
views
The /users/{id}/timeline route is reporting incorrect totals
It seems that the /users/{id}/timeline route is returning an incorrect total. For example, the following URL is reporting a total of 1607 items:
http://api.stackapps.com/1.1/users/7789/timeline
......
4
votes
2
answers
370
views
Are there more implementation samples with Stack Exchange API 1.0? How could this API useful to me or my users?
I'm looking at how the Stack Exchange API could be useful in my site. Is it fair to say I am in read-only mode when I search for results? What is some envisioned use-case scenarios for this?
I ...
5
votes
1
answer
99
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 Stack Apps running on 1.1 calls not affect my limits for apps running on 2.0 calls?
2
votes
1
answer
108
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?
3
votes
1
answer
185
views
Has anyone *implemented* the Stack Exchange API on top of a public database dump?
It seems that the public database dumps contain nearly all of the data required to respond to API queries.
Has anyone implemented the API, backed by a copy of the public database dump?
It would be ...
2
votes
1
answer
242
views
API returning character entities in JSON
I noticed display names in the JSON contain HTML character entities; e.g.
/2.0/users/718618?order=desc&sort=reputation&site=stackoverflow
Gives me:
{
"items": [
{
"user_id": ...
2
votes
3
answers
129
views
Method /users/{id} doesn't return "about_me" if the user has never modified it
See title. When a user never modified their "about me" section the API doesn't return that, which then causes my parser to go wild returning errors. However, when a user has modified their "about me"...
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 ...
1
vote
1
answer
102
views
Posting answers via Stack Exchange API
Can I post answers via an app using the API, is it possible? And if so, what are the limitations; linked with the reputation of users?
So if someone has 1 reputation he can also post answers, like a ...
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 ...
4
votes
0
answers
308
views
Stack Tunnel - WebGL Visualization for Stack Exchange
Stack Tunnel
Screenshots
About
StackTunnel is a WebGL visualization which displays the latest questions from any Stack Exchange site interactively within your web browser. You can click on the ...
5
votes
1
answer
187
views
What timezone is used in the API?
When a timestamp is used, for example the fromdate parameter in /questions, what timezone are dates in? Is the number supposed to be in milliseconds or in seconds?
To get the current time to pass as ...
6
votes
2
answers
210
views
OR operator for StackOverflow API
I'm trying to get a list of questions from the SO API for a number of tags,
At the moment I am using the ; operator to separate the tags in the URL but the thing is this only brings up questions that ...
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
253
views
Using the API directly from JavaScript
Is there any way I can use the API directly from JavaScript without any Server side proxy? I know of the inter-domain restrictions, but can we do it somehow in case of facebook API right?
5
votes
1
answer
107
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?
1
vote
2
answers
334
views
Is there an SO API which can fetch all Questions & Answers for a particluar Keywords
I am looking for an API which helps in fetching all the Questions & Answers from SO and other Stack Exchange sites only on a particular "keyword". Later using XML RPC these questions will be ...
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 ...
5
votes
0
answers
264
views
Apigee API Console for the Stack Exchange API
Screenshot / Code Snippet
About
Apigee API Consoles make it easier to learn, explore and test APIs by letting you browse all methods, send and view request/response pairs and share what you are ...
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.
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 ...
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
1
answer
247
views
Retrieving JSON via the API using Ajax does not work
I tried to retrieve information of my user profile on Stack Overflow via the API using Ajax/jQuery. But it does not work for me. The result of the request is always empty.
<html>
<...
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 ...
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 ...
3
votes
1
answer
103
views
Is there an API to fetch tags related to a given tag?
I'm interested in making a tool that explores the tags of a site for tags which should be merged or mention each other in tag wikis etc.
On the page of any given tag there is a column on the right of ...
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
1
answer
215
views
API ignores jsonp callback after initial request - erroneous caching?
This bug is still prevalent, appears to be cache related. Two identical requests return different data: first request respects jsonp query parameter, all subsequent requests ignore it until (I presume)...
-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 ...
2
votes
1
answer
79
views
Is question_id unique across all stackexchange sites?
The standard structure of a question URL is:
http://site.com/questions/question-id/title
Example:
http://stackoverflow.com/questions/457927/git-workflow-and-rebase-vs-merge-questions
It is however ...
2
votes
1
answer
135
views
Pagination of users ordered by reputation
I know I can retrieve a page of users ordered by reputation using these apis:
http://api.stackoverflow.com/1.1/users/?sort=reputation&order=desc&page=1
http://api.stackoverflow.com/1.1/users/...
1
vote
1
answer
99
views
Get all sites of type "main_site"
Is there a way to get all sites of type main_site from the /site method?
If not, what's the best way to get that list? Should I get all sites with a huge pagesize and then filter it in my App?
0
votes
1
answer
373
views
What's the best way to mashup a social network with StackOverflow?
I’m experimenting with an integration project where I mashup a user’s LinkedIn connections and StackOverflow activity. Are there any relevant APIs on StackOverflow that could be used to integrate ...
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 ...
6
votes
1
answer
121
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 (http://api.stackoverflow.com/1.0/search?tagged=...
2
votes
1
answer
93
views
Are there any plans to add Inbox functionality to SO API?
So, 3rd party applications will be able to notify users about new answers and comments.
4
votes
1
answer
180
views
what should be the duration between each call to stackoverflow api for getting new questions?
I have a desktop app which pings stackoverflow api after every 2 mins to get the new questions.?