Questions tagged [api-v2.2]

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

Filter by
Sorted by
Tagged with
5 votes
1 answer
272 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 ...
12 votes
1 answer
248 views

Marking inbox items as read in api v2.2

I'm aware of this question, but it applied to an older (readonly) api version. Given that API 2.2 is read/write, I figured this might be possible now. Is there any way for an application using the ...
2 votes
0 answers
79 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 ...
7 votes
2 answers
498 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 ...
5 votes
1 answer
99 views

Is it possible to have no sorting - to just show results in order of inputted IDs?

I'm trying to send multiple IDs at once (up to a max of 100), but need to use the data in the same order I send the request with. So, if I send IDs in an arbitary order like 4;1;3;2, I would like to ...
1 vote
1 answer
240 views

StackExchange API's request data is blank in Drupal 7

I'm trying to implement this simple request in Drupal 7 on my local machine: $request = drupal_http_request('https://api.stackexchange.com/2.2/users?order=desc&sort=reputation&site=...
18 votes
0 answers
423 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 ...
4 votes
0 answers
245 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
126 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://...
8 votes
1 answer
251 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, ...
4 votes
0 answers
112 views

Early warning for new questions with problematic tags or titles

Leaves a temporary comment on new Stack Exchange questions with problematic tags or titles. Some of the issues detected by the bot: a non-descriptive title a vague tag used as the only tag all tags ...
2 votes
1 answer
163 views

Question up-voting is not working from my code?

I am trying to upvote a question using the Stack Exchange API in android, via the /2.2/questions/{questionID}/upvote route. But in the log, it's just showing something like: org.apache.http....
4 votes
0 answers
207 views

IGB Stack Flair – A dynamic flair for Stack Exchange sites

A dynamic flair for Stack Exchange sites inspired by Stack Exchange's native User Flairs. With Advanced Features Including Stack Exchange sites with more than 101 reputation (compared to 200). ...
3 votes
0 answers
68 views

How do I access the greatest hits (questions) via API v2.2.?

The greatest hits (questions) of any stack exchange site (say stack overflow) can be found by visiting the below URL: https://stackoverflow.com/questions/greatest-hits I would want to access these ...
1 vote
1 answer
1k 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&...
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 ...
0 votes
0 answers
45 views

`/me/associated` gives ambiguous/wrong response [duplicate]

This is my associated accounts page. No where I can see Meta Stack Overflow profile. But when I run /me/associated with meta_site as parameter to types, I get a response that tells me that I have a ...
-5 votes
1 answer
129 views

wrong results of api /search/advanced

I am querying for results of /search/advanced. The request I am sending is https://api.stackexchange.com/2.2/search/advanced?key=`key`&access_token=`access_token`&site=stackoverflow.com&...
2 votes
0 answers
276 views

The Authentication Problem of WebAuthenticationBroker Class in .NET 4.6

I have a problem when you test the Stack Exchange Authentication API to WebAuthenticationBroker. If you proceed with authentication, such as screenshots it will continue to appear only in progress. . ...
2 votes
1 answer
140 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.
2 votes
1 answer
82 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
44 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 '...
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 ...
2 votes
1 answer
104 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
115 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 ...
1 vote
0 answers
53 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?
2 votes
2 answers
75 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
63 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: {&...
10 votes
1 answer
179 views

Please provide a way to download SEDE data via an API

Following on from this answer, I have a data extraction requirement that is not presently catered for in the API, so I've raised a feature request for that. It has also been suggested that it would ...
2 votes
0 answers
31 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
346 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 ...
3 votes
0 answers
104 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
32 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
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 ...
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 ...
45 votes
0 answers
2k views

Guttenberg - A bot searching for plagiarism on Stack Overflow

What is Guttenberg? Guttenberg is a bot that searches for plagiarism or duplicated answers on Stack Overflow. It's currently running in SOBotics under the user Guttenberg. Implementation Every 60 ...
3 votes
1 answer
266 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 ...
3 votes
1 answer
102 views

Stack Exchange API - Get Watched Tags for a User

Is there a way to get a list of tags that the user has set up as "Watched Tags"? If not, is it on the roadmap?
75 votes
0 answers
6k views

Natty - Bringing 10k moderation to All

Background and History The New Answers to Old Questions tool helps us to find all the answers added to questions which are more than 30 days old. However the issue with the tool is that it is not ...
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.
9 votes
1 answer
134 views

Typos in API documentation

From the /posts documentation: Most applications should use the question or answer specific methods, but /posts is available for those rare cases where any activity is of intereset. intereset => ...
3 votes
1 answer
170 views

Difference between `/inbox/unread` & `/me/inbox/unread`

I ran /inbox/unread & /me/inbox/unread. What is the difference between the two? Also, the site parameter which we give in call to /me/inbox/unread is not required as inbox_item refers to global ...
2 votes
1 answer
58 views

What does "in practice" mean here?

From /answers/{id}/delete: In practice, this method will never return an object. For me, "in practice" means that the method will maybe return an object. But why? That's not good from an ...
2 votes
1 answer
72 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
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, ...
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 ...
3 votes
0 answers
67 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 ...
26 votes
1 answer
400 views

Provide a way to retrieve questions and answers that have been deleted

Could you please provide a way to retrieve deleted questions/answers? Your database contains that data, until you hard delete it, so it would be useful for us to have the chance to play with it. I'm ...