Skip to main content
10 votes
Accepted

How can I quickly get an access token for personal use?

It's possible to authenticate yourself via the command line; there's no need to set up a website or so. Open the application page via https://stackapps.com/apps/oauth and make sure the option 'Enable ...
Glorfindel's user avatar
  • 6,965
6 votes
Accepted

Does a closed and/or deleted Stack Apps post still provide access to the API?

I've just done a couple of tests with my placeholder app. Even though the question is closed, I was able to generate a new access token (following the regular procedure) for my sockpuppet account, and ...
Glorfindel's user avatar
  • 6,965
3 votes
Accepted

Accessing the Stack Exchange API not on behalf of an user?

You only need to use OAuth if you are trying to add or modify data (including votes). If you want to do that, your app must log in as a user, no exceptions. If you just want to read or search data, ...
Brock Adams's user avatar
3 votes
Accepted

Cannot get redirect_uri to work

There have been no reported changes to the API, officially for many years, (unofficially since January). But, frankly that script's approach should have never worked. OAuth credentials are sent to: &...
Brock Adams's user avatar
2 votes
Accepted

I have created a lot of access_token with no_expiry scope while experimenting. How do I delete them?

This is what the /apps/{accessTokens}/de-authenticate route does. Passing valid access_tokens to this method causes the application that created them to be de-authorized by the user associated with ...
Brock Adams's user avatar
2 votes
Accepted

How to use /me to display my profile data in StackExchange API?

For read requests, you must send the token (and key) in the URL. For example: https://api.stackexchange.com/2.2/me?site=stackoverflow&key=dp55hR5Wr9UhOJReA6F2gg((&access_token=...
Brock Adams's user avatar
2 votes
Accepted

"Could not parse uri [redirect_uri]" when trying to authenticate

It's not explicitly mentioned in the documentation (perhaps because it uses the term URI, and says it must be 'under' a domain), but for the redirect URI I always use a 'full' address, including the ...
Glorfindel's user avatar
  • 6,965
2 votes
Accepted

Get access token for matrix bridge

Yes, you do. The only way to get access token is via authentication, and you need a registered application for that. What you don't need is a public post here to announce your application; that is ...
Glorfindel's user avatar
  • 6,965
1 vote

OAuth Domain can't satisfy redirect_uri AND Proxy url

What you need to do is to uncheck Disable Desktop Application OAuth Redirect Uri. This will allow your app to redirect to stackexchange.com without requiring it in the OAuth Domain. Your OAuth domain ...
Lakshya Raj's user avatar
1 vote
Accepted

If a client authenticates, will API requests be counted on their profile?

If you are using an access_token in a request to the SE API, then the quota which that request is counted against is the 10k requests/day for that user+application pair. Each user can have up to five ...
Makyen's user avatar
  • 1,676
1 vote
Accepted

Why is no_expiry "strongly advised against"?

It is a security best practice. Tokens should be short-lived. They should be so short-lived that once captured the damage caused/cost to restore by a compromised token should be minimal. This means ...
rene's user avatar
  • 2,897
1 vote

How do I add a comment to a post through the Stack Exchange API?

For posting comments, you need a request key for your application: Applications should be registered on Stack Apps to get a request key. Request keys grant more requests per day, and are necessary for ...
Glorfindel's user avatar
  • 6,965
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 ...
Glorfindel's user avatar
  • 6,965
1 vote

Localhost test Stack App authentication: error 'redirect_uri' does not match

I get the reason: Do not use gem 'omniauth-stackexchange', '~> 0.2.1' ,but instead of gem 'omniauth-stackexchange', git: 'https://github.com/nashby/omniauth-stackexchange.git' The reason see this:...
sylor_huang's user avatar
1 vote
Accepted

The new implicit authentication dialog doesn't handle comma-delimited scopes

This appears to have been silently fixed, sometime in the last year. Now, both: https://stackexchange.com/oauth/dialog?client_id=1515&scope=read_inbox,write_access,private_info&redirect_uri=...
Brock Adams's user avatar
1 vote
Accepted

oauth 2.0 based on stackexchange api and fetch user details

You can do this using the /me endpoint or the /me/associated endpoint. /me Returns the user associated with the passed access_token. Use this if you want to get user info for a specific site (e.g. ...
Alex's user avatar
  • 126

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