Questions tagged [api-v2]
This tag is for questions about the Stack Exchange API version 2. First released Feb 2012.
226
questions
2
votes
1
answer
59
views
The `top_questions` field shows outdated information?
I am using Stack Exchange API. I posted question from the doc page /questions/add to Stack Overflow. This was my first question. As that question was to check the function /questions/add, means it was ...
2
votes
2
answers
286
views
How to set the width of an image in the body of a question?
I used the questions/{ids}/edit to add a hyperlinked image at the end of a question. It works if I use the default dimensions of the image. However, if I specify the width using width="320" or style="...
2
votes
1
answer
118
views
AttributeError with Py-StackExchange
i'm trying to execute this python script :
#! /usr/bin/python
import stackexchange
so = stackexchange.Site(stackexchange.StackOverflow)
my_favourite_guy = so.user(41981)
print my_favourite_guy....
2
votes
1
answer
81
views
Advanced search API not returning data for "phonegap" tag
I am trying to gather results from the API for the tag phonegap but the API is not returning any data.
I am using /search/advanced and get nothing back for November:
{
"items": [],
"...
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 ...
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,"...
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 ...
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.
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 ...
2
votes
1
answer
38
views
Answer vote counts are not correct
I was trying to figure out the total number of answers I have that have been downvoted, and at first everything seemed awesome since the total was zero.
However, I knew this wasn't correct. For ...
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.
2
votes
1
answer
40
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
1
answer
60
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 ...
2
votes
1
answer
79
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 ...
2
votes
1
answer
20
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?
2
votes
2
answers
135
views
Once authorized, is there a way to auto-login with a browser?
Assuming I've created an app that authenticates the user against api-v2, is there a method to get a token or cookie that I can pass to a browser instance set to load a stack exchange site that will ...
2
votes
1
answer
136
views
Am I out of luck if my http client doesn't support gzip decoding?
I'm playing with the oauth2 support in v2-beta with an http client that doesn't support gzip decoding. (My client is http spec compliant but can't deal with the non-compliance of the api on this issue)...
2
votes
0
answers
46
views
How to get user information of Stack Overflow?
I'm currently using the Stack Overflow API to get a user's information (via Stack Exchange).
Is it possible with the Stack Overflow API to get user details?
2
votes
0
answers
24
views
/revisions/{ids} returns results where revision_number is always 1
As of now, Code Review Question 59285 has three revisions, excluding the original question.
If I fetch those three revisions using the API, I see that all of them have revision_number set to 1.
That'...
2
votes
0
answers
108
views
400 when posting a question to the Stackexchange API
I am adding a question via the API and I manage to create a preview of my question (See JSON extract below).
{
"has_more" = 0;
items = (
{
"creation_date" = ...
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?
2
votes
1
answer
95
views
No answer_id for Comment on answer inbox_item
According to the API documentation on inbox_item, inbox items corresponding to a comment on an answer to a question should have an answer_id field identifying the answer that the comment was on, but ...
2
votes
1
answer
33
views
Is data retrieved from /events dependent on the access token used to retrieve it?
This may seem like a bit of an unusual question at first but I'll try to explain where it's coming from. My PHP wrapper (Stack.PHP) offers a caching class that follows the guidelines in the API docs ...
2
votes
1
answer
47
views
There is a small discrepancy in the docs for users-id-associated
The main doc page, https://api.stackexchange.com/docs, shows /users/{id}/associated while the method page, https://api.stackexchange.com/docs/associated-users, uses /users/{ids}/associated.
It's ...
2
votes
1
answer
38
views
integer and decimal are used to describe fields in return types but not in method parameters
Integer and Decimal designations are useful in creating an accurate model of API methods and types.
These specific 'number' subtypes are used when describing types but the method parameter lists all ...
2
votes
0
answers
31
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
/filter/{filters}...
2
votes
0
answers
38
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 ...
2
votes
0
answers
31
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 ...
1
vote
2
answers
68
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 ...
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 ...
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
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 ...
1
vote
1
answer
180
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:
https://stackexchange.com/oauth/dialog?client_id=24&scope=no_expiry,...
1
vote
1
answer
33
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 ...
1
vote
1
answer
70
views
How can I the question detail page and add comments like the Stack Exchange app?
Can we get the list of data when clicking on a specific question and display the question detail page like the Stack Exchange app?
I can't find the API to get them so far, so I decided to display the ...
1
vote
1
answer
74
views
Do my users need to be logged in, for quota?
I am building an application and want to showcase relevant Stack Overflow questions. I have made the request and getting a response, but its responding with a quota value:
"quota_max": 300,
"...
1
vote
1
answer
293
views
access_token not present in /oauth/access_token response
When using the explicit OAuth authentication for apps, I have problems receiving the access_token. A user goes to /approve and is then forwarded to approve the app. When redirected back to my site I ...
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, ...
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",
"...
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-...
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 ...
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 ...
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 ...
1
vote
1
answer
44
views
Running queries from the Documentation pages hangs browser for minutes at a time
I've been playing with some queries on the documentation page, and I've noticed that it's taking an abnormally long time to load even reasonably sized API call results:
https://api.stackexchange.com/...
1
vote
1
answer
307
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 ...
1
vote
1
answer
40
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
1
answer
48
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 ...
1
vote
1
answer
66
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.
...
1
vote
1
answer
38
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 ...
1
vote
0
answers
508
views
OAuth login fails for Stack Exchange and Facebook, but not Google
I'm integrating with Stack Exchange API on iOS 6 & 7. To authenticate, I load up a UIWebView with the OAuth page. Google login works well, but Stack Exchange and Facebook do not. Are these ...