As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [api-v2.2]

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

Filter by
Sorted by
Tagged with
12 votes
2 answers
5k 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 ...
Andy's user avatar
  • 417
17 votes
1 answer
237 views

List of Votes by Authenticated users

In the API documentation for the question type, it says that you can access, for a specific question, whether or not the authenticated user (in the private_info scope) upvoted/downvoted the question. ...
Nick Peterson's user avatar
10 votes
1 answer
169 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 ...
halfer's user avatar
  • 293
10 votes
0 answers
197 views

Tell us that POST is required to write

While troubleshooting /posts/{id}/comments/add in order to answer Why am I getting a 404 when trying to post a comment?, it was noticed that the API path in question only responded to POST requests. ...
michaelb958--GoFundMonica's user avatar
9 votes
1 answer
142 views

Please add the `tagged` parameter to /answers, /users, etc

The /questions endpoint supports a tagged parameter which I find quite useful. However, it's the only route that appears to support this parameter. If, say, I want to get questions asked by a given ...
agent86's user avatar
  • 3,277
7 votes
1 answer
123 views

The answer object returns an empty array for tags

Since version 2.1, the answer object has a field called tags. However, sometimes, an empty array or even nothing is returned in this field: Example with the filter !-*f(6t0Vk01e. Am I doing ...
FelixSFD's user avatar
  • 635
6 votes
0 answers
410 views

Resurfacing bug: "could not parse proxy url" error message

According to this question, the "could not parse proxy url" bug was solved more than 2 years ago. However, when using the client-side OAuth flow, the aforementioned error message appears when ...
Linostar's user avatar
  • 161
5 votes
1 answer
400 views

How to increase app request quota from 300 to 10,000?

In the app management page for a little app I made, the following statement is presented below this key Pw9D)judG8FE4tJR3qjUTA((: Pass this as key when making requests against the Stack Exchange ...
m-a-r-c-e-l-i-n-o's user avatar
76 votes
0 answers
5k 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 ...
Bhargav Rao's user avatar
  • 1,327
26 votes
1 answer
382 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 ...
systempuntoout's user avatar
7 votes
2 answers
457 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
6 votes
1 answer
129 views

API throws improper error when "date" parameters are the same

When using the Stack Exchange /questions API using the same date for fromdate and todate I get a 500 internal server error. Using different dates appears to work OK but specifying the same value ...
Andy Clark's user avatar
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 ...
Glorfindel's user avatar
  • 6,487
3 votes
1 answer
92 views

How to search answers like is:answer

How can I use the API to search for answers containing particular text or with particular properties? For example, this link allows me to search for is:answer foo, that is, answers containing foo. Can ...
elixenide's user avatar
  • 173
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 ...
Anshul Tyagi's user avatar
11 votes
1 answer
223 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 ...
Malabarba's user avatar
  • 273
5 votes
0 answers
49 views

Please provide a way to get Post Edits, filtered by user

I recently discovered from this question that the API does not support filtering revisions by user. I am interested in looking at a user's edit history programmatically (with their permission) and at ...
halfer's user avatar
  • 293
5 votes
0 answers
119 views

Filter doesn't consistently return comment bodies

I've been trying to set up a filter I can use with /questions/{id}/answers/ (using the UI at this link), which returns the following fields: answer: answer_id body_markdown comments ...
Martin Ender's user avatar
4 votes
1 answer
60 views

Reputation changes from accepting answers to questions are not included in reputation results

When querying the /users/{ids}/reputation API route, the results don't include the +2 reputation changes from accepting answers. None of the reputation results from my own reputation history have a ...
Bill the Lizard's user avatar
3 votes
1 answer
184 views

Search for answers/comments under questions with certain tags using the Stack Overflow API?

The advanced search (/search/advanced) API can search for questions by tags. But /users/{ids}/answers API doesn't take tags. I'd like to monitor answers/comments for questions with certain tags. Is ...
Jason Li's user avatar
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 ...
Glorfindel's user avatar
  • 6,487
2 votes
1 answer
154 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....
Sudheer's user avatar
  • 123
1 vote
1 answer
44 views

`types=main_site` in `/me/associated` gives `meta_site` accounts also

When I run /me/associated with main_site as a parameter in types, its gives meta_site accounts also (Meta Stack Exchange profile).
amit jha's user avatar
  • 832
1 vote
1 answer
124 views

Getting questions that have a specific tag or tags?

In the current API (2.1 and 2.2), how do you get questions that have a specific tag or tags? EG: All Stack Overflow questions asked in the past 2 months tagged 'ruby'? All Stack Overflow questions ...
Bob Walsh's user avatar
  • 113
50 votes
0 answers
3k views

Heat Detector - analysing comments to find heat

General Heat detector is a StackApp whose goal is to catch offensive, rude, snarky comments, and comments that leads to abusive content (offensive, spam posts, or previous offensive comments). It is ...
Petter Friberg's user avatar
46 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 ...
FelixSFD's user avatar
  • 635
22 votes
0 answers
857 views

Burnaki: tracking progress and helping burnination efforts on Stack Exchange

Burnaki The purpose of this project is to monitor burnination efforts on the Stack Exchange network. The goals are threefold: tracking the progress by watching for close votes / reopen votes / ...
Tunaki's user avatar
  • 723
20 votes
3 answers
135 views

Documentation or API method for `option_id` information, for the `/flags/options` API calls?

The Stack Exchange API has a couple of calls that return a list of flag_option objects. These objects contain a couple of properties that can be used to identify the flag you need. For example, when ...
Cerbrus's user avatar
  • 301
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 ...
Dharman's user avatar
  • 483
9 votes
1 answer
129 views

Why is comment_count=1 (incorrectly) when this particular filter is used?

We're seeing that, when a particular filter we've created is used, the API will return "comment_count": 1 for questions with no comments. For a search for questions with no answers, ordered by ...
daviddoran's user avatar
8 votes
0 answers
145 views

Incomplete information in API documentation

I am struggling a little bit with the Stack Exchange API since there seems to be no formal specification for the individual endpoints of the API. Example: Endpoint: https://api.stackexchange.com/2.2/...
Besi's user avatar
  • 513
8 votes
1 answer
213 views

Why is /questions API returning deleted questions?

In last few days I have noticed that questions API returns questions that where deleted hours before the API call. This is a short example, if more logs are need to pin point the problem, please ...
Petter Friberg's user avatar
7 votes
1 answer
712 views

StackExchange API Java wrapper

Screenshot / Code Snippet StackExchangeApi api = new StackExchangeApi(key); api.authorize(authToken); StackExchangeSite siteService = api.getSiteService(StackExchangeSite.STACK_OVERFLOW); Response&...
hsz's user avatar
  • 171
6 votes
1 answer
180 views

JavaScript SDK-based workflow never pushes message back from OAuth login_success page on Stack Exchange side

I'm using the JavaScript SDK by Stack Exchange provided with the latest API, and despite following the official instructions & examples it doesn't work - it seems there is a bug which breaks the ...
Mikhail Vink's user avatar
6 votes
0 answers
75 views

Badge numbers are wildly erroneous for meta accounts returned by the /associated query

There is a serious problem with badge counts on meta sites as returned by the /users/{ids}/associated route. Consider this user (chosen for high volume of meta activity). On Meta Stack Overflow, ...
Brock Adams's user avatar
  • 12.8k
5 votes
1 answer
87 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 ...
ᔕᖺᘎᕊ's user avatar
  • 4,365
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 ...
gion_13's user avatar
  • 151
5 votes
0 answers
677 views

StackAPI - A(nother) Python wrapper

This is a(nother) Python wrapper for the Stack Exchange API. I wrote this to assist with a couple of my projects that needed to do a lot of API interactions. After using it and polishing it up for as ...
Andy's user avatar
  • 417
5 votes
2 answers
1k views

StackExchange API Java SDK

This project aims to provide a Java wrapper to the Stack Exchange API. SDK supports Stack Exchange API V2.2 Getting Started There are two interfaces to the library. Query Interface Facade ...
Sanjiv's user avatar
  • 305
4 votes
0 answers
112 views

Parameter `tagged` in `search/advanced` seems to use `AND` instead of `OR`

It seems that search/advanced has the same problem as in "The tagged parameter does not work with multiple tags" question. When I select c#; .net I only get results tagged both c# and .net: http://...
Andrey Shchekin'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
168 views

“Try It” URL has wrong URI

On API doc pages, the “link” link at the top-right of the “Try It” sections presents a URL with the wrong domain name: For example, on docs/similar, the URL displayed will be: https://api....
Brandon Kelly's user avatar
4 votes
0 answers
123 views

Python library 2.2 API Wrapper?

Is there a Python library that encompasses the new functionality in the 2.2 API? I've seen this question and this question, and the comments indicating that libraries were being created and updated ...
Andy's user avatar
  • 417
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 ...
manubrio's user avatar
  • 181
4 votes
0 answers
43 views

API returns delete vote count for questions, but not for answers

The questions method of the API returns the number of delete votes among other kinds of votes: sample query. But the answers method does not have a delete_vote_count field available in the filter: ...
user avatar
3 votes
1 answer
97 views

Paging fails at 10K items for /search on any site but Stack Overflow

There's a problem with requesting more than 10,000 items. With Stack Overflow it works just fine. But with Super User, Server Fault, etc. no items are returned for requests for items after the 10,...
Y. Evers's user avatar
3 votes
0 answers
214 views

SEStandard - A .NET Standard 1.1 compliant Stack Exchange client library that supports API v2.2

Please note that SEStandard is still under development. It is currently at version 1.0.0-rc, and is a release candidate. While you can expect the API not to change, you might come across bugs. Please ...
ravindUwU's user avatar
  • 319
3 votes
1 answer
118 views

Help with javascript SDK configuration

The following problem is REAL! All names have been changed to protect the innocent. I have a site at "http://Something.github.io/MyRepository/Directory/index.html" And I have my app configured like ...
Jack Sprat's user avatar
3 votes
1 answer
142 views

How to calculate users, who have posted (question/answer) using specific tag?

For example, if I want to know the number of users who asked and answered about PHP. Currently, I can just get the list of questions and its total number, but it's not enough, because one user could ...
Yury Andreykovich's user avatar
3 votes
0 answers
167 views

What's the proper way to fetch the score of all answers of SO?

I wrote a small program querying the SE API to grab the public scoring data of all SO answers (excluding the last 3 days). Basically the request I do gets me this: Questions[]: Id Title ...
Denys Séguret's user avatar