Questions tagged [support]
You need help with the use of the Stack Exchange API, apps built on the API, or assistance building scripts that work on Stack Exchange websites.
858 questions
1
vote
1
answer
455
views
`key` is not valid for passed `access_token`, token not found (although seemingly valid authentication)
I've made an authentication flow for my app (which wants to read your inbox and sent notifications on your desktop). Which can be found here
For this, I have created a stack app on this site. With the ...
2
votes
1
answer
498
views
"Could not parse uri [redirect_uri]" when trying to authenticate
I was just reading into this API and wanted to test it out before I would use it in a project.
I have added an application on this site and got all of the keys.
When I try to authenticate a user with ...
5
votes
1
answer
451
views
How to solve bad_parameter error?
I'm trying to make the Stack Exchange API request using the key provided by Stack Apps. But whenever I try it always throws the below error.
{'error_id': 400, 'error_message': "key doesn't match a ...
6
votes
1
answer
177
views
Does a closed and/or deleted Stack Apps post still provide access to the API?
Registering your application as a Stack Apps app is necessary in order to obtain a higher request quota, authentication and write access to the API.
What happens if the question is closed because of ...
3
votes
0
answers
38
views
A script to freely re-assign/remap/rebind the Stack Exchange hotkeys
the original Stack Exchange announcement from 2014
At least the hyperlink Ctrl + L and code Ctrl + K shortcuts go against the common web standards — in combination with the SE editor not behaving ...
1
vote
1
answer
413
views
How to register a Stack App with explicit OAuth 2.0 flow to a third party site?
I am about to integrate a Stack Overflow app to a third party website / integration service (Zoho).
The third party website's documentation mentioned that the redirect URL is https://deluge.zoho.com/...
4
votes
0
answers
88
views
Get total question views via API
I can currently get the total number of questions for a tag by using the total filter. This works well, but I'd like to get a total views count for the questions in that tag. I could iterate over each ...
4
votes
1
answer
81
views
Does `inquestion` support multiple question ids?
The q parameter has an inquestion operator that can take a question id.
Can it take multiple question ids?
My use-case is as follows:
I want to get an array of questions with their excerpts.
However,...
3
votes
0
answers
173
views
How to get write_access to comment/answer on Stack Exchange
I'm trying to integrate the Stack Exchange API into my web app so I can fetch all posts as well as I can post answer or comments on them. I have successfully got access_token for no_expiry and ...
4
votes
1
answer
123
views
How to 'publish' an app after the development is complete?
I followed the steps and created a StackApp (registering a new OAuth app) and added a StackApp post as per question - My app has to be published first? But it's still under development
Now that my ...
2
votes
1
answer
189
views
How to get all tags' descriptions from the Stack Exchange API directly?
I know I can get one tag description by request such as "https://api.stackexchange.com/2.2/tags/tag_name/wikis?site=dba".
But if I use it more than hundreds of times, I will get a ...
3
votes
2
answers
796
views
Can't Decompress Stack Overflow API in Swift
I am using the Stack Overflow API in Swift but keep getting an error:
The data couldn’t be read because it isn’t in the correct format.
whenever I try to use the JSON as shown in code below
func ...
2
votes
0
answers
225
views
Applications must have a registered Stack Apps post to write
I have problems with registered Stack Apps, I've tried different combinations, but it doesn't work.
OAuth Domain
9924033ab80e.ngrok.io/
Application Website:
http://9924033ab80e.ngrok.io/
Application ...
3
votes
1
answer
1k
views
How can I extract user information on Stack Overflow using Python and the Stack Overflow API?
I am new to Python. I want to extract a user bio, answers, questions they made in Stack Overflow.
Can I do that using the API? For example, can I extract the user: name bio and number of questions ...
1
vote
0
answers
191
views
Having Trouble Setting Up OAuth for App
I am trying to build an app but I can't get the authentication right.
I have been following the steps here:
https://api.stackexchange.com/docs/authentication
I keep getting the below error no matter ...
5
votes
1
answer
170
views
How to get total visited days and consecutives of an user?
I checked docs , there are no endpoints to get total visited days and consecutive days. Is there any way to get them?
1
vote
1
answer
168
views
App post got deleted
I'm currently writing an app using the Stack Exchange API.
Today I wanted to rework the login component, but after signing in I get the following message:
Application must have a registered Stack ...
1
vote
1
answer
78
views
Missing total when tag is not URL-encoded
When trying to get a list of questions for the C# tag, the total field was missing. Tried with Python tag and the total was included.
/2.2/questions?order=ASC&sort=creation&site=stackoverflow....
1
vote
1
answer
110
views
Can I ask questions about features and functionalities of the Stack Exchange Android App here?
Is the "Stack Apps" Stack Exchange site the appropriate site to ask questions about features and functionalities of the Stack Exchange Android App?
It says 'Apps' in the title, sure, but you'...
5
votes
1
answer
2k
views
Desktop login URL: WebBrowser hangs (.NET) - JavaScript endless-loop
I am using .NET 4 and trying to use the desktop authentication via the web-browser control (WPF and/or WinForms; StackApp NNTP bridge for accessing StackExchange forums (like StackOverflow)).
It seems ...
5
votes
1
answer
123
views
Is there a way to fetch my flag quota?
I would like to stop flagging when I start running low on flags. Is there any way the API can tell me not only the flag options, but also whether I have any flags left and if so how many?
3
votes
1
answer
310
views
PLACEHOLDER - How to get write_access to comment/answer on Stack Exchange
I'm trying to integrate the Stack Exchange API into my web app so I can fetch all posts as well as I can post answer or comments on them. I have successfully got access_token for no_expiry and ...
2
votes
2
answers
153
views
Is there any way or script to sort questions/posts/answers with custom criteria?
I want to fetch some questions from the API and I would like to sort them. However, I don't want to sort by the default options (activity, votes, creations, hot, week, month), but instead, for example,...
3
votes
1
answer
114
views
Take the right filter for favourite count
I try to take the favourite count filter for a question.
I use api through R
library(stackr)
stack_questions(11227809, site = "stackoverflow", filter = "!GeD4JB*YQqe2L")
and I ...
2
votes
0
answers
66
views
Is there an API call that can get me a user's access_token?
I'm trying to create a connector between Microsoft's Power Platform and the Stack API. Since the server ↔ server auth flow is happening outside of code I control, I can't grab the access_token from ...
3
votes
1
answer
124
views
Does the stackapps API allow queries of question to get answers?
All of the API docs I've seen are just for getting metadata, stuff like "how many comments".
Is there an API to ask questions?
eg here: I can't see a way to add a query string:
https://api....
3
votes
1
answer
263
views
Unable to post a comment using the interactive API documentation
I'm trying to to integrate the Stack Exchange API in my application. I'm trying the authentication but when I got the token and used it it gave a write_access issue. That issue was resolved when I ...
1
vote
1
answer
173
views
Will there be an official Stack Exchange application for Android?
I have really liked the experience on the various associated Stack Exchange sites and had the mobile application for Android until recently I switched mobiles and had to uninstall it. I also ...
2
votes
1
answer
95
views
Bugs in API 2.2 "/search/advanced" with a "q" parameter
How can we handle these problems?
Result for sort=relevance&order=desc is similar to
sort=relevance&order=desc.
Very poor caching system: After some queries, you may receive the same
results ...
2
votes
1
answer
125
views
How are API changes announced?
How are API changes announced? Are emails sent out to developers, or is there someplace I can subscribe to?
-1
votes
1
answer
1k
views
Why and how to make use of API key and credentials Stack Overflow API? [duplicate]
I am in need of using the Stack Overflow API for my website. I've gone through the documentation and I got the API key and client credentials. But my question is, I am able to send my question through ...
6
votes
3
answers
448
views
Is there a way to programmatically access chat?
I'm thinking about starting a project where I'd like to have access to the "chat" feature of the stack exchange sites. I saw this project: IRC access for the chat?
But I don't believe that it works ...
15
votes
1
answer
2k
views
Unable to get access token
I am trying to get a non-expiry access token, like so:
https://stackexchange.com/oauth?scope=no_expiry&redirect_uri={{some_uri}}&client_id={{some_value}}
I am repeatedly getting the error:
...
1
vote
0
answers
86
views
Stack OverflowTesting
How can I use Stack Overflow for Teams with Stack Exchange API combined?
I have tried creating a stack app and using client ID in Stack Exchange API.
I made a localhost application to implement Stack ...
8
votes
1
answer
126k
views
sorting ascending vs descending
I don't understand the difference between ascending and descending?
Surely ascending means the most active/recent/popular/A first, and descending means the least active/recent/popular/Z first?
But it ...
2
votes
2
answers
114
views
How to update tags without modifying question body? [duplicate]
I made a call to update the question tags using API - https://api.stackexchange.com/docs/edit-question however the body formatting changes when I edit the tags with the same body received (with HTML ...
15
votes
4
answers
770
views
Version 1.0 released 9th of July
For a lot of us, that would be next Friday.
At some point - most likely after noon PST - version 0.9 of the API will be replaced with the final 1.0 release.
There are no expected interface changes ...
1
vote
1
answer
101
views
Wrong sorting parameter in documentation for question/{ids}/answers
It looks like that in the question/{ids}/answers documentation, there is a mistake:
votes – score
Shouldn't this be
votes – votes
3
votes
0
answers
42
views
Call to search/advanced is treating tagged as an AND search, not OR [duplicate]
The docs for search/advanced (https://api.stackexchange.com/docs/advanced-search) have this to state about the tagged attribute:
"tagged - a semicolon delimited list of tags, of which at least ...
4
votes
1
answer
1k
views
Unable to make API calls using access_token for private Stack Overflow Teams site
I am attempting to create an application utilizing the API to query data from our private Stack Overflow Teams site.
I've read through the documentation at https://api.stackexchange.com/docs/teams ...
1
vote
1
answer
321
views
How to analyze and debug Stack Exchange's Javascript?
When writing userscripts, I often want to be able to look at what Stack Exchange's Javascript is doing. Getting to the code that the browser runs is easy enough - in the Network tab, I can see network ...
4
votes
1
answer
195
views
How to get an API key without registering an application?
How can I get an API key for doing 10K daily requests, without registering an application? Because I only use a script for my Social Network analysis project.
7
votes
1
answer
237
views
Would it be possible to create a script that could be run manually to unprotect questions that meet certain parameters?
One of the sites I use has in excess of 10% of their questions protected. It's a small site but this seems like a huge amount, largely due to questions being on the HNQ regularly and attracting many ...
12
votes
2
answers
6k
views
Can the redirect_uri contain port number?
Is it possible to have the redirect_uri contain a specific port?
For example: example.com:8080
Assuming that example.com is my registered domain, is the 8080 allowed? I have tried to put it as part ...
13
votes
2
answers
736
views
Why is my API quota not resetting after UTC reset?
According to How API Keys Work, the default daily API limit -- which is per site, per day -- is 300.
I started with 300, as expected, but over a period of days, I've noticed that the remaining quota ...
2
votes
1
answer
238
views
What does it mean when a revision number is missing?
I've noticed in the API docs for revisions that revision_number may be absent. Yet all examples, e.g. /posts/{ids}/revisions include a revision number for all responses.
I have a colleague who swears ...
1
vote
1
answer
125
views
How can I see how a Stack Apps summary looks for a particular app?
When using one of the templates (app/library/script) while writing a question here, the top of the post will contain some HTML comments:
<!-- thumbnail: https://example.com/some-image.png -->
&...
2
votes
1
answer
418
views
How to pass `key` as header value instead of as query params?
I would like to use my API Key in the header as opposed to as a query parameter.
In Stack Overflow Enterprise, I pass the value as X-API-Key in the headers. This does not work for the public Stack ...
7
votes
1
answer
28k
views
How to deal with the "Too Many Requests" error coming as HTML?
The API specifies error codes, and messages.
It also specifies a "backoff" parameter.
But, even while respecting the backoff and stopping at errors, and even when waiting a long time between requests ...
4
votes
1
answer
520
views
Refresh expired acess token basics
I'm trying to learn how to implement an OAuth flow in an Android app using a simple app with the Stack Exchange API.
Using WebView, I'm able to retrieve an access token and store it in my shared ...