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
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
5
answers
4k
views
Get user data using curb/Curl in Ruby
I am trying to get user data in my Rails app.
I am doing this:
url_so = "http://api.stackoverflow.com/1.0/users/231917?type=jsontext"
curl = Curl::Easy.new(url_so)
curl.perform
data_obj = ...
3
votes
2
answers
300
views
Is there an api to post questions without using the websites interface?
I wanted to post questions after a proper user authentication explained here. Is there anyway I can do this?
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.
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.
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 ...
16
votes
2
answers
2k
views
Why does the API lack (proper) HTTP cache control headers?
I've just read Kevin's answer to Do I need API key to use StackAuth API? and been quite surprised that the API doesn't seem to facilitate proper HTTP caching already:
You really shouldn't be hitting ...
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 ...
15
votes
4
answers
770
views
Version 1.0 released 9th of July
For a lot of us, that would be next Friday.
At some point - most likely after noon PST - version 0.9 of the API will be replaced with the final 1.0 release.
There are no expected interface changes ...
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 :(
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.
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
170
views
API responses are sometimes missing fields
conclusion
never mind. the fields are marked as optional in the spec. it was late. sue me.
the q is left for reference
What is coming out:
{
"tags": [
"cakephp",
&...
9
votes
1
answer
184
views
The API v0.9 2010.06.24.002 as seen by SOAPI
Stack Overflow API as seen by the SOAPI parser and code generator:
With the API freeze, changes to the vast API should slow to a trickle, making manual maintenance possible. At this milestone, I have ...
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 ...
4
votes
1
answer
138
views
Is there an RSS feed or question that has API changes?
Is there someplace that we can find notifications of API changes? I noticed today that a new property has been added to user along with a couple new method (and maybe other changes).
Is there an ...
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.
5
votes
0
answers
572
views
Platforms Supported by the API and Response Compression
What platforms are supported for use with the Stack Exchange API?
In short, anything that can make a GET request to the API servers and supports JSON/JSONP & GZIP. (JavaScript, Python, PHP, Java, ...
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 ...
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 ...
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 ...
3
votes
1
answer
2k
views
SIlverlight 3 ClientHttp vs BrowserHttp stack: no cross domain policy means no gzip for Silverlight
I notice that even if I send accept-encoding=gzip the response does not seem to be compressed. ( it is late and i was conflating 'accept' with 'accept-encoding')
Should we expect, in the 1.0 ...
2
votes
2
answers
255
views
Is there a way to determine total number of upvotes and downvotes (etc) for a user (regardless of reputation cap)?
For example, if you use the /users/<id>/reputation call, you get a list of reputation changes for the user, but it takes the daily reputation cap into account. What I would like is an API call ...
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,
"...
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, ...
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/...
1
vote
1
answer
106
views
Abstract paged results to enable cleaner libraries
It would make great sense for paged results array property to have a common name, items perhaps.
For those writing in languages that support 'generic' constructs, this would simplify the code ...
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 ...
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 ...
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,...
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.
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
2
votes
3
answers
367
views
Can there be a way to find a user given his email hash?
Given a user's email, it would be great if we could hash it and search for that user with it.
The reason for this is suppose:
Someone has a website
On that website, they invite SO users to enter ...
3
votes
0
answers
232
views
Guidance on usage thresholds - specifically throttling [duplicate]
I am running a lot of tests and have started to get 403 errors.
I am using a key and certainly have not exceeded my quota.
Am I running foul of some yet unmentioned throttling threshold and if so, ...
5
votes
3
answers
359
views
Can we get a sandbox please?
I think that we should have some sort of a sandbox site where we can post questions, answers and comments in a controlled environment.
Currently I'm working with Stack Overflow but I can't post "...
2
votes
1
answer
148
views
Retrieving a post with a specific ID
According to this question (and its answer), questions and answers are using the same index to determine their ID. In other words:
Question with ID #1
Answer with ID #2
Answer with ID #3
Answer with ...
0
votes
2
answers
166
views
Questions with accepted answers
I know that you could technically loop through the answers returned when you ask for /questions/{id} to see if an answer has been accepted, but it would be AWESOME if there was a top level boolean ...
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 ...
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.
3
votes
2
answers
491
views
What is the correct way to get the stackoverflow.com URL for an answer via the API?
A while ago I made a little "Recently answered on Stack Overflow" sidebar widget for my homepage. Currently this works by filtering answers out of the user feed however I thought I'd update it to make ...
28
votes
0
answers
263
views
Deleting an application key? [duplicate]
There should be delete buttons on stackapps.com/apps https://stackapps.com/apps/oauth/ so we can delete API-keys.
Or at least de-activate them? I mean, cancelled projects, etc...
A deletion button ...
6
votes
2
answers
475
views
Odd String Format Result from API Call
I'm just getting started messing around with the SO API. I haven't worked with JSON before, and I am getting a strange result from a basic call (No API Key).
WebClient stackClient = new WebClient();
...
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 ...