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
1 vote
1 answer
44 views

Can I search for the most favoured questions via the API

This came to me after reading this post. I had a look at the API page and I wanted to find a way to search for the most Favoured questions. Is there a way to do this? I tried to manipulate the URL ...
Deesbek's user avatar
  • 111
3 votes
1 answer
5k views

How to convert a (javascript) date to the API timestamp format?

When I am using this page for the Stack Exchange API /search path, I can see that it is generating time-stamps in this format: fromdate=1380326400&todate=1380412800 What is this date format? How ...
Sarath Saleem's user avatar
4 votes
1 answer
73 views

API for getting multiple (yet specific users)

I am developing one app which will be used internally in our company. We are recommending our colleagues to contribute to StackOverflow. To keep the moral of employees high, I am planning to develop ...
Rahul's user avatar
  • 223
6 votes
0 answers
107 views

The "advanced search" path returns very wrong results for the `q` parameter

I'm trying to search for a string. It's a hardware identifier 10ec:8168 and should be unique to that make/model of chip. Any questions that mention is should be relevant. But compare the site search ...
Oli's user avatar
  • 253
3 votes
1 answer
526 views

Receiving error "Unexpected domain on proxy URL"

I am currenty trying to write my first ever stack exchange application and was using the SE Jaavascript SDK v 2.0 for this purpose. I am stuck on the point of authenticating the user. I followed the ...
Prahalad Deshpande's user avatar
1 vote
0 answers
228 views

/oauth/access_token not redirecting back to my redirect_uri

I am trying to implement Stack Exchange using oAuth 2.0. I am able to get CODE but, when I try to get access_token through this code: <?php if(isset($_GET['code'])) { ?> <form method="...
Amit Parmar's user avatar
1 vote
1 answer
63 views

How to get the question title for reputation history entries?

I'm trying to implement a simple rep list, much like as seen on Stack Exchange sites. What I would like is to get three things: the rep change amount, type of change, and question title. However, ...
user avatar
18 votes
1 answer
276 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
14 votes
1 answer
165 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
0 votes
1 answer
49 views

Support for OR constraint when querying questions based on tags [duplicate]

Right now, there is no way (as far as I know) to query for questions based on multiple tags using an OR constraint. You can query for questions tagged with multiple of these tags, but not with one or ...
tolgap's user avatar
  • 103
1 vote
1 answer
102 views

Most of the url are missing the protocol

Maybe you were trying to fix the other "bug" I've pointed out, but now most of the url for the icons are missing the protocol! { "site_type": "main_site", "name": "Stack Overflow", "...
Enrichman's user avatar
  • 133
5 votes
2 answers
136 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
2 votes
1 answer
77 views

Stack Exchange API is returning non-existant/incorrect notices for questions

When you view this question you do not see any notices other than the protected notice at bottom. Also, you are able to edit the answers and question (provided you have the privilege). However, when ...
kittycat's user avatar
  • 507
14 votes
1 answer
146 views

Stack Exchange API is not returning the close vote counts for questions

When you visit this question (with proper privs) you can see that there are 2 close votes cast for it. However, if you access the information for this question using the Stack Exchange API you get ...
kittycat's user avatar
  • 507
2 votes
1 answer
86 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?
Ionică Bizău's user avatar
4 votes
1 answer
88 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
3 votes
1 answer
65 views

In the API, User object, what are all these reputation properties?

I am going through the JSON that is resulting from calling the Stack Exchange User API. I see a bunch of reputation fields. private Number reputation; private Number reputation_change_day; private ...
Nicholas DiPiazza's user avatar
2 votes
1 answer
60 views

How do I get a user's bio with the SE API?

Am I just missing something here or is there not a way to retrieve a user's bio with the SE API? I looked at the documentation under the "Users" section, but I didn't find anything. Any suggestions?
daviesgeek's user avatar
2 votes
1 answer
49 views

How can I get a list of favorite/ignored tags?

I can not find an API method method that would provide me with a set of favorite/ignored tags for a given user. Is there such a method? If not, is there a recommended way to get this information?
Andrey Shchekin's user avatar
1 vote
1 answer
62 views

CDN redirect for the API's JavaScript SDK is incorrect

The API's JavaScript SDK is listed as https://api.stackexchange.com/js/2.0/all.js. However, GET request produces the following response: Status Code: 301 Moved Permanently Location: https://api-...
Andrey Shchekin's user avatar
2 votes
1 answer
101 views

Maximum length of "about me" in the Stack Exchange API?

What is the Maximum length of "about me" in the Stack Exchange API? The one from the /me path. And in general, where are the length limits published? If anywhere?
Nicholas DiPiazza's user avatar
0 votes
1 answer
87 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 ...
rekire's user avatar
  • 185
1 vote
1 answer
84 views

How do I find a user by their `display_name`?

I am using Serel (the Ruby wrapper) and would like to be able to find a user by their display_name. As it stands right now, I can only find them via an ID - like Serel::User.find(1,2,3). I tried ...
marcamillion's user avatar
2 votes
1 answer
152 views

Can you identify a user from the access_token?

I have the access_token after authentication from the user. At this point I don't know with which sites this user has registered. Is it possible to get user information like the display name or ...
aldrin's user avatar
  • 155
1 vote
1 answer
62 views

Ability to sort answers by number of revisions via StackExchange API v2?

I was curious whether there was a way to easily find which StackOverflow answer has the highest number of revisions and/or to sort by that metric. I see mention of a sort function in the ...
Gary S. Weaver's user avatar
1 vote
1 answer
35 views

What sizes are the images available through the /sites endpoint?

I see logo_url, icon_url, favicon_url, high_resolution_icon_url... But I wasn't able to find any information about any of those images in the documentation. Are any of them fixed size? And/or is ...
Mark Rushakoff's user avatar
0 votes
1 answer
381 views

Serel returns a JSON Parse error for the 'C#' tag

When I try requesting the tag c# via Serel, I get an error. This is the error I am getting: INFO][2013-02-25 02:06:42] Making request to /2.0/tags/c#/info?site=stackoverflow&key=mykey JSON::...
marcamillion's user avatar
2 votes
1 answer
169 views

How do I find all questions/answers per a tag?

Would also be good if I could also find the top questions/answers in a particular tag - i.e. questions tagged with Ruby or PHP. Per the docs the only thing I can see that will return questions in a ...
marcamillion's user avatar
2 votes
1 answer
53 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 ...
Eugen's user avatar
  • 123
3 votes
1 answer
90 views

Creating a home brew Push Server for Stack Exchange

I'm looking to create a home brew push notification server for Stack Exchange. This is mainly due to the fact that Toast Notifications within Windows Store applications are done using Windows ...
James Mertz's user avatar
6 votes
0 answers
231 views

Net::StackExchange2 - Perl Wrapper for StackExchange API (it's on CPAN)

About This library is a little labour of love for two things dear to me : StackOverflow, a place where I've learned just so much, and Perl a cryptic language that's giving me perspective. I happen to ...
gideon's user avatar
  • 207
3 votes
1 answer
65 views

Problem with /search tagged and max

Seems like a problem with /search when max is not set to today, and tagged is given: https://api.stackexchange.com/2.1/search?order=desc&max=1358294400&sort=activity&tagged=java&site=...
jogloran's user avatar
  • 423
10 votes
1 answer
1k views

SEAPI - A lightweight Python wrapper for the Stack Exchange API

About A lightweight Python wrapper for the Stack Exchange API v2.1. Built with Requests. Why yet another SE API Python wrapper? (I'm aware of Stack.PY - A Python Module for Accessing the Stack ...
Piotr Migdal's user avatar
3 votes
1 answer
90 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
14 votes
2 answers
259 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
2 votes
1 answer
73 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 ...
B Seven's user avatar
  • 121
2 votes
1 answer
116 views

Is there a difference between the API search and the search from within the site?

I'm curious if the search results from the API is calculated the same way as the searches from within the sites themselves? Is there a difference between the two? If so, what are the differences?
James Mertz's user avatar
2 votes
1 answer
209 views

Using an existing Java oAuth implementation to access the Stack Exchange 2 Api?

I found the Scribe oAuth api and I was wondering how a call would work with the Stack Exchange API, since that uses oAuth. I'm sorta green when it comes to oAuth but I'm planning on writing an ...
Manny Fleurmond's user avatar
4 votes
1 answer
51 views

Typo in the docs for /me

The doc says: Returns the user associated with the passed auth_token. This method returns a user. It should say "access_token" instead of "auth_token".
Adam Lear's user avatar
  • 358
3 votes
1 answer
59 views

Is the "link" URL enough to uniquely identify an "inbox_item"?

I've been looking at the documentation on the inbox_item type, and I was wondering what is the correct way to uniquely identify an inbox_item? Is the "link" URL enough to uniquely identify an "...
Alex Lockwood's user avatar
3 votes
1 answer
36 views

When will the "site" field be absent from an "inbox_item"?

According to the documentation on the inbox_item type, the site field "may be absent". Under what circumstances will this occur?
Alex Lockwood's user avatar
2 votes
1 answer
64 views

how to get the number of profile views

according to the documentation, a User object has an attribute view_count, indicating the number of views of the user's profile. An example is also given there. However, when I sent a request /2.0/...
G.Z.'s user avatar
  • 135
4 votes
1 answer
81 views

What does "Unchanged in unsafe filters" mean?

Could someone clarify what this means? For example, what does it mean that the short_description field is Unchanged in unsafe filters for a Privilege?
Alex Lockwood's user avatar
5 votes
1 answer
65 views

Typos in the API 2.0 Documentation

Typo #1: There are two different objects that represent a user in the Stack Exchange API, the full user object and the smaller shallow_user object. Which is returned depends on the method being ...
Alex Lockwood's user avatar
3 votes
1 answer
352 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
5 votes
1 answer
53 views

Can I search over SE using SE API if I have only a username?

How do I can find someone's userid if I have only their username? For example, my real username is: Zagorulkin Dmitry My Stack Overflow userid is: 1321404 Are there any API methods for this kind ...
Dmitry Zagorulkin's user avatar
5 votes
1 answer
44 views

/posts/{id}/revisions breaks for posts with [tag:*] content

Attempting to access (at least) the revisions route for a post with a revision involving the [tag:*] syntax causes an error: Example on Meta Stack Overflow (Post History) Example on Mathematica (Post ...
Tim Stone's user avatar
  • 4,686
2 votes
1 answer
95 views

/suggested-edits "Try it": Link for "suggested_edit_id" is broken

When using the "Try it" feature on /suggested-edits, the link for the suggested_edit_id points towards stackexchange.com and not towards the respective site. For example, retrieve data ...
Sirko's user avatar
  • 295
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
3 votes
0 answers
49 views

How to get network profile username?

I was thinking I could just get the username from the response of /users/{ids}/associated (where {ids} is the not-site-specific id). But then realised that it returns only network_user (even though we ...
Jonathan.'s user avatar
  • 3,128