Questions tagged [api-v2.2]
For questions relating to version 2.2 of the Stack Exchange API.
189
questions
2
votes
0
answers
52
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 ...
4
votes
0
answers
201
views
Crew for Exchange 2.0 (Full iOS native client)
My all-new app Crew 2.0 is NOW AVAILABLE 🥳
Crew 2.0 was rebuilt entirely from the ground up, and today's update is a crazy one.
A completely revamped user interface, powerful markdown rendering, new ...
3
votes
1
answer
90
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://...
3
votes
1
answer
650
views
400 - Bad Request - Invalid URL errors with HTML response
Since a few weeks, I'm getting 400 - Bad Request errors now and then, on pretty standard API calls like fetching post details. This is the response I get:
<DOCTYPE HTML PUBLIC "-//W3C//DTD ...
1
vote
1
answer
624
views
Why am I getting a 400 Bad Request error with this code?
I'm using this code (in an async function):
let about = await fetch("https://api.stackexchange.com/2.2/me?order=desc&access_token="+token+"&sort=reputation&site=gaming&...
2
votes
1
answer
35
views
Discrepancy in results size
I just started using the Stack Overflow API. I want to collect all questions related to a specific keyword.
My code iterates over all result pages by increasing the &page=N parameter while '...
2
votes
1
answer
89
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 ...
2
votes
1
answer
72
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
98
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 ...
2
votes
1
answer
113
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.
1
vote
0
answers
49
views
"edited" key always return false. even though it shows edited on site
CommentID: 1193255 On site Meta Stack Exchange
The Api returns edited as false
However if you see the comment itself, you can see it has been edited.
Is there something that I am missing here?
1
vote
2
answers
58
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 ...
3
votes
1
answer
54
views
Wrong results for fetch timeline from offset
To get the timeline for a question I am sending this request:
https://api.stackexchange.com/2.2/questions/63299112/timeline?site=stackoverflow&fromdate=1597649222
I am getting empty results:
{&...
2
votes
0
answers
25
views
Add Area 51 Discussions to site list and account list
While Area 51 Discussions is accessible via the API (proof), it is neither in the list of sites nor in the list of associated accounts. I'm not sure how much work this would be to add? I understand ...
1
vote
1
answer
249
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
0
answers
97
views
A simple app to add tags to questions given a search criterium
In the wake of the *-vba situation on Stack Overflow, one tag remains, that should be retagged to two others. See this MSO post for more details.
To resolve this situation, this is a mini-app, that ...
1
vote
1
answer
2k
views
How can I use an iOS custom URL scheme as redirect_uri?
I am trying to implement OAuth using iOS URL schemes. For example if I provide myapp:// as redirect_uri the app should launch. However, I cannot add it as OAuth domain in the Stack Apps settings, as ...
1
vote
0
answers
28
views
API returns flags options for election comments while flagging them isn't possible
When trying to retrieve the flag options on a comment, e.g. on the currently active one on Skeptics.SE (but it works for any election):
https://api.stackexchange.com/docs/comment-flag-options#id=...
1
vote
0
answers
45
views
How to automate StackApp user approve and user login with stack Exchange explicit oAuth2.0
We are developing an stack App and integrating the app in our application. However we have successfully done a POC over POSTMAN and fiddler for explicit oAuth2.0. Now when we are integrating the same ...
2
votes
1
answer
227
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 ...
3
votes
1
answer
233
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 ...
17
votes
0
answers
379
views
NAABot - Bot which finds and flags problematic answers on Stack Overflow
Description
The aim of this project is to write a simple bot which will monitor all new answers posted on Stack Overflow and flag the ones which are not answers in accordance to the guidelines ...
2
votes
1
answer
67
views
Can I get the question id in the inbox route?
My intended behavior of my app is to navigate the user the the question page when an inbox item gets clicked.
For example, when the API return a link like this
https://stackapps.com/questions/8515/...
2
votes
0
answers
15
views
Is the way to search answers by who I voted for? [duplicate]
I found few similar questions: first, second. But answers is too old (2014 year). It's actual now — no way to get this info by using API?
2
votes
0
answers
44
views
Wrong error message when attempting to edit a locked answer
When attempting to edit a locked answer like this one via the /answers/{id}/edit API method, I get an error message:
Account is not allowed to suggest edits
I have the privilege to edit the post, ...
1
vote
0
answers
83
views
How to determine if a question is hot?
I know that I can get all hot question by sorting it like this:
/2.2/questions?order=desc&sort=hot&site=stackoverflow
Likewise, I'm not quite sure if other sortings like activity also ...
5
votes
1
answer
226
views
Cannot authenticate with OAuth2
I was testing an app and suddenly I can't login any more.
Neither my app or the Stack App configuration hasn't changed, so I'm thinking this might be a bug on the API side.
The OAuth error seems a ...
3
votes
1
answer
68
views
503 errors on batch get questions endpoint
I receive a lot of "socket hung up" and 503 Service Unavailable on the /questions/{ids} endpoint. I make requests in batches: 10 parallel requests with 15 question ids, interval between each 10-size ...
2
votes
1
answer
79
views
Please provide an API "flair"-data call (`/associated` route is inadequate)
So today I decided to continue refining my JavaScript skills (different post over on Code Review SE if you'd like to review the results) and utilized the Stack Exchange API (v2.2) to write a "user ...
2
votes
1
answer
72
views
What happened to the links to a Stack App mentioned in the documentation about write access?
The documentation about write access states:
The application responsible for creating content via the API may be indicated with a link to an app's Stack Apps post. The exact manner of display is ...
6
votes
1
answer
116
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 ...
-1
votes
1
answer
918
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 ...
2
votes
1
answer
51
views
Timeline activities appear to be missing (because creation_date has wrong and useless values)
When I'm looking at my Stack Overflow timeline according to the API, It's missing a lot of events.
According to the API, the last thing I did was posting this answer, five days ago, and you can see ...
3
votes
0
answers
62
views
API 404's when I try to fetch related tags for the `bin` tag
If you query the API for tags related to [bin]: https://api.stackexchange.com/2.2/tags/bin/related?site=stackoverflow
this simply returns:
Invalid JSON returned and a 404.
(live demo)
But it ...
7
votes
2
answers
459
views
After successfully retrieving 180 pages, the API gracelessly, semi-silently, fails
I'm trying to synchronize tags using the Stack Exchange API and this works for about 180 pages, but around 180 pages it always ends with an exception that seems to indicate that there is no HTTP ...
4
votes
0
answers
43
views
/revisions/{ids} returns wrong body
Since a couple of days, the /revisions/{ids} method returns a wrong value for the body field. An example is this Ask Different post. When viewing the (only) revision on the website, you see that the ...
2
votes
1
answer
62
views
Suggested edit not returned by API
This suggested edit: https://dba.stackexchange.com/suggested-edits/20375 is not returned by the /suggested-edits/{ids} API call:
https://api.stackexchange.com/2.2/suggested-edits/20375?site=dba ...
2
votes
1
answer
48
views
Are the revisions returned by /posts/{ids}/revisions guaranteed to be returned in descending order?
The /posts/{ids}/revisions method returns all revisions to a post, but it doesn't have the sort and order parameters most methods have. From some quick tests, e.g. this one, I think it always returns ...
3
votes
0
answers
52
views
Tags are not returned when querying /users/{ids}/answers
I'm querying the API for answers-by-user, and I want the tags belonging to the parent questions. I seem to be seeing intermittent results: sometimes the tags attribute of the response includes the ...
2
votes
0
answers
39
views
Linked questions API call fails for frequently asked questions on Stack Overflow
The Linked Questions API fails for some of the Frequently Asked Questions on Stack Overflow, maybe because of the sheer amount of linked questions they have.
As an example, take What is a ...
1
vote
0
answers
64
views
The authentication doc gives a wrong domain for authentication
The authentication doc page now lists URL's like:
https://stackoverflow.com/oauth
https://stackoverflow.com/oauth/access_token
etc.
While these seem to work, the correct domain is stackexchange.com, ...
0
votes
1
answer
112
views
How to search ALL sites with the advanced API?
I can make a request to Stack Overflow as follows, which searches with keywords in titles:
/2.2/search/advanced?title=vlookup%20index%20match&site=stackoverflow
My question is ...
1
vote
1
answer
115
views
Why am I getting an "Access token sent over non-HTTPS request, it has been invalidated" message?
I've been using the Stack Overflow for Teams API for a while now, but since yesterday it stopped working for one of the Teams; that Team also wasn't listed in the Applications (https://stackoverflow....
1
vote
1
answer
197
views
OAuth redirect_uri to https://stackexchange.com/oauth/login_success?xxx strips part of the query string
I have a browser extension that uses OAuth2 to retrieve an access token. As recommended by https://api.stackexchange.com/docs/authentication, I use https://stackoverflow.com/oauth/login_success as the ...
1
vote
1
answer
77
views
Why doesn't the API return a 'locked date' for this locked answer?
This answer has been locked, yet when I ask the API about this post it fails to return a locked_date:
It's a rather old lock, but I can't see anything suspicious in the timeline or the Post History.
2
votes
1
answer
95
views
"Javascript" typo on documentation pages
On page Usage of /sites, it should be JavaScript, not Javascript, in the right sidebar:
This obviously also applies to (most/all) API documentation pages, since they share the sidebar.
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 ...
4
votes
1
answer
102
views
/questions returns wrong markdown when a suggested edit is improved
The /questions API method returns wrong markdown when the last revisions were made by a suggested edit improved in the review queue. This event leads to two revisions (one for the suggested edit and ...
4
votes
0
answers
55
views
OAuth Dialog has all content positioned off-screen
When using https://stackoverflow.com/oauth/dialog, the OAuth dialog renders correctly on my normal browser window. Opening it inside a modal however results in an empty window, because body has a min-...
8
votes
1
answer
220
views
Why has my daily quota increased from 10k to 2 billion?
I'm using the Stack Exchange API with an access token and API key, and I was just checking my remaining quota. According to the documentation, this should be a number (somewhat) lower than 10,000, ...