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
0
votes
1
answer
53
views
Sort options explained
I have read the doc here but I'm quite confusing because I still don't understand the semantic behind each options. Would you like to detail the different options ?
activity (default)
votes
creation
...
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 ...
1
vote
1
answer
518
views
Stackoverflow API - get “received” upvote count of a user.
I'm currently using the Stackoverflow API to get a list of detailed user information (via http://api.stackoverflow.com/1.1/usage/methods/users-by-ids). There is an attribute called "up_vote_count" ...
2
votes
2
answers
246
views
User "authentication" (validation?) in V1 of the StackExchange API
In a previous question, it was asked whether it is possible to authenticate a user through the Stackoverflow API? The short answer was no, not until version 2. Now I would like to know: is there any ...
3
votes
1
answer
347
views
API Time zone difference problem
I am writing a .NET application with the Stack Exchange API (using the Stacky library) and I am using it to ask the server for some questions that occured in the last hour. However, I and the server ...
2
votes
1
answer
118
views
Better way to find activity changes in terms of API Usage
I am coding an application that notifies events in Stack Exchange accounts. I want to notify about badges/reputation changes, and also I would like to notify whenever a new answer or comment is posted ...
9
votes
1
answer
4k
views
List all tags in use on stackoverflow
I am trying to list all tags used on stackoverflow here: http://api.stackoverflow.com/1.1/usage/methods/tags and I cannot seem to list all.
How do I do it?.
2
votes
1
answer
75
views
Reputation losses aren't reflected in the API
This includes reputation recalculations (e.g., the latest) and (speculative) when people take upvote back.
First case you can see on standard stackauth/users query: it displays meta reputation before ...
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/)
12
votes
2
answers
1k
views
Why does this Stack Overflow API query return binary data?
The Stack Overflow API query
http://api.stackoverflow.com/1.1/search?tagged=javascript&intitle=%3Cdiv%3E
returns what appears to be binary data:
���I�%&/m�{J�J��t��$ؐ@�������iG#)�*��eVe]f@�...
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 ...
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 ...
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
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
2
votes
1
answer
892
views
Any guarantees on JSON string encoding?
According to the JSON specification, JSON can be returned in one of five string encodings:
UTF-8 (the default encoding)
UTF-16 Little Endian
UTF-16 Big Endian
UTF-32 Little Endian
UTF-32 Big Endian
...
3
votes
1
answer
109
views
How many ids is 'too many'?
This answer mentions limit on amount of ids included in queries like /users/{id}/mentioned, but I can't find actual amount mentioned anywhere.
Now, I could run binary search and find out, but I ...
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
225
views
Getting Question data using stack.PHP fails after a certain number of requests
I am trying to build an RSS feed that includes any/all questions that I have answered, and been accepted as the correct answer.
I am running into an issue where I'm sending too many requests and ...
1
vote
1
answer
121
views
fromdate is ignored for /posts/{id}/comments requests
The api docs:
http://api.stackoverflow.com/1.0/help/method?method=posts/{id}/comments
The test request.
You can see comment itself here, it's four months old, while cutoff date in request is less than ...
30
votes
1
answer
1k
views
Announcing API version 1.1 and Roadmap
As has been announced on the blog, we're rolling out a minor revision of our existing read-only API.
While the blog post gives some high level details, I figured [app] developers would appreciate some ...
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
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=...
3
votes
1
answer
144
views
Add Twitter accounts on the /sites route?
Would it be possible to add references to the site Twitter accounts in the /site listing?
If your wondering what I'm talking about:
blog.stackoverflow.com/2011/01/twitter-question-feeds-for-stack-...
1
vote
1
answer
195
views
Non-verbatim search strings in py-stackexchange
I am writing a python program with py-stackexchange that takes a query and returns a list of urls to questions with that query in the title.
Here's the code:
#!c:/Python27/python.exe -u
import sys
sys....
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 "...
27
votes
1
answer
510
views
Provide a way to retrieve questions and answers that have been deleted
Could you please provide a way to retrieve deleted questions/answers?
Your database contains that data, until you hard delete it, so it would be useful for us to have the chance to play with it.
I'm ...
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 ...
4
votes
1
answer
332
views
Retrieving list of c# questions
I am trying to retrieve list of C# questions using http://api.stackoverflow.com/1.0/questions?title=true&tagged="c#".
But I get JSON response related to c questions.
Response :
{
"...
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 ...
5
votes
1
answer
773
views
Is it possible to authenticate a user through Stack Overflow API?
Is it possible to use the Stack Overflow API to authenticate a given user identity such as with Facebook, Twitter, or OpenID?
If it's possible: Can you tell me the method (s) that make this happen?
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>
<...
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 ...
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 ...
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 ...
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(...
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
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
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.
...
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=...
6
votes
1
answer
226
views
Please add tags to answers
Update: This was completed as of API version 2.1.
When querying any API method which returns answers (/users/ids/answers, /answers/ids, etc.) the result does not include the tag information for the ...
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 ...
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 ...
3
votes
2
answers
364
views
What am I allowed/not permitted to do with the API?
I have a site that will offer technical help and assistance for a certain niche of computer users. I can either host my own forums, or tie in with stack... but I want to be able to make money off it ...