Questions tagged [api-v2]

This tag is for questions about the Stack Exchange API version 2. First released Feb 2012.

Filter by
Sorted by
Tagged with
32 votes
6 answers
7k 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....
Nathan Osman's user avatar
  • 23.3k
6 votes
1 answer
646 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 ...
Sachin Jain's user avatar
127 votes
4 answers
22k 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 ...
systempuntoout's user avatar
119 votes
6 answers
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 ...
lfoust's user avatar
  • 6,075
15 votes
1 answer
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: ...
user34257's user avatar
  • 185
31 votes
6 answers
2k 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 ...
17 votes
1 answer
247 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. ...
Nick Peterson's user avatar
9 votes
1 answer
162 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?
asheeshr's user avatar
  • 193
8 votes
1 answer
2k 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 (...
Sasikanth's user avatar
  • 183
54 votes
9 answers
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 ...
Adam's user avatar
  • 809
38 votes
2 answers
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 ...
Emmett's user avatar
  • 481
21 votes
1 answer
228 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 ...
agent86's user avatar
  • 3,277
18 votes
1 answer
274 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 ...
kittycat's user avatar
  • 507
13 votes
0 answers
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 ...
Nathan Osman's user avatar
  • 23.3k
9 votes
1 answer
313 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 ...
Steffen Opel's user avatar
  • 1,380
3 votes
1 answer
4k 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=...
Jonathan.'s user avatar
  • 3,128
149 votes
9 answers
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 ...
agent86's user avatar
  • 3,277
14 votes
2 answers
258 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)?
oschrenk's user avatar
  • 241
12 votes
7 answers
303 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.
11 votes
0 answers
143 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 ...
user avatar
7 votes
1 answer
215 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.
ᔕᖺᘎᕊ's user avatar
  • 4,365
5 votes
0 answers
153 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 ...
Steffen Opel's user avatar
  • 1,380
4 votes
2 answers
222 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?
Rakesh Adhikesavan's user avatar
4 votes
1 answer
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 ...
agent86's user avatar
  • 3,277
1 vote
1 answer
306 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 ...
Nathan Osman's user avatar
  • 23.3k
19 votes
3 answers
1k views

StackGeography, a Stack Exchange question mapping site

Screenshot / Code Snippet (source: apphb.com) 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 ...
patridge's user avatar
  • 435
16 votes
1 answer
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: ...
PeeHaa's user avatar
  • 315
15 votes
2 answers
732 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 ...
yuji's user avatar
  • 273
14 votes
1 answer
164 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?
user avatar
13 votes
2 answers
501 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 wrote ...
agent86's user avatar
  • 3,277
11 votes
0 answers
283 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 ...
Marvin Pinto's user avatar
11 votes
1 answer
210 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 ...
Kevin Montrose's user avatar
6 votes
2 answers
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 ...
Sanjiv's user avatar
  • 325
6 votes
1 answer
131 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 method ...
Arvindh's user avatar
  • 61
5 votes
1 answer
104 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?
Sathyajith Bhat's user avatar
5 votes
2 answers
134 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(...
kittycat's user avatar
  • 507
5 votes
1 answer
265 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 ...
hippietrail's user avatar
5 votes
1 answer
56 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?
hippietrail's user avatar
4 votes
0 answers
104 views

Implicit OAuth Flow stopped working. Redirect happening to a non existent URL [duplicate]

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=...
Prasanna's user avatar
  • 348
4 votes
1 answer
87 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 ...
Tim Stone's user avatar
  • 4,686
4 votes
1 answer
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 "...
agent86's user avatar
  • 3,277
4 votes
1 answer
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 ...
neydroydrec's user avatar
3 votes
2 answers
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?
Kristian Glass's user avatar
3 votes
1 answer
351 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 ...
Alex Lockwood's user avatar
3 votes
1 answer
89 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 ...
Nathan Osman's user avatar
  • 23.3k
3 votes
0 answers
76 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....
Sarath Saleem's user avatar
3 votes
1 answer
73 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?
David Snabel-Caunt's user avatar
3 votes
1 answer
198 views

Getting global information (Stack Exchange) about a list of users

I'm working with the API for several weeks (see my app here) and I'm trying to get the username of a particular user from its Stack Exchange ID. It's possible by querying /users/{ids} but it returns ...
A.L's user avatar
  • 289
2 votes
1 answer
88 views

The /questions endpoint only returns around 30,000 items where 400,000 are expected

I use stackr library and I registered an api key as the library mentions "since it increases your daily quota of queries from 300 to 10,000." So I use the following code, which worked fine ...
cottinR's user avatar
  • 23
2 votes
1 answer
63 views

After which time span can my vote no longer change?

I came across a toast that appears when I try to change my vote that I made a few days ago. Is it documented somewhere after which time span you can no longer change your vote? Or does the API ...
Norbert Bartko's user avatar