Questions tagged [api-v2]
This tag is for questions about the Stack Exchange API version 2. First released Feb 2012.
226
questions
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",
"...
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 ...
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 ...
2
votes
1
answer
60
views
Mistake in API 2.0 Documentation - Wrong item type for Careers Message
On https://api.stackexchange.com/docs/types/inbox-item the Careers Message example shows the wrong item type.
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(...
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 ...
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 ...
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?
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 ...
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 ...
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?
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?
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-...
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?
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 ...
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 ...
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 ...
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 ...
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 ...
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=...
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 ...
2
votes
1
answer
24
views
type related_site not listed in 'by type' tab list
The type "related_site" is not listed in the 'by type' tab in documentation.
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".
2
votes
1
answer
210
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 ...
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 "...
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?
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 ...
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/...
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 ...
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 ...
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?
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 ...
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:
...
0
votes
1
answer
64
views
2.0 tags API returns only created tags
Searching for tags, using the inname parameter AND a date range returns only the tags that were created in that period, not the tags that were used in that period. When searching by inname only, or ...
7
votes
1
answer
124
views
Can we have the display_name field in the /me/associated route?
I'm reading the Authentication documentation and I've noticed that the /me/associated route returns fields like user_id, badges, reputation but not the display_name, even specifying a custom Filter.
...
0
votes
1
answer
72
views
Add message ID to inbox items
Feature request: The inbox item object should include a message_id field. The ID should identify inbox messages uniquely within StackExchange.
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 ...
6
votes
0
answers
211
views
ExchangeLinq: LINQ Query Provider for Stack Exchange API v2.0
ExchangeLinq is a LINQ Query Provider for the Stack Exchange API. It only supports API v2.0. It is currently in alpha state and is being developed for Exchange It, a Stack Exchange client for Windows ...
11
votes
0
answers
235
views
TIARA - a tool for enhancing SE beauty
About
Quality is an important area of concern for Stack Exchange sites. Immediate quality concerns are generally handled through a combination of flagging and downvoting. However, some things don't ...
2
votes
1
answer
70
views
/answers endpoint is error-500-ing against many sites
Just calling the "/answers" endpoint, no specific arguments, and I'm getting 500 errors:
http://api.stackexchange.com/2.0/answers?order=desc&sort=activity&site=gaming
{"error_id":500,"...
7
votes
0
answers
514
views
LaServ - A Python/Twisted based flexible command line bot/framework for Stack Exchange
LaServ (a play on Lazers, The Bridge's feedbot and '*Serv' bots, which provide IRC services ) is a Python/Twisted project that I've been poking at since the Christmas break. It's still beta quality, ...
1
vote
0
answers
25
views
Why are Meta sites' "site_state" = "linked_meta"?
In 2.0 there are the site_type and site_state fields. On Meta sites these fields give the same information, site_type = meta_site and site_state = linked_meta
Instead it would be more useful if ...
2
votes
1
answer
109
views
Reputation API to display a reputation history
I'm building something similar to the reputation graph / summary on the SO user page.
The answer explains that the /users/{ids}/reputation API method gives a sum of reputation for the period. So ...
8
votes
0
answers
381
views
Stack on Go - A wrapper library in Go
Stack on Go - A wrapper library in Go
https://github.com/laktek/Stack-on-Go
Sample Code
session := stackongo.NewSession("stackoverflow")
//set the params
params := make(stackongo.Params)
...
1
vote
1
answer
46
views
Inbox unread since parameter not working
The since parameter of /inbox/unread no longer seems to work.
I enter a date after the creation date of the item currently unread in my inbox and still the item is returned. I try putting in ...
2
votes
1
answer
41
views
/users/{id}/tags/{tags}/top-answers returning answers by other users
According to the description, /users/{id}/tags/{tags}/top-answers should return answers by the user on that particular tag.
Returns the top 30 answers a user has posted in response to questions ...
0
votes
1
answer
25
views
Relevance value on /similar route
Given that the /similar method can be sorted by relevance there must be a numeric rank for each question.
Would it be possible to have access to the value? Off by default, but can be enabled by using ...
1
vote
1
answer
68
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 ...
0
votes
1
answer
36
views
Why does badges/ids/recipients return badges not users?
I can't understand why badges/{ids}/recipients returns badges and not users? You must pass the badge ID in, so it should be given that you already know what the badge is. If it returns 30 objects you ...
0
votes
1
answer
35
views
Error when requesting the last page of results.
When I try to view the following URL:
http://api.stackexchange.com/2.0/questions?page=93781&site=stackoverflow
I get the error:
{
"error_id": 500,
"error_name": "internal_error",
"...