This tag is for questions about the Stack Exchange API version 2.
3
votes
1answer
30 views
Unable to sort /search results by creation_date
I think I may have stumbled upon a bug in /search and I'll try to describe it as best as I can.
What works:
Create a /search query with the following parameters:
fromdate: 2012-01-24
order: desc
...
1
vote
1answer
55 views
Key doesn't match a known application
I'm running into a really weird issue and I would appreciate any guidance on what I'm doing wrong. So I recently applied for an API key here on Stack Exchange and it went through fine. So let's say ...
2
votes
1answer
49 views
Update the default filter editor to use the API key
When I run a sample query using the SE API browser (is that right term?), say against /questions for example (here), I'll always see something to the effect of:
...
"quota_remaining": 9424,
...
3
votes
2answers
52 views
Is it possible to get daily reputation change for a user via the API?
I'm trying to fetch a user's daily reputation change history for a project that's still early in the planning stages. I've been trying to use the "reputation" endpoint, but it seems like I can query ...
3
votes
1answer
47 views
“Authentication Statistics” graph y-axis labels are overly granular
Yesterday there was a spike in my app's authentication requests (thanks for that, by the way ;) which has caused my authentication graph to show a much wider range of Y values than it did previously. ...
2
votes
1answer
24 views
Can I get more results/options from /users/{ids}/top-answer-tags?
/users/{ids}/top-answer-tags returns the top 30 tags for a given user. It's also the only endpoint that returns the user's tag scores along with the rest of the tag info. I'd like to use this data ...
2
votes
1answer
37 views
HTTP 500 error when calling /apps/{accessTokens}/de-authenticate with an access_token argument in GET
For almost all API calls, I pass both my key and my access_token. This doesn't exactly make sense for the "de-authenticate" endpoint, as the access token is already in the URL. Passing one anyway ...
2
votes
1answer
13 views
Is the display name meant to be escaped HTML in the 2.0 version of the API?
The display_name field of a user is HTML escaped. See here for example.
Is this expected behavior or a bug? The documentation doesn't mention it.
3
votes
1answer
51 views
After a throttle violation, could the error message include the time when the block will be lifted?
I got my first throttle violation error after running in jsfiddle some example code given to me by a library author in response to a question of mine about how to use their library.
This is the error ...
1
vote
1answer
32 views
read item in unread inbox method again
I'm getting a read item in the inbox/unread method, again. This happened before, but I can't find the post about it (I'm pretty sure you fixed/explained it). But the item is very old, not a cache ...
1
vote
1answer
37 views
Quota remaining is negative
I think I must be doing something very stupid, that I just can't see
I just registered an app, in the last ~10 minutes.
I have just been going to the /info route, no authentication or anything else.
...
2
votes
1answer
56 views
TLS security warnings from api.stackexchange.com
Each time an API request is made over HTTPS, Firefox generates the following message in the error console:
Curious, I looked up RFC 5746 and the document covers the following:
Transport Layer ...
8
votes
0answers
739 views
Stack.JS - Powerful Event-driven Library for Accessing the Stack Exchange API in JavaScript.
About
Stack.JS is the JavaScript equivalent of Stack.PHP and aims to replicate the request structure of that library as much as possible. The library is still a long ways from being complete ...
24
votes
3answers
3k views
Stack.PHP - Powerful and Extensive Library for Accessing the Stack Exchange API - Including Full Support for v2.0.
Don't know where to start?
Begin by checking out the Stack.PHP website.
Then head over here for a quick tutorial on setting up and using Stack.PHP.
About
Why you should use ...
6
votes
2answers
70 views
Increase the pagesize limit from 100
Can we increase this limit to something more reasonable (other than 100).
The cap of 100 for posts seems reasonable, however I cannot return the entire site list in one request. Due to the rapid ...
1
vote
1answer
23 views
Failed beta sites are showing up in the /sites method.
3D Graphics and Game of Go are both failed beta sites. I would not expect them to show up in the /sites list - but they do. Indeed, attempting to list questions on one of the sites fails:
...
4
votes
1answer
592 views
API endpoints do not set Access-Control-Allow-Origin, so CORS requests fail
This looks like it might have been requested before:
Add CORS headers to API output
In order for CORS to work, the Access-Control-Allow-Origin header (and related headers) must be set. With CORS ...
0
votes
1answer
68 views
API is accepting requests from other OAuth domains
I've set an OAuth domain for an application (the client_id is 24) and the following link authorizes the application:
...
0
votes
0answers
24 views
Name changes for a few methods
The following method names have been changed for reasons of consistency.
/access-tokens/{accessTokens}/read is now /access-tokens/{accessTokens}
/filter/create is now /filters/create
...
1
vote
0answers
20 views
How can I get the “follower” count for a given tag on a site?
One of the metrics (albeit a somewhat weak one) of a given tag's "health" is how many followers it has. I believe this is the count of how many users have the tag on their "Favorite Tags" list. You ...
1
vote
1answer
17 views
Would implementing both 1.1 and 2.0 APIs in an app/script to get around the API quotas be considered abuse?
In another question I asked it was established that
The ip, and user/app-pair quotas are separate in V1.x and V2.0.
So with this in mind would an app or script which implemented like methods for ...
0
votes
1answer
29 views
How do I get a filter to let through the fields I specify?
I've created a filter based on the "none" filter with include fields for all those I will need for my application. While the filter I created looks fine to me, it doesn't appear to return any results ...
2
votes
1answer
36 views
User to de-authorise app?
The API makes use of OAuth to allow queries such as /inbox/unread. In the documentation however, I cannot seem to find a way for the user to control actively the authentication:
Is there a place for ...
5
votes
1answer
87 views
API Inconsistencies
In my opinion, one of the hallmarks of a good API is that it is self-consistent. It establishes easy-to-remember conventions and then follows them.
As I'm trying to adopt the 2.0 API, I'm finding ...
1
vote
1answer
327 views
API Implicit Authentication with Python
I am working on an desktop inbox notifier for StackOverflow, using the API with Python.
The script I am working on first logs the user in on StackExchange, and then requests authorisation for the ...
4
votes
1answer
184 views
Why do I get a throttle violation after 300 requests while using a key but no access_token?
I'm doing some testing on my app, and I let it run on a machine this afternoon while I was away. When I got back, I was geting 503 throttle violation errors from my API calls.
I was calling the ...
5
votes
1answer
36 views
Do calls on the 1.1 API and the 2.0 count against each other's limits?
Do the old 1.1 API and new 2.0 share limits?
Or do my StackApps running on 1.1 calls not affect my limits for apps running on 2.0 calls?
3
votes
1answer
28 views
Could the /tags API return minimal information about synonyms?
It would be very helpful if the /tags API could provide at least a bare minimum of information about tag synonyms. Either:
Number of synonyms the tag has, if any.
Or a true/false flag for tags which ...
5
votes
1answer
48 views
filter=total is returning 0?
I'm running a very simple (and contrived) call of:
http://api.stackexchange.com/2.0/users/115730?site=stackoverflow&filter=total
I'm expecting a response of:
{"total":1}
But am getting a ...
3
votes
1answer
63 views
Why is my quota constantly decreasing?
I registered an app today (API v2) for the first time (App ID 47, LaServ), and let it run a bit with its new key. It's the only API app running on this IP (I rent the IP as part of a VPS package). ...
2
votes
1answer
18 views
No views_per_day in /info route?
I'm not particularly crying over it, just curious why the views_per_day field was dropped?
1
vote
1answer
25 views
Authentication Statistics are the same for all apps
I know the stats are new, I'm not sure if they are still in development. But they are identical for the 3 apps I have registered, given that the app's id is in the URL of the stats page, I guess the ...
2
votes
0answers
29 views
Fairly subtle filter bug between 8 am and 10 pm UTC Dec. 29th
This is a public service announcement about a bug that most people probably didn't notice, but might be biting you pretty hard about now.
Between 8 AM and 10 PM UTC December 29th, filters generated ...
1
vote
2answers
32 views
How about a regex filter in the tags API?
The tags API has a "filter" parameter but it only matches the exact substring in the parameter in the tags.
On Travel we have one kind of tags, IATA airport codes (SYD for Sydney, SFO for San ...
2
votes
2answers
33 views
What is the “inname” parameter to the /tags 2.0 API?
I'm just playing with the new 2.0 API and in /tags there is a field inname that I can't find any description or documentation for.
What does it do? Is it like the old filter parameter on the old API?
...
3
votes
1answer
27 views
What are the possible errors returned from authentication?
The title pretty much says it all,
I couldn't find in the Authentication doc much about the errors (other than the HTTP code will be 400)?
3
votes
1answer
55 views
Access token quota
The documentation says that each user gets 5 distinct quotas of 10,000 requests per 24 hours, and as I interpret it, per app.
If an application does have an access_token, then the application is
...
12
votes
0answers
291 views
API V2.0 Public Beta Begins
As has been announced, we're starting the public beta and spinning up a contest (as we did with V1.0).
As such, some of the guidelines for the private beta no longer apply.
The api-v2-beta tag no ...
0
votes
1answer
38 views
Removing/disallowing app does nothing
I have just deleted/disallowed, the console app and the app I'm currently writing.
For the console the access token I was using before deleting the app carried on working, and when I got a new token, ...
1
vote
0answers
23 views
Auth dialog improvements (who's logged in, etc)
The auth dialog (client side) could do with a bit of improvement.
Specifically, showing the currently logged in user, and a link saying "not you?". Facebook does this and allows you log in as someone ...
3
votes
1answer
356 views
Invalidating access token vs de auth app?
Other that invalidating an access token doesn't remove the app from the apps tab (why not?) whats the difference between these two methods?
1
vote
0answers
36 views
Removing StackExchange dropdown and mobile version of auth dialog
Would it be possible to remove the StackExchange drop down (hot questions, sites, inbox) from the Auth dialog?
Typically when displaying dialog, you don't want the user to start browsing questions ...
0
votes
1answer
24 views
What are the paging parameters to the info method used for?
As far as I can tell, there can only be one info object returned from the info method, so why does the method take page and page_size?
1
vote
1answer
38 views
Policy on shipping working examples that use the explicit authentication flow in an SDK?
I'd like to ship a working example of using the explicit authentication flow in Stack.PHP. I have no trouble embedding the API key and app ID in the example. The problem lies in embedding the client ...
27
votes
6answers
1k views
Draft Specification for API v2.0
We've started working on the next version of the Stack Exchange API.
The current draft specification is available, and we'd like to hear your feedback!
The headlining feature for this release is ...
15
votes
2answers
226 views
API Endpoint Changes Coming In Version 2.0
As work has progressed on the upcoming second version of our API, we've come to a bit of an impasse that's going to force a semi-radical change.
Here's the root of the issue:
once you've gotten an ...
1
vote
1answer
32 views
Point of /users/{id}/inbox?
What is the need for the user ID in:
https://api.stackexchange.com/docs/user-inbox
Given that it will only return the inbox of the authenticated user, and deny a mismatching user id.
The only needed ...
2
votes
1answer
63 views
API v2.0 Developing desktop app
If I am developing a client side application, what kind of domain should I provide to 0Auth callback? Can it be a custom application-centric scheme (like myapp://oauthcallback/)?
11
votes
1answer
144 views
API V2 Private Beta Begins
It's about time this thing got under way. If you're participating in the private beta, you should receive an email to that effect.
If you were also a member of the V1.0 private beta, you'll notice ...
2
votes
0answers
28 views
Secure OAuth pages contain insecure content.
I noticed that some of the OAuth pages use insecure content (http:// content on an https:// page):
I'm not sure how easy this is to fix but it could potentially scare off some users who don't ...