Questions tagged [api-v2.2]

For questions relating to version 2.2 of the Stack Exchange API.

Filter by
Sorted by
Tagged with
2 votes
0 answers
78 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 ...
Joe Moore's user avatar
  • 171
4 votes
0 answers
243 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 ...
manubrio's user avatar
  • 181
3 votes
1 answer
123 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://...
Daniel James Tronca's user avatar
3 votes
1 answer
1k 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 ...
Glorfindel's user avatar
  • 6,762
1 vote
1 answer
973 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&...
Penguin's user avatar
  • 113
2 votes
1 answer
43 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 '...
Tobias's user avatar
  • 23
2 votes
1 answer
103 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 ...
Norbert Bartko's user avatar
2 votes
1 answer
80 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 ...
C2121's user avatar
  • 21
2 votes
1 answer
108 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 ...
peizidiao's user avatar
2 votes
1 answer
138 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.
Mohammed Noman Razvi's user avatar
1 vote
0 answers
52 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?
AVK's user avatar
  • 279
2 votes
2 answers
73 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 ...
SO User's user avatar
  • 63
3 votes
1 answer
62 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: {&...
Wajeed Shaikh's user avatar
2 votes
0 answers
30 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 ...
Glorfindel's user avatar
  • 6,762
1 vote
1 answer
338 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 ...
Chiel's user avatar
  • 85
3 votes
0 answers
103 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 ...
Erik A's user avatar
  • 131
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 ...
Toma's user avatar
  • 113
1 vote
0 answers
31 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=...
Glorfindel's user avatar
  • 6,762
1 vote
0 answers
49 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 ...
msftsofbot's user avatar
3 votes
1 answer
241 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 ...
msftsofbot's user avatar
3 votes
1 answer
265 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 ...
Anshul Tyagi's user avatar
18 votes
0 answers
419 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 ...
Dharman's user avatar
  • 493
2 votes
1 answer
71 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/...
Norbert Bartko's user avatar
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?
rusnasonov's user avatar
2 votes
0 answers
45 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, ...
Glorfindel's user avatar
  • 6,762
1 vote
0 answers
84 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 ...
Norbert Bartko's user avatar
5 votes
1 answer
268 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 ...
gion_13's user avatar
  • 161
3 votes
1 answer
74 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 ...
Vladyslav Usenko's user avatar
2 votes
1 answer
88 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 ...
Hazel へいぜる's user avatar
2 votes
1 answer
77 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 ...
Glorfindel's user avatar
  • 6,762
6 votes
1 answer
130 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 ...
Glorfindel's user avatar
  • 6,762
-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 ...
Deepak's user avatar
  • 121
2 votes
1 answer
55 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 ...
Glorfindel's user avatar
  • 6,762
3 votes
0 answers
66 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 ...
Christian Sauer's user avatar
7 votes
2 answers
491 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 ...
guido's user avatar
  • 71
4 votes
0 answers
48 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 ...
Glorfindel's user avatar
  • 6,762
2 votes
1 answer
65 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 ...
Glorfindel's user avatar
  • 6,762
2 votes
1 answer
50 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 ...
Glorfindel's user avatar
  • 6,762
3 votes
0 answers
56 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 ...
larsks's user avatar
  • 141
2 votes
0 answers
42 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 ...
Glorfindel's user avatar
  • 6,762
1 vote
0 answers
66 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, ...
Brock Adams's user avatar
  • 12.9k
0 votes
1 answer
135 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 ...
SoftTimur's user avatar
  • 121
1 vote
1 answer
129 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....
Glorfindel's user avatar
  • 6,762
1 vote
1 answer
208 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 ...
Rob W's user avatar
  • 2,669
1 vote
1 answer
84 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.
Glorfindel's user avatar
  • 6,762
2 votes
1 answer
99 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.
Peter Mortensen's user avatar
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 ...
Znurre's user avatar
  • 143
4 votes
1 answer
111 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 ...
Glorfindel's user avatar
  • 6,762
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-...
NikxDa's user avatar
  • 141
8 votes
1 answer
249 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, ...
Glorfindel's user avatar
  • 6,762