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
1
answer
157
views
bad_parameter when using key with todate?
I'm having trouble using my API key with the todate parameter. My query works fine with todate:
$ curl -s "https://api.stackexchange.com/2.2/search/advanced?todate=2015-07-21&site=stackoverflow&...
2
votes
1
answer
135
views
Can I pass multiple filters?
I've tried adding filter=total and filter=withbody in the same request but get the following error:
{"error_id":400,"error_message":"Invalid filter specified","error_name":"bad_parameter"}
How should ...
2
votes
1
answer
148
views
Top questions/answers
Is there a way to get a list of X questions/answers with the highest votes up, visits, etc?
Say I want to get the list of most voted questions in .NET category (tag) or Java.
3
votes
1
answer
138
views
top-answerers / top-askers documentation bug: number of results returned incorrect
The top-answerers-on-tags and top-askers-on-tags documentation claim:
Returns the top 30 answerers active in a single tag, of either all-time or the last 30 days.
and
Returns the top 30 askers ...
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....
0
votes
1
answer
83
views
How to use date parameters in the /questions API? [duplicate]
When using /questions (e.g. like this)), dates are represented by a number.
I'd like to know how I can convert a number to a date. For example if I have 1293840000, what date does it represent?
2
votes
0
answers
50
views
.wrapper not sorted correctly in filter edit popup
When editing the filter, e.g. on this API documentation page, all types are sorted alphabetically except for .wrapper which is always shown below answer, instead of above it (or at the end):
Obviously,...
6
votes
1
answer
175
views
API throws improper error when "date" parameters are the same
When using the Stack Exchange /questions API using the same date for fromdate and todate I get a 500 internal server error.
Using different dates appears to work OK but specifying the same value ...
4
votes
0
answers
71
views
Can I ask the API to tell me to back off? [duplicate]
I'm creating a bot that collects all tags from a given site (and over all sites in the network). I would obviously like to run this bot in as little time as possible, but I also do not want to overly ...
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 ...
3
votes
0
answers
98
views
All updates (answers, comments etc) using stack exchange API
Is there anyway to get information about any change using the stack exchange API's? i.e. if someone leaves a comment or votes on an answer/question?
checking for answer changes is easy cause its a top ...
1
vote
1
answer
80
views
Can I pass a filter to a write method?
I was wondering if I'm allowed to pass a filter to methods that use write access? Like for example /answers/{id}/accept. There is no "filter" parameter, and changing the filter doesn't seem to change ...
38
votes
1
answer
307
views
When API site goes offline, please return a JSON , instead of Stack Overflow alike offline HTML page
I've just noticed that my API queries are failing in JSON parsing, because of API Site shows offline HTML Page.
I wish it would return a valid JSON response, instead of HTML Page.
4
votes
1
answer
111
views
How to use shallow_user?
I can not understand how to access the summary information about the user's reputation. How to use the shallow_user object ?
I tried:
https://api.stackexchange.com/2.2/shallow-user/2765346/...
2
votes
1
answer
101
views
How do I get information about top users of a Stack Exchange community?
I was going through the stack exchange API and I want to extract information about, say, top 20 users of a particular stack exchange community. How do I use the API for that?
I tried on this page ...
3
votes
1
answer
80
views
Receive latest questions with certain tag
I'm creating a simple notification application to inform me about latest questions with defined tags. For example, my tags are python and django.
I want to see the latest asked question with those.
...
2
votes
1
answer
120
views
Authentication uses # instead of `?`?
I need authentication for my app so I used the implicit flow way. The authentication works just fine but the access_token and expires variables return weirdly!
For example:
https://example.com/#...
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 ...
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 ...
5
votes
1
answer
166
views
How to include answers when fetching questions?
I made a small cron job which crawls questions and answers from Stack Overflow.
Here is my request URL:
https://api.stackexchange.com/2.2/questions?order=desc&tagged=php&site=stackoverflow&...
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 ...
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@�...
9
votes
1
answer
699
views
How about linking Stack Exchange to IFTTT?
Why is there no channel for Stack Overflow on IFTTT?
It would be great if I can mash up the Stack Exchange website with other web-based services like Google Reader or GMail, receive a SMS or ...
5
votes
1
answer
143
views
404 "This Method cannot be called this way" when getting user's inbox
I'm doing a POST request to https://api.stackexchange.com/2.2/users/<id>/inbox to get the users' inbox items.
However I'm getting a 400 error on the request, and a JSON body saying it was a 404 ...
3
votes
1
answer
87
views
List recent tag wiki edits
I would like to list tags where the tag wiki or tag wiki excerpt was recently edited or created. How can I do this?
It is not a problem if I get a few false positives by tags modified in other ways, ...
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 ...
1
vote
1
answer
67
views
Paging issue: is /users/{ids}/associated API route returning incomplete information?
When querying to find associated accounts for a list of account ids, some ids in the results appear to be missing many of the associated sites. I have only observed this in multi-page responses. For ...
3
votes
1
answer
214
views
Search for answers/comments under questions with certain tags using the Stack Overflow API?
The advanced search (/search/advanced) API can search for questions by tags.
But /users/{ids}/answers API doesn't take tags.
I'd like to monitor answers/comments for questions with certain tags. Is ...
1
vote
1
answer
105
views
How to sort /questions/featured by bounty_closes_date
The API documentation describes tthe usage of /questions/featured. Unfortunately there does not seem to be a way to sort the result by bounty_closes_date, which is IMO the sort option making most ...
1
vote
0
answers
54
views
Overwhelmed by unorganized information [duplicate]
As you can see I am a newbie, and trying to use Stack Exchange API for a school project.
I spent 3 hours just trying to understand How to get started. Is there an example for me to follow? or A ...
3
votes
1
answer
195
views
How do I add newlines when editing a post body via the API?
I am editing the tags of a question via the API, and to do that you have to pass the body and title etc.
I can get the Markdown or HTML from the API but I can't see how to send it back formatted ...
2
votes
1
answer
100
views
Answers without owners
Is it valid for Stack Overflow data to have an answer that does not have an owner?
For example if you hit the following API url http://api.stackoverflow.com/1.1/answers/18, it does not bring back an ...
4
votes
1
answer
133
views
Getting the top answerers/users for a tag in a custom time range?
I'm trying to use the top answers on tags API to get the users who contribute the most for a given tag. Like so:
/2.2/tags/azure-web-sites/top-answerers/month?site=...
4
votes
1
answer
161
views
How can I get a user's Meta site details in the API call?
This query returns the details of the Main sites only:
/associated-users#ids=2855348
How can I get the Meta site details also in the same query?
Do I need to add any ...
3
votes
0
answers
75
views
Is it allowed to sell an app or get revenue with the use of the API? [duplicate]
I've been reviewing the terms of use of the API, but I prefer to ask my question straight here in order to be 100% sure.
Is it allowed to create an app that:
is paid, which revenue goes to the ...
3
votes
1
answer
136
views
Why do you need to specify a site when getting the inbox?
I'm getting a user's inbox via /me/inbox. I am forced to specify a site with this, so I'm setting it to Stack Overflow. However, it still gets all my notifications, including those from other sites. ...
3
votes
0
answers
96
views
Fetch the Personalized Prediction Data through the API?
Is it possible to get a user's personalized prediction data in an automated way?
I'm building a graphical visualization of this data, you can check the project here: http://jlhonora.github.io/...
3
votes
1
answer
200
views
How to access my App info
I've registered for an app yesterday, but I'm not finding where should I go to see/edit its info again.
I've search through profile, at stackexchange.com but couldn't find it.
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 ...
2
votes
0
answers
101
views
Provide a way to get display name via access token
Please include a new (network) method with the ability to gather display name and profile image directly via access token.
Right now to retrieve this information you have to first authenticate a ...
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-...
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 ...
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 ...
3
votes
1
answer
299
views
Encoding problem while accessing the API using Java
Trying to call an API URL from a Java application, I'm having problems accessing the contents of the URL.
I can access other sites through my program but not the Stack Exchange site.
But I can call ...
0
votes
1
answer
99
views
Get a great many counts of questions, by select tags for a date range?
I am trying to get the number of questions associated with a specific tag for a particular date range. I initially assumed the fromdate and todate parameters would do this. However, it appears that ...
6
votes
0
answers
476
views
Resurfacing bug: "could not parse proxy url" error message
According to this question, the "could not parse proxy url" bug was solved more than 2 years ago.
However, when using the client-side OAuth flow, the aforementioned error message appears when ...
4
votes
1
answer
120
views
Get total answers count for a specified: Tag, Userid and Date-range?
I would like to get the total number of answers provided by userid 1068142 between
01/07/2015-31/07/2015 with tag = paypal.
I have looked into this question but it does not help!
I have been trying ...
5
votes
1
answer
167
views
The StackWrap4J java wrapper gives nothing but `JSONException`s?
I'm using the StackWrap4J java wrapper for the Stack Overflow API.
But every code I try, that uses methods of this java wrapper, ends with this JSONException:
net.sf.stackwrap4j.json.JSONException: ...
-4
votes
1
answer
60
views
/tags search multiple words ("or") inname
Is there any way to search for tags... but for ex "aa bb" so I want back the tag "aa-cc" and tag "aa-ccbb". at the moment the inname searches for "aa bb" so only a tag called "aa bbcc" will be a ...
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 ...