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
1
vote
1
answer
661
views
How can I use the Stack Exchange API to get the total score on answers to questions with a specific tag?
I want to use the API to get the sum of all scores of my answers to questions having a specific tag.
I started using top-user-answers-in-tags method, but it only returns the top 30, whereas I want ...
2
votes
1
answer
3k
views
Bad format returned by Stack Exchange API, not GZip?
I'm attempting to request some information using the Stack Exchange API. Supposedly, it returns responses compress with GZip. Using Microsoft's System.IO.Compression.GZipStream or Ionic.Zlib....
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?
4
votes
1
answer
308
views
How do I parse the dates from the API?
I see that JSON returned by the API contains dates in the following format:
"creation_date":1364546475
^^^^^^^^^^
What's the meaning of it? How can I parse it to get the date in the ...
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....
2
votes
1
answer
181
views
Possible to get more than 5 tags for /search? Or to use or-logic, for tags, in /questions?
This is the query I want to run:
/2.1/search?pagesize=100&page=1&order=desc&sort=creation&tagged=linux,ubuntu,bash,linux-mint,mint,linux-distributions,linux-distro,archlinux,&site=...
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?
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 ...
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 ...
10
votes
1
answer
4k
views
Get questions content from StackOverflow API
I need to get the question content from StackOverflow site.
I already built the functions that parse the HTML for a question, and return me the question content.
But, I found that there is an API, ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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?
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 ...
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
0
answers
581
views
Why does the web service fail sometimes for the Stack API?
It seems to have happened all of the sudden. My calls to the web service fails. What is the limit of calls per day with a registered app? I can't seem to remember where it says that, I can't seem to ...
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, ...
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>
<...
9
votes
2
answers
9k
views
Why can I access the API from a browser but not wget?
If I try to access the following from firefox everything works even if I'm not logged in
http://api.stackexchange.com/2.0/users/19068?order=desc&sort=reputation&site=stackoverflow
However
...
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":"...
3
votes
1
answer
74
views
Typo in API docs: "temporarility_unavailable"
https://api.stackexchange.com/docs/authentication
"temporarility" should probably be "temporarily"
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@�...
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": ...
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
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 ...
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 ...
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.
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/...
5
votes
1
answer
545
views
How to register application for API implicit authentication?
I am working on an applet to for Cairo-Dock, to check the user's StackExchange inbox. Right now I've worked around this by using the genuwine json feed, but that's not stable since posts are marked as ...
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 ...
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 ...
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 ...
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 ...
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
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" ...
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 ...
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
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 ...
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?
2
votes
0
answers
39
views
FAQ's URL for any SE Site?
Since I cannot find anything relevant in the API (I guess /stats endpoint would be most relevant):
Is it safe to assume that every SE Site has its FAQ at location: site_url/faq ?
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
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 ...
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/)