Questions tagged [api-v2]
This tag is for questions about the Stack Exchange API version 2. First released Feb 2012.
59
questions
33
votes
6answers
6k 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 Stack.PHP:
Stack....
6
votes
1answer
430 views
How to strip out certain fields from the Stack Exchange API, JSON response?
I want to fetch all my favorite questions on Stackoverflow.com and dump them as JSON. I used this API path:
/2.1/users/1310070/favorites?fromdate=1382486400&site=stackoverflow
But it is ...
119
votes
6answers
12k views
Stacky - A .NET client library (Full support for API v2.0)
Stacky - A .NET Client Library
The same great library now supports the 2.0 API!
https://bitbucket.org/lfoust/stacky
Sample Code
IUrlClient urlClient = new UrlClient();
IProtocol protocol = new ...
124
votes
3answers
21k views
StackPrinter: The Stack Exchange Printer Suite
UPDATE:
Version 1.1 - MySE section, PrettyPrint, StackPrinter API
Screenshots:
App Homepage
Printable view
Logo:
http://www.stackprinter.com
StackPrinter is a website that pulls the main ...
15
votes
1answer
2k views
Unable to get access token
I am trying to get a non-expiry access token, like so:
https://stackexchange.com/oauth?scope=no_expiry&redirect_uri={{some_uri}}&client_id={{some_value}}
I am repeatedly getting the error:
...
30
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 ...
16
votes
1answer
210 views
List of Votes by Authenticated users
In the API documentation for the question type, it says that you can access, for a specific question, whether or not the authenticated user (in the private_info scope) upvoted/downvoted the question.
...
14
votes
1answer
146 views
Give us a site's API name in the list of a user's sites
In the /me/associated method, I get back a bunch of JSON - but the api_site_parameter name is nowhere to be found.
Why? It's kind of important. Could we have it?
9
votes
1answer
134 views
Is there any support for Area 51 in the new API?
Does the new API support Area 51? Will there be support in the future?
7
votes
1answer
1k views
How to make a Stack Exchange API call, using my key
I have a Meteor application and I'm making API calls like:
var urlString = "http://api.stackexchange.com/2.2/users/"+surl;
HTTP.call ("GET", urlString, {params:{site:"stackoverflow"}},
function (...
53
votes
9answers
4k views
OBSOLETE - New Q! - Google Chrome Extension notifies you of new questions of interest and inbox messages
Obsolete. Code last updated 7 years ago. Chrome store links are long dead. Source code still available though.
Screenshots
A new question notification in Chrome 6 in Windows XP
A new answer and ...
37
votes
2answers
3k views
StacMan - .NET client for Stack Exchange API v2
Features
Supports all Stack Exchange API V2 methods through version 2.1
Easy to use: one-to-one mapping between StacMan and API methods/params
Async is easy: methods return Task<T> so they're ...
12
votes
0answers
2k 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 but is ...
18
votes
1answer
243 views
Accessing Authenticated User's Close/Delete History
I'm working on the PHP chatroom's cv-pls backlog UI. Many users and myself would like the ability to track which questions we have already handled though close/delete votes. To be able to do that I ...
9
votes
1answer
282 views
Could/Should the API evolve more agile rather than being blocked by v2 writing (and authentication) features?
The activity on Stack Apps has dwindled noticeably; this might be a topic for its own discussion, however I'd like to revisit the API roadmap beforehand to set a proper stage and expectations in this ...
148
votes
9answers
6k views
StinkingBadges - Track your progress towards long-term badges
Introduction
I was curious how far away I was from Generalist, and there are some data explorer queries that can show you your progress, but I thought it should be possible to make this work with the ...
14
votes
2answers
180 views
Get favorited tags of user
This was requested in 1 and declined because of a missing authentication method.
Now that authentication is in place, is there a way to retrieve the favorited tags of a user (myself)?
21
votes
1answer
215 views
Can we have some debug endpoints for testing corner cases?
After encountering a throttle violation today (which I posted in another question), it occurred to me that although I've put together code to handle "backoff" conditions, and potentially throttle ...
1
vote
1answer
262 views
Implicit OAuth flow is not working when the user is not logged in.
Here is the URL I am trying to use:
https://stackexchange.com/oauth/dialog?client_id=120&scope=read_inbox,no_expiry&redirect_uri=https://stackexchange.com/oauth/login_success
This works ...
12
votes
7answers
291 views
API V2 Musings: What would you like to see
Answers should take the form of feature requests/modifications that are either obviously beyond the scope of v1 and or have been status-declined or status-deferred
They will be indexed here in the Q.
7
votes
1answer
180 views
Add the 'people reached' count to the API?
Can we have the people reached statistic added to the /users/{ids} method?
The response could simply be:
"people_reached": 1000
I'm asking because it would be cool to get a network-wide number.
3
votes
1answer
3k views
OAuth redirect not completing
This is the URL that I'm entering (in Safari, cleared website data and cache; my app, uses own Cookie jar; and incognito chrome)
https://stackexchange.com/oauth/dialog?client_id=23&scope=...
12
votes
0answers
141 views
The field body_markdown is not returned for comments [duplicate]
Using the method questions-by-ids to get the comments on a particular question, I do not get body_markdown returned despite it being selected in the filter.
Here is the test query to reproduce the ...
5
votes
0answers
136 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 ...
4
votes
1answer
170 views
Is it possible to access data in real-time using the Stack Exchange API?
I want to show an animation of:
Questions being asked and answered in the most popular tag
Comments being posted
New users joining
All in real time.
Is there access to real-time data?
4
votes
1answer
2k views
API endpoints do not set Access-Control-Allow-Origin, so CORS requests fail
This looks like it might have been requested before:
Support Cross-Origin Resource Sharing
In order for CORS to work, the Access-Control-Allow-Origin header (and related headers) must be set. With ...
14
votes
2answers
709 views
Bartlett—new questions, inbox items, and reputation in OS X
Bartlett is a Mac application that lets you keep track of the most recent questions, inbox items, and reputation items on your favorite Stack Exchange sites.
You can be notified of new items by Growl ...
18
votes
3answers
977 views
StackGeography, a Stack Exchange question mapping site
Screenshot / Code Snippet
About
Ever wanted to see just what kind of locations are posting to the various Stack Exchange sites at any given time? Even if you haven't, you'll find it with ...
4
votes
1answer
2k 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 ...
14
votes
2answers
449 views
ChatterBox - user script that adds inbox integration to Stack Exchange Chat!
Screenshot / Code Snippet
About
I like Stack Exchange Chat, and with the feedbots it tends to be pretty easy to keep up with what's going on with the site. Except for one thing - my inbox.
So I ...
10
votes
0answers
258 views
Suggested Edits Queue for Mere Mortals
Screenshot
About
This Java command-line app gives you access to the Suggested
Edits queue using the
Stack Exchange 2.0 API. It is ideally
suited for users in the 2000 <= reputation < 5000 ...
5
votes
2answers
1k views
StackExchange API Java SDK
This project aims to provide a Java wrapper to the Stack Exchange API.
SDK supports Stack Exchange API V2.2
Getting Started
There are two interfaces to the library.
Query Interface
Facade ...
4
votes
1answer
84 views
How are filters created?
Can someone explain how Filters are created in the Stackexchange v2 API?
The documentation mentions the following for /filters/create:
It is not expected that many applications will call this ...
16
votes
1answer
1k views
Registering app for API 2.0 key without Oauth domain
I'm trying to register an app, but it states that I need to add an OAuth domain. But I have Enable Client Side OAuth Flow disabled, because I don't need it right now.
I basically have two questions:
...
5
votes
1answer
79 views
The API has stopped allowing CORS requests
I just noticed that a script I have that makes CORS requests to the API stopped working on Meta Stack Overflow, claiming that the domain isn't allowed by Access-Control-Allow-Origin, which is true ...
5
votes
1answer
241 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 ...
4
votes
1answer
1k 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 "...
2
votes
1answer
66 views
Is there a way (or app) to get realtime updates of new questions with a given tag?
According to Stack Exchange API not realtime?, the API does not return results in realtime, but has 1 minute delay for the same query.
Is there a system or an app that delivers new questions in ...
2
votes
1answer
102 views
What is the difference between accepted and is_accepted?
I saw there are two fields in answer type.
One is accepted, introduced in v2.2 and needs private_info access.
While another one is is_accepted without these limits.
Can somebody give an explanation?
1
vote
1answer
62 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 ...
11
votes
1answer
194 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 ...
5
votes
1answer
51 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 Stack Apps running on 1.1 calls not affect my limits for apps running on 2.0 calls?
5
votes
2answers
108 views
Stack Exchange API is returning boolean(false) For 'is_answered' On Question With Accepted Answer
When you view this question you see a closed question which has an accepted answer.
When you get the API info for it you get this:
["question_id"]=>
int(17466804)
["creation_date"]=>
int(...
3
votes
1answer
322 views
Java wrapper for the Stack Exchange API 2.0?
I've checked out StackWrap4J, but it looks like it doesn't support some of the new methods provided in the v2.0 API (specifically the ones having to do with user authentication). Does anyone know if ...
3
votes
2answers
1k views
Python library for the StackExchange v2 API? [duplicate]
So I'm aware of Py-StackExchange and pyso.py, but neither covers the v2.0 API. Does anyone know of a Python library for the 2.0 API?
3
votes
1answer
71 views
Can we get write access to user favorites?
I'd like users of my app to be able to add questions to their favourites.
Will this be added to the API as an authenticated call?
3
votes
1answer
90 views
Why doesn't the API return suggested edits on tag wikis?
Is there a reason why the API doesn't return suggested edits on tag wikis on the suggested-edits route?
3
votes
1answer
78 views
Why is “body” missing from certain inbox items?
I have run into some confusion over the presence of the body attribute in an inbox-item returned by the /inbox method.
When item_type is set to "careers_invitations", the body attribute appears to be ...
3
votes
0answers
98 views
Implicit OAuth Flow stopped working. Redirect happening to a non existent URL
The following URL is first hit when a user clicks on Login:
https://stackexchange.com/oauth/dialog?client_id=202&redirect_uri=https%3a%2f%2fstackexchange.com%2foauth%2flogin_success&scope=...
3
votes
0answers
68 views
Why is there a difference between “questions” and “search” in API?
I have a query to find the number of questions tagged java from 2012-08-01 to 2013-08-01. Running this using both /questions and /search produces different results:
https://api.stackexchange.com/2....