Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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&...
Penguin's user avatar
  • 113
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 ...
Vladyslav Usenko's user avatar
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 ...
Glorfindel's user avatar
  • 6,885
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 ...
Glorfindel's user avatar
  • 6,885
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 ...
SoftTimur's user avatar
  • 121
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 ...
ᔕᖺᘎᕊ's user avatar
  • 4,385
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. ...
ashleedawg's user avatar
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 ...
RAGE Developer's user avatar
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....
Marco Pierucci's user avatar
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&...
bmaupin's user avatar
  • 123
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 ...
m-a-r-c-e-l-i-n-o's user avatar
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 ...
Jivan's user avatar
  • 141
-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 ...
amit jha's user avatar
  • 842
1 vote
1 answer
89 views

Absence of `order` and `sort` in rest calls?

Will absence of order and sort give the same result as order=desc and sort=activity always in every call (it is default in every call)?
amit jha's user avatar
  • 842
1 vote
1 answer
95 views

Why is the `site` parameter required in `/me` call?

I want to query information about the logged-in user using me, and this site parameter is creating some small problems. I am developing a visual studio extension where upon logging in a user will get ...
amit jha's user avatar
  • 842
1 vote
1 answer
50 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
  • 842
5 votes
1 answer
199 views

Is there a way to specify how long I want an access token to be valid for?

I am following the explicit authentication path. I am not passing no_expiry as part of the scope. After the final POST step, I receive back an expires value of 86399 (just shy of a full day). It ...
Andy's user avatar
  • 417
2 votes
0 answers
224 views

Stackoverflow Javascript Authentication error

Using the Stack Overflow javascript authentication API, I get this error: Application Login Failure An error occurred while login into an application. Error Details error description: ...
Mahahari's user avatar
  • 129
2 votes
1 answer
60 views

Advanced search doesn't return expected results when using min & max (dates) together?

I want to use the Advanced Search API to get the same results as the Stack Overflow site search. With it, I can see new questions on 11/10/2015. When I tried to craft a query using the Advanced ...
Jason Li's user avatar
3 votes
1 answer
56 views

Reputation_change has the historical total rather than the daily delta?

I'm trying to use the reputation API to get the recent reputation delta for a given user. For example, looking at recent entries for /2.2/users/21539/reputation, one has: { on_date: 1447018487, ...
David Ebbo's user avatar
4 votes
1 answer
78 views

How to monitor (for new) accepted answers by certain tags?

In practice, I don't know the IDs of the questions, but I can search for answers by given tag(s). The problem is how to find (newly) accepted answers. The "activity time" does not work for this. For ...
Jason Li's user avatar
3 votes
1 answer
201 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
3 votes
0 answers
170 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
3 votes
1 answer
124 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
2 votes
1 answer
81 views

Obtain JSON equivalent of a full Q&A HTML page?

I want to write an application for which, after some logic to select a set of questions, it would be most convenient to get the whole set of stuff at once that is normally shown on a Stack Exchange Q&...
Lutz Prechelt's user avatar
1 vote
1 answer
245 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=...
Djouuuuh's user avatar
  • 173
5 votes
1 answer
73 views

Possible to get a user's flag history?

Is it possible to retrieve a signed-in user's flagging history, preferably with the status of the flag? I looked at the /me/timeline docs, and noticed it doesn't return flags. Is this type of ...
Andy's user avatar
  • 417
12 votes
2 answers
6k 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
1 vote
1 answer
134 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