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
0
votes
0
answers
69
views
MyStackBot – A Simple Bot to Post and Fetch Stack Overflow Answers via API
App Name: MyStackBot
Client ID: 34374
API Key: rl_eaYQSUfy93Eei7G5Z8R8E8t9d
This app allows a user to:
Fetch their answers from Stack Overflow
Post new answers to questions using the Stack Exchange ...
1
vote
1
answer
389
views
Getting a "Forbidden" response when calling the API from code, but not when using the exact same URL in a browser
Forgive me if this is a dumb question, but I'm just trying the SO API, and have run into a basic problem.
If I enter the following URL in a web browser...
https://api.stackexchange.com/2.3/questions?...
0
votes
0
answers
35
views
My Stack Overflow Answer Posting Bot
I’ve built a tool that allows programmatically posting answers to Stack Overflow using the StackExchange API.
🛠 What it does:
Uses the /answers/add method to post HTML-formatted answers under ...
0
votes
1
answer
131
views
How to Resolve "Applications must have a registered Stack Apps post to write" Error when Requesting Write Access via OAuth?
Question Description:
I am developing an application that integrates with Stack Overflow’s API, and I need to enable write access for it. I’ve successfully registered my application on the Stack Apps ...
0
votes
1
answer
73
views
'/comments/{id}/upvote' endpoint not detecting `site` parameter
I am trying to experiment with the API for my project.
I am trying to upvote a comment on the SO website to test out the API. My POST request is returning with a status code of 400.
The response -
{&...
3
votes
1
answer
119
views
Do I need to be working on an app to get the API key?
I want to use the API, and I want the higher query limit (I want to scan my inbox every five minutes and then text me the results), but I don't want to have to release an app.
Can I get an API key ...
0
votes
1
answer
486
views
Error calling Stack Overflow Teams API using Python requests library
I'm trying to call a PUT/DELETE request using the Stack Overflow Teams API in Python, but I'm encountering errors. As an FYI, I have a working PAT that allows me to make get requests for articles and ...
3
votes
1
answer
79
views
Differentiate Staging Ground posts from regular questions
Version 2.3 of the SE API does not clearly distinguish between questions that are on Stack Overflow's Staging Ground and questions on its main site. This comment on a SmokeDetector GH issue details it ...
3
votes
2
answers
1k
views
Redirect URI for a chrome extension using StackExchange API Oauth
I'm working on a developing a browser extension which uses StackExchange API authentication. I was able to successfully implement the authentication for Microsoft edge/Chrome when I added chromiumapp....
5
votes
1
answer
438
views
Suddenly getting "Couldn't parse `client_id`"
For years, I've run a local PHP app using GuzzleHttp\Client to download my StackExchange posts.
Today, I'm suddenly getting this problem when posting my client_id, client_secret, code, redirect_uri.
{
...
4
votes
0
answers
352
views
Is there a way to upload an image to i.sstatic.net using Python?
I am developing an image generation bot for chat (for example, chat.stackexchange.com).
I can generate the image correctly, but when it comes to posting the image, I have no idea how to upload the ...
2
votes
1
answer
162
views
Looking for an app that allows me to view interesting unanswered questions on SE sites using UserId
I am interested in finding interesting unanswered questions on different SE sites using my UserId.
While I am aware of this SEDE query that exists, the problem with it is that it seems that with ...
2
votes
1
answer
215
views
Documentation describing fields for api stack exchange
When I looked through the StackExchange documentation, I didn't find any documentation describing the fields. I have to study the request and response for a long time in order to understand why this ...
17
votes
1
answer
1k
views
I only need a key, what do I do?
I'm told by others and read in Looking for a beginner's tutorial to using the API that I need "To Get A Key!" but when I then visit https://stackapps.com/apps/oauth/register I'm stil ...
7
votes
1
answer
349
views
Stackexchange oauth2.0 is suddenly failing
No changes in stack apps or my code, it was working fine for a while, suddenly it stopped working now.
I get "InternalOAuthError: Failed to obtain access token"
After more details inspection,...
1
vote
1
answer
297
views
How to apply an access token in order to scrape the recommended answers?
I'm trying to scrape some data which needs the access token, and I received
'Applications must have a registered Stack Apps post to write'
Does that mean I need to post a question on Stack Exchange ...
2
votes
1
answer
114
views
Does there exist an app that allows me to download all of my questions and answers on all SE sites?
I'm interested in downloading a backup of all my questions and answers on all Stack Exchange sites in the form of markdown files. I'm already aware of this SE data explorer query, but this downloads ...
5
votes
1
answer
195
views
How can I implement a method to call the SE API that handles backoff correctly?
I'm writing JavaScript (Node.js) code that calls the Stack Exchange API. One part of the API is that it may return a non-zero value for backoff, which essentially means "wait n seconds before ...
8
votes
1
answer
1k
views
How can I quickly get an access token for personal use?
Registering your application or script gets you a higher daily quota and is fairly simply; a step by step guide is documented here: I only need a key, what do I do?
However, what if I do want an ...
2
votes
1
answer
876
views
Is the StackExchange API free of charge?
I am brand new to StackApps, so please bear with me for a question that is hopefully obvious to most regular users.
As far as I can tell, there is no charge for accessing the StackExchange API. ...
0
votes
1
answer
209
views
Applications must have a registered Stack Apps post to write. I submited this link https://stackoverflow.com/questions for stack apps post
OAuth Domain [email protected]
Application Website: https://docs.google.com/document/d/1ECqepVphS3Dds05zUJ8l0ylkQ9X15iUZ_iqhQCM3vfY/edit?usp=sharing
Application Icon (optional): ''
Stack Apps ...
2
votes
2
answers
506
views
How to revoke an access token generated for my application?
I generated an access token for my application and shared it with some people. Now, I wish to revoke the access token and generate a new one. I don't find any way to revoke that token.
6
votes
0
answers
116
views
Userscript to flag deleted posts for moderator attention with <10K reputation
I noticed that while the system blocks you from viewing deleted posts unless you have moderator tools privilege, the system will not block you from flagging them. The only flag available for deleted ...
2
votes
0
answers
160
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
1
answer
91
views
How to get user information of all sites merged
I'm actually using https://api.stackexchange.com/2.3/users/${userID}?site=${site} to get some user information from a specific site on Stack Exchange, but I want to get the information for all sites ...
1
vote
1
answer
5k
views
JSONDecodeError: Expecting value: line 3 column 1 (char 3)
I am trying the following simple code to get JSON from the Stack Exchange API and it gives me the following error:
JSONDecodeError: Expecting value: line 3 column 1 (char 3)
Here is my script:
...
1
vote
0
answers
133
views
Requesting Assistance for OAuth Implementation in the Stack Overflow API
I'm attempting to set up OAuth in the Stack Overflow API. I've created a Stack App and obtained the Client ID and Client Secret. However, I'm encountering difficulties in the process and require ...
140
votes
3
answers
31k
views
API "Hello World" code
The Stack Exchange API is based on HTTP and URLs, just like the web page you're browsing now. Except instead of HTML, the responses are all in JSON.
Let's say we wanted to call the /info method:
https:...
2
votes
0
answers
102
views
Randomly getting an 404 no method error when calling the question endpoint
When calling the question endpoint for a given number of communities, I have been randomly getting the following error:
{"error_id":404,"error_message":"no method found with ...
4
votes
1
answer
190
views
Stack Overflow for Teams support
I am reading this documentation https://stackoverflow.help/en/articles/4385859-stack-overflow-for-teams-api where they mention the need to create a PAT to access StackOverflow for Teams API (https://...
3
votes
1
answer
387
views
What write in app access for sending data
Here is my app's code:
However, I get this error:
2
votes
1
answer
208
views
How do I add a comment to a post through the Stack Exchange API?
I want to add an comment to a specific post so, how do I get its ID and how do I authorize it. I want it to done through the Stack Exchange API interface.
5
votes
1
answer
128
views
What are the rules for Discord bots posting to Stack Exchange?
I'm a member of a community that has its own Stack Exchange site and I'm wondering where I can find some insight into the rules of creating a Stack App that does the following:
We have a pretty strong ...
8
votes
0
answers
91
views
We’re collecting feedback on how we can improve the Stack Exchange API
The Stack Exchange API allows users to programmatically query and connect to the Stack Exchange Network of sites.
The API is currently in version 2.3. We’re collecting feedback from users of the API, ...
1
vote
2
answers
1k
views
Fetch all questions of a particular tag from the Stack Exchange API in Python
I am trying to fetch all questions of the Swift tag from Stack Overflow. I created the query using https://api.stackexchange.com/docs/questions and wrote a simple wrapper in Python.
def fetch_question(...
2
votes
0
answers
54
views
Is there a way to ask general questions within the Stack app?
I just joined Stack Exchange and am using the Android app called "Stack for Stack Overflow" by Tyler Wong. When I try to post a question, I'm forced to select from a number of topic ...
5
votes
1
answer
166
views
Is there a userscript to put links to Teams back in the left nav?
Teams are moving to their own domain and as such, my freemium team where I keep some useful-for-work knowledge has now disappeared from the left nav, which annoys me.
I'm looking for a userscript that ...
1
vote
1
answer
469
views
Is there a way to get a user's account ID given his site's user ID?
I'm trying to modify this userscript of mine to make it work on all sites but I couldn't find a way to get the account ID (i.e., network profile ID) for a user.
Is this possible?
3
votes
1
answer
78
views
getting answer body and question body in same request [duplicate]
I'm trying to get only questions and answers.
I filtered the fields, to get also the body of answers, but I don't get an answers JSON object.
What am I missing?
I know about this question, but I don'...
5
votes
1
answer
154
views
What is the latest version of the Stack Exchange API?
What is the latest version of the Stack Exchange API and its release date?
The document which I referred is for v2.3.
2
votes
1
answer
225
views
Is there a way to use the API without using localhost or a web domain?
I'm developing an SO chrome extension in React with TypeScript.
I've been reading the guide on how to use the API with OAuth and it looks fantastic for what I'm trying to do.
The problem is that the ...
2
votes
1
answer
214
views
Main Stack Exchange network site API
The original Stack Exchange app has this cool feature where you can browse hot question from the entire network.
But at the current state I am not able to see a “Stack Exchange” site listed in the ...
1
vote
1
answer
186
views
OAuth Domain can't satisfy redirect_uri AND Proxy url
Let's say I have an app called ExampleApp, with these details:
Client ID: 12345
Key: ThisIsTheKey123()
OAuth Domain: exampleapp.com
[√] Enable Client Side OAuth flow
[√] Disable ...
1
vote
1
answer
4k
views
Is it possible to get the response from a form POST?
This is related to my XYZ app to write comments.
I found a much neater way to submit the request using forms:
function post() {
se_url='https://api.stackexchange.com/2.3/posts/'+se_postId.value+'/...
1
vote
0
answers
752
views
How does 1 request every 5 seconds exceed the 30 requests per second limit?
I'm doing a run every 5 seconds for this API call:
url = "https://api.stackexchange.com/2.3/questions/no-answers?pagesize=30&fromdate={date_today}&order=desc&sort=creation&site=...
3
votes
1
answer
186
views
StackExchange API, OAuth for other sites than Stack Overflow
I'm implementing the OAuth system through StackExchange API, here is the guide.
I've already integrated the OAuth system with stack overflow with the following parameters:
Token URL: https://...
2
votes
1
answer
2k
views
Obtain the list of questions associated to answer_ids without losing the information of which question comes from which answer_id
This is a follow up to a previous question of mine, and the starting point is that, given a list of reputation objects retrieved via /users/{ids}/reputation, I can easily retain only the entries with ...
27
votes
1
answer
3k
views
My app has to be published first? But it's still under development
Okay, I want to build an App that allows me to create questions on Stack Exchange. I registered it here on Stack Apps but now when I want to create a question I get this message:
{
"error_message": ...
2
votes
0
answers
126
views
Uncaught channelUrl must be under the current domain
I'm developing a Stack Chrome extension that will make use of the API. I'm following the instructions on the API docs here.
My OAuth and host websites are set to stackexchange.com in my Stack Apps ...
2
votes
1
answer
1k
views
Why doesn't my XMLHttpRequest call work in Excel?
I can make a simple API call in JavaScript using XMLHttpRequest:
<html>
<script>
function reqListener () {
out.textContent=this.responseText;
}
...