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
4
votes
0
answers
108
views
API v1.1 users call returns association_id for which the Stack Exchange web site has no profile [closed]
For a particular user, the users API v1.1 call returns an association_id that gives a "Page Not Found" error where the Stack Exchange profile should be, though their Stack Exchange profile can be ...
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/...
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 ...
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 ...
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,
"...
1
vote
0
answers
87
views
Would it be a problem if my server polls the API every minute or so about 1 of my questions on my list?
I know that officially identical requests cannot be done in more than one minute.
But would it be a problem if I had a server which had a list of question IDs (say 10 per user, so reasonable max 10,...
1
vote
1
answer
108
views
/me API endpoint returning 500 error
I'm making an authenticated call to /me:
https://api.stackexchange.com/2.0/me?access_token=[redacted]&site=stackoverflow&key=[redacted]
But it's returning:
{"error_id":500,"error_name":"...
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 ...
1
vote
1
answer
115
views
Is there a maximum on the number of search results returned (using the SO API)?
I was trying to do statistics on post from some not-too-popular tags like matlab, using the search method. It appears that it will never return a total larger than 2000. Is this a hard limit that ...
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
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 ...
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 ...
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(...
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 ...
2
votes
1
answer
74
views
Is there a way to get the edit URL for a tag wiki from the API?
I've been playing with a little webapp for tags of a certain kind for travel.SE (current pre-alpha version gist on github).
One thing I would like to do is add links for the various tag-related ...
3
votes
1
answer
65
views
Querying "standard meta tags" for their tag wikis wrongly says they have none
I'm checking which tags have tag wiki excerpts in my code. It looks like /tags/{tags}/wikis is the right API since the tag info API doesn't even give a boolean for tag wiki excerpt presence.
But ...
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,...
3
votes
1
answer
74
views
Typo in API docs: "temporarility_unavailable"
https://api.stackexchange.com/docs/authentication
"temporarility" should probably be "temporarily"
1
vote
1
answer
91
views
Why don't the tags APIs expose the tag IDs?
It seems that all tags have an internal ID, for instance here on stackapps, the api-v2 tag has ID 2442 which you can only see if you edit the api-v2 tag.
As far as I can see none of the APIs expose ...
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 ...
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
107
views
How many simultaneous queries may I make of the same Stack Exchange API?
I've been playing with some of the APIs that have paged results.
I've been doing a first call with pagesize=0 to determine how many pages there are then running a loop querying each page.
In my case ...
2
votes
0
answers
78
views
Clarification on related tags for a tag returned by API
I was assuming that the related tags API call, returns all the tags that co-occur with the input tag. But a closer look at the API documentation indicate the following:
Returns the tags that are ...
1
vote
1
answer
94
views
Typo in throttle violation error message
I was just playing around with the API locally and got throttled for the questions and answers methods (the only two I was using).
Anyway, I noticed there’s a small typo in the error message that’s ...
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
124
views
Document fields that may be not be included in responses
I'd like to see documentation on what fields may not be included in responses or, alternatively, which fields are guaranteed to be included. Currently it's a little confusing because some fields may ...
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
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 ...
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 ...
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 ...
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 ...
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
0
answers
32
views
Get tags from question through an answer [duplicate]
I'd like to use this function: /users/{ids}/answers to get a list of answers from a user.
The key element that I need though is what the question was tagged as, is there a possibility of having ...
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 ...
1
vote
1
answer
65
views
Questions returned by /questions/{ids}/related do not contain link properties
The API docs claim that /questions/{ids}/related return question objects, but I can't find a link property on the returned questions at all.
Is there some sort of workaround to find the link for a ...
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....
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 "...
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 ...
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
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 ...
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.
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
92
views
Is the question_id monotonically increasing?
Just wondering:
Does the question_id monotonically increase for every new question?
Is the question_id unique globally for a deployed app or is it unique in some sub-domain?
Is there any relation ...
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/...
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
...
1
vote
0
answers
80
views
Wrong API response?
Well, if you look here, you'll see i have
"down_vote_count": 94,
But if you look here on my Stackoverflow profile, you see that my down vote count is 64.
For those who would ask if I'm sure ...
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
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
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 ...
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 ...