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
3
votes
0
answers
76
views
Please add "total votes on questions" and "total votes on answers" into /user/{id} API
Is there any chance that the following methods:
Total votes on questions (N.B. NOT total score but total number of votes)
Total votes on answers
Could be added to the API?
There are no threats to ...
1
vote
1
answer
60
views
Add revision diffs to API?
This may be a bit of a stretch, but I was wondering if it could be possible for the API to return the diff between two revisions? Or the next best option, to have the API return the markdown value of ...
0
votes
1
answer
91
views
Total number of superuser users...
Hi all,
I am probably doing something wrong but there seems to be a discrepancy between the data-explorer and the API. For instance,
This query has a total of 48048.
http://api.superuser.com/1.0/...
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 ...
3
votes
1
answer
105
views
API search page size limit mismatch
The 1.1 API help text for search says that the pagesize parameter can go up to 100. Indeed, passing a value up to 100 returns some results, while passing pagesize=101 yields an HTTP 400 status (Bad ...
1
vote
1
answer
177
views
How to search all Questions & Answers on specific keyword with PHPstack library?
I am trying to build a page specific to one keyword which should pull all the questions and their respective answers from Stack overflow. I tried phpstack 1.1.1, but no luck. I saw a
function search(...
1
vote
1
answer
75
views
Definitive on timeline_type?
Hi all,
I am trying to get a definitive on what timeline_type actually means...
I've looked at: https://stackapps.com/search?q=timeline_type but to no avail.
The new documentation doesn't list ...
3
votes
1
answer
97
views
Throttling Question
Hey all,
I keep getting kicked out of the API.
Is throttling set to 30 requests per 5 seconds?
j
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)...
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=...
4
votes
1
answer
78
views
API 'search' method with 'min' parameter
If you search for questions posted on time 1296897085 or later (by specifying sort=creation and min=1296897085), it may still return questions posted before that date:
http://api.stackoverflow.com/1....
6
votes
1
answer
129
views
Does there exist a method call to get unaccepted answers?
I noticed there was the method /questions/unanswered which returns questions with no upvoted answers but I'm more interested in something like /questions/unaccepted which returns all questions that ...
2
votes
1
answer
113
views
Are these requests guaranteed the return the same results?
Going over the API, there seems to be some overlap when it comes to expressing a predicate in a URL.
For example, let's say I want to fetch some questions from stackoverflow.com that have the tag "...
9
votes
3
answers
278
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 ...
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 ...
0
votes
1
answer
105
views
Coding error at open URL
Hi,
I have the following method to open a URL API
String c="";
URL direccionURL;
try {
direccionURL = new URL("http://api.stackoverflow.com/1.0/users/523725");
BufferedReader in = new ...
4
votes
0
answers
270
views
PyOverflow: Account statistics for Stack Overflow for Ubuntu!
I was bored, and I wanted to play with the API, so I came up with this little script:
It's coded in Python and has only a single image dependency.
Here is a screenshot:
Here's the source code (it's ...
9
votes
1
answer
363
views
Could/Should the API evolve more agile rather than being blocked by v2 writing (and authentication) features?
The activity on Stack Apps has dwindled noticeably; this might be a topic for its own discussion, however I'd like to revisit the API roadmap beforehand to set a proper stage and expectations in this ...
5
votes
0
answers
182
views
Selective API oriented transcript fragment of Jeffs Code Camp Video Interview.
This is a very selective API oriented transcript fragment of Jeffs Code Camp Video Interview:
Purpose
Please note that this transcript fragment is mainly a supporting post to decrease the length of ...
2
votes
1
answer
102
views
Is it possible to restrict the pool of answerers to users meeting certain criteria?
I'm expecting the answer to this is an unfortunate "no," but I've been unable to find it discussed anywhere, so here I go asking:
I'd love to use this API, but the site I'm considering would need the ...
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=...
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.?
1
vote
1
answer
1k
views
Where is the API located?
I want to know where is the API located and from where to download?
3
votes
2
answers
703
views
Silverlight download JSON from API fails
I cant seem to download the JSON for the questions on SO, I cant get the HTML and JSON from other addresses, but the SO API always returns jibberish.
Here is my code:
public void ...
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 ...
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
2
answers
473
views
Is Stack API blocking Yahoo YQL services?
I was hoping to create OpenTable definitions for Stack services to use YQL, Yahoo's SQL to the web thing. It would have been interesting for experimenting, but also for mashups.
Unfortunately, it ...
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 ...
2
votes
2
answers
162
views
StackApps API is down.
It seems to not be responding to any request.
* at least according to downforeveryoneorjustme.com
Update: seems like all the SE sites are down :(
1
vote
1
answer
62
views
questions/id is sometimes missing an owner?
Every once in a while when I query: http://api.stackoverflow.com/1.0/questions/id I get a question back that is missing the owner field. Is this expected? I haven't seen anything about owner being ...
2
votes
1
answer
165
views
what is the url for a *.stackexchange site's api?
from my understanding, the documentation suggests that we can use the api against any current *.stackexchange website
what would be the url for the api for one of these ? e.g. mysite.stackexchange....
4
votes
2
answers
2k
views
What is the throttle interval or threshold?
Resolution:
I have confirmed that a constant interval of 170 ms will run without error.
// 30 per 5 sec = 6 per sec = interval 166.6 ms
Soapi.RequestQueue.setInterval(170);
Soapi....
6
votes
0
answers
119
views
Version 1.0 of the API seems to be here!
It looks like v1.0 of the API is here now!
I waited a few minutes for an official announcement, but none came - so here it is!
Thanks a million to the team for putting this together!
1
vote
1
answer
91
views
Pro Webmasters Meta API not working.
Try this:
http://api.meta.webmasters.stackexchange.com/0.9/questions?type=jsontext
I can't get it to work, even though it's listed in StackAuth.
1
vote
3
answers
175
views
API not returning anything near the actual website
The API /questions page is not returning anything like the list of questions on the actual SO site.
This is the first question of the 0.8/questions
{
"total": 705769,
"page": 1,
"pagesize": 30,...
6
votes
1
answer
185
views
In the timeline the ability to know what events belong to what question
Take this example:
http://api.stackoverflow.com/0.9/questions/3165492;3182016/timeline
Would it not make sense to have the question_id as a parameter on each timeline object? It makes the timeline ...
4
votes
2
answers
326
views
Why does the API lack any POST methods?
Why aren't any POST methods available?
Being able to post new questions and answers would be very interesting.
4
votes
1
answer
151
views
AND searching for tags?
I am using the search api to search for questions that are tagged with "tags" and not with "tags". However I have noticed that searching for tags is an OR search.
The questions search for tags is an ...
4
votes
3
answers
341
views
Getting started: What kind of thing can we do with the SE-API that we can't do with the SE Data Explorer?
I want to know if my slender grasp of the latter will help me learn about the former.
1
vote
1
answer
103
views
/users/{id}/tags - broken
looks like touching the id parameter description broke the internet.
http://api.stackoverflow.com/0.8/users/242897/tags
should/was working
6/1/2010 -1:11AM - working
4
votes
1
answer
368
views
Strange encoding for JSON output
I'm trying to create an R API. Here's some basic code for processing JSON:
library(rjson)
fromJSON(readLines("http://api.stackoverflow.com/0.9/stats/", warn=F))
As I look into this, the output of ...
9
votes
1
answer
1k
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 ...
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 ...
0
votes
2
answers
108
views
Scratch Pad Wiki Question
This q is for use by anyone who needs to modify, add or delete an answer or to modify the q to update the last_activity field.
Leave this description, but otherwise have at it.
2
votes
1
answer
72
views
consistency for array parameters
It would simplify the api and consumption there of if all parameters that accept multiple items used a common delimiter.
We have semicolon and space that I know of so far.
Eliminating space as a ...
0
votes
1
answer
70
views
r.e. /stats fields.
I see we are getting some meta data in stats now. This is good.
I see the api path in there, but I have to assume that it is simply part of the record that is being output and is not intended as a ...
2
votes
2
answers
129
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,
"...
5
votes
1
answer
182
views
Will URLs always follow this pattern?
Many of the API endpoints return urls, such as /questions/{id} (which returns urls for question_timeline_url, question_comments_url, etc). However, the URL returned is a relative URL, like /questions/...
5
votes
3
answers
215
views
API having more rights than a 0 rep user.
The fact that the API has total_upvotes and total_downvotes makes the fact that you need 1000 rep on the sites a bit weird. Are there more things that the API knows by default, which you can only ...
1
vote
1
answer
88
views
Is there a difference between "newest" and "creation"?
When I look at some API endpoints, say /questions/tagged/{tags} and /questions/{id}, I see that the former can be sorted by newest, and the latter can be sorted by creation, both ascending or ...