Hot answers tagged

11 votes
Accepted

Unable to get access token

Refer to the Stack Exchange API, Authentication docs. It looks like you are trying to authenticate using either a server you do not control, or a local server that is not on the public internet. ...
  • 12.7k
4 votes
Accepted

Get the Authenticated User's email?

The API does not provide any method to determine a user's email address and it is unlikely to do so in the future. This would be a risk to both the user's privacy and his/her trust in Stack Exchange. ...
  • 12.7k
4 votes

StackPrinter: The Stack Exchange Printer Suite

status-completedI asked this as a question, but apparently the convention is to report bugs/feature requests in the announcement thread. It appears, that the MathJax extension mhchem is currently not ...
3 votes

How to deal with the "Too Many Requests" error coming as HTML?

It sounds like you've either got a bug which is in fact making more requests than you think it is, or you're on a network where there's some other source of high-frequency requests. You're not ...
  • 4,686
3 votes

Why is "body" missing from certain inbox items?

The documentation was updated sometime in the last 2 years and the API docs (version 2.2) now state that the property may be absent:
  • 12.7k
3 votes

StackPrinter: The Stack Exchange Printer Suite

The default bookmarklet javascript has problems when used with mathoverflow. Because annoyingly mathoverflow ends with a .net instead of a .com. I made some changes so that it could also work with ...
3 votes

StackPrinter: The Stack Exchange Printer Suite

Here is a small script (stackprinter) which uses Stack Printer from the command-line: #!/bin/sh type wkhtmltopdf || { echo >&2 "wkhtmltopdf command is required. Aborting."; exit 1; } :...
  • 153
3 votes
Accepted

What is the difference between accepted and is_accepted?

If the answer is the accepted answer, is_accepted is true and anyone can see it. accepted is set to true only if the currently authenticated user is the one who has accepted the answer. For instance,...
  • 12.7k
3 votes
Accepted

How to get up_vote_count and down_vote_count for a user?

You need to use a filter that returns those properties. The default filter does not. Also, the API is at version 2.2. You should use that unless you've a very good reason not to. So try, for example:...
  • 12.7k
3 votes
Accepted

Descriptions of tag-based badges are incorrect

This seems to have been silently/magically fixed in the last 7 months (Date of Nicos Karalis' comment). Descriptions seem correct now. I had verified that they weren't correct when I upvoted this ...
  • 12.7k
2 votes

I Cannot Perform Oauth

The authentication process is described in the API docs: http://api.stackexchange.com/docs/authentication.
  • 358
2 votes
Accepted

Add the 'people reached' count to the API?

Until the feature request is approved (unlikely, and a similar request has no developer love either), you can get this number in one of 3 ways: You can get slightly stale data with this SEDE query (...
  • 12.7k
2 votes

Stack Exchange API in Chrome extension

I've built an extension that uses StackExchange API using OAuth2 flow. I did not use the JS SDK and did it manually instead. Here is how I did it: function auth(sendResponse) { const scope = '...
  • 121
2 votes

"access_denied" error in the write answer at stackoverflow

You have to create a post describing your application, and edit it into your application's registration. Basically, the first arrow needs a value; and you can set it when you edit (with the second ...
2 votes

How to track the open/closed status over the history of a question?

You can get at this information, but it's messy. Using the /posts/{id}/revisions route you can query for the list of all revision events for a particular question, which includes close/reopen events. ...
  • 4,686
2 votes

Application Key and AccessToken are not working for Stack Exchange API?

In my particular case, I somehow managed to append % character to the end of the access_token. There should be no % character at the end of the access_token.
  • 163
2 votes

StinkingBadges - Track your progress towards long-term badges

On Code Review we have people getting the Generalist Badge, but the app says we only have 38 tags that qualify, could you do some updating of that for us please?
  • 251
2 votes

Stack.PHP - Powerful and Extensive Library for Accessing the Stack Exchange API - Including Full Support for v2.0.

bug support @Nathan Osman, I have been trying to get authentication working with your library (which is very useful BTW). However, whenever I use the explicit flow I end up with an error on the stack ...
2 votes

Get favorited tags of user

UPDATE: The feature appears to be present in the, so far, undocumented API version 2.3. See captncraig's answer on this page. After all these years, it looks like this might never get implemented. ...
  • 12.7k
1 vote
Accepted

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 the specific question and display the question detail page like the Stack Exchange app? Sure: use the /questions/{ids} method and apply the appropriate ...
  • 5,572
1 vote
Accepted

After which time span can my vote no longer change?

It's no different in the API than it is for the main site. From the FAQ: you may change your vote within a five minute window from the time of the first vote you cast on that post. Note that after ...
  • 5,572
1 vote
Accepted

Do my users need to be logged in, for quota?

Your app can just give them the link, and they don't need to be logged in. The quota is a function of your API key (mainly). Register your app and use a key and that will give you a 10K quota. See:...
  • 12.7k
1 vote

access_token not present in /oauth/access_token response

Unpack response content with $response->getBody()->getContents(). use GuzzleHttp\Client; Route::get('/approve', function () { header('Location: https://stackexchange.com/oauth?client_id=12345&...
1 vote
Accepted

Authentication uses # instead of `?`?

Refer to the generic URI syntax, it is perfectly valid to have a fragment (The optional part of a URL that starts with an octothorpe #) without a preceding query (The optional part of a URL that ...
  • 12.7k
1 vote

The `top_questions` field shows outdated information?

Although this can be annoying or confusing, there is no bug. Take a look at your Stack Exchange accounts page. Currently it shows: (Click for larger image) 10 questions, here on Stack Apps, and 1 ...
  • 12.7k
1 vote

Get favorited tags of user

Good news! The (yet undocumented) api version 2.3 has this feature. https://api.stackexchange.com/2.3/users/{id}/tag-preferences?access_token=...&key=...&site=StackOverflow.com will give you ...
1 vote

StackImpact - What's your impact?

Hmm… a couple of bugs in this: It doesn't seem to be accounted for that accepting your own answer doesn't earn any rep. Selecting a Sunday will make it load the previous week, instead of the one that ...
  • 111

Only top scored, non community-wiki answers of a minimum length are eligible