All Questions
88 questions
2
votes
0
answers
99
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 ...
3
votes
1
answer
141
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://...
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&...
2
votes
1
answer
45
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 '...
1
vote
1
answer
113
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
84
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
136
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
154
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
2
answers
82
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
67
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:
{&...
1
vote
1
answer
395
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 ...
1
vote
1
answer
3k
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
52
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
246
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
279
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 ...
2
votes
1
answer
75
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?
1
vote
0
answers
88
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
1
answer
82
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
84
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
135
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
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 ...
2
votes
1
answer
66
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
55
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 ...
0
votes
1
answer
150
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
235
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 ...
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 ...
8
votes
1
answer
263
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
1
answer
52
views
Can we find the time of a vote using the API?
I've been looking at the API docs and more specifically at the filters available for the /answers/{ids}, /posts/{ids} and /questions/{ids} routes but can't find anything other than upvoted and ...
3
votes
0
answers
46
views
Search incomplete synonym name
Is there is way to search synonym when user is inputting the name. Something like how things work in SO's tag search page.
j2se is a synonym of java tag, but it appears in search when searching for ...
2
votes
1
answer
58
views
Exclude records where field is present (ie., return only open questions)
How do I exclude records based on the presence of a certain field (like the equivalent of SQL's [fieldname] Is Null)?
Example:
Results for Closed questions include field closed_date=1234567890.
...
2
votes
0
answers
116
views
JavaScript API Library for StackExchange API?
I'm developing an application that integrates with the Stack Exchange Network for posting questions and importing whole discussions. Therefore I'm looking for a JavaScript library for the Stack ...
2
votes
1
answer
63
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 ...
1
vote
1
answer
693
views
No 'Access-Control-Allow-Origin' for oauth/access_token
Following the Stack Apps documentation Authentication (explicit) section I crafted this AJAX call
$.ajax({
url:"https://stackexchange.com/oauth/access_token",
type:"...
0
votes
1
answer
156
views
What token parameters to use for OAuth2 Authorizaton?
I'm trying to connect a piece of desktop software to the Stack Exchange web service through OAuth2. I've read the docs but the problem is that what it talks about is subtly different to what ...
4
votes
1
answer
185
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....
3
votes
1
answer
2k
views
Implicit OAuth flow puts the access token in the hash?
The implicit OAuth flow puts the access token in the hash.
However, I would like to get that in the query (from example.com/hi#access_token=123456 to example.com/hi?access_token=123456) for it to work ...
6
votes
1
answer
571
views
Got 502 response after very few calls
This looks like a duplicate of Throttle violation after 300 calls but this one is reported as fixed in 2012.
Today I made ~450 requests with an app key (no oauth token) and suddenly got a 502 ...
3
votes
0
answers
85
views
Java Wrapper for the 2.2 API
I've been looking for a Java based API/wrapper/DAO for the new SE API 2.2. but could not find any (May very well be a limitation of my search skills, though.)
I found references to attempts at ...
5
votes
1
answer
119
views
Access token keeps being invalidated
For Stack Overflow Extras (SOX), a few users and myself have seen our access tokens being invalidated very often without any apparent reason.
We aren't requesting new tokens (which would invalidate ...
2
votes
1
answer
206
views
Keep getting 500 "Internal error" in requests with an access token
I'm trying to fetch some data from the Stack Exchange API
I have a valid access_token and registered key but I keep getting internal error as a result.
Here is the request URL:
https://api....
2
votes
1
answer
137
views
bad_parameter when using key with todate?
I'm having trouble using my API key with the todate parameter. My query works fine with todate:
$ curl -s "https://api.stackexchange.com/2.2/search/advanced?todate=2015-07-21&site=stackoverflow&...
3
votes
1
answer
391
views
iOS Client for stackoverflow always throws redirect_uri not a valid uri
I tried to use the Stack Exchange API to authenticate the user.
I have registered my app with redirect_uri as stackexchange.com/oauth/login_success.
But it always throws "redirect_uri is not a valid ...
-5
votes
1
answer
645
views
What is the root cause for too many request issue?
I am getting the following error when importing questions under a particular tag name:
{"error_id":502,"error_message":"too many requests from this IP, more
requests available in 56100
seconds"...
5
votes
1
answer
466
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 ...
1
vote
1
answer
179
views
How do I find all questions/answers per a tag using .Net?
I want to get the list of questions based on tag name using .Net. can any one please let me know how to achieve this using .Net with API Version 2.2?
-3
votes
1
answer
90
views
Why API Version 2.2 returns null always while getting questions list?
The below 2 codes returns null always. How to get the list of questions using API Version 2.2?
Question thisPost = context.Official
.StackApps
.Questions.ById(1)
.WithComments(true)
.First();
var ...
0
votes
0
answers
71
views
OAuth domain with a custom port in a dev environment? [duplicate]
I have an app for which the OAuth domain is example.com
However, the domain for dev environment is example.com:8000
When trying to authorize the website, Stack Exchange replies with an error ...
-2
votes
1
answer
65
views
Are the inbox routes (`inbox_item`) missing some item types?
Should there be more options for item_type in the "inbox" routes (they return inbox_item)?
Shouldn't they return answer and edit suggested like the site's global inbox does? As shown in this ...
1
vote
1
answer
87
views
Is my script's API usage okay?
I've written a short Python script to help people review C and C++ questions on Code Review. It uses the API version 2.2.
I've already asked there for a review of that Python code, but I would ...