This is not the most educated answer, but through trial and error I have found a way to get the information I'm needing for my project. However, the biggest downside to this method seems to be the throttles that are in place. Websites like Codepen can easily exceed this, especially if you're using a debug window and a live/full screen view side by side for ...
This is a documentation bug in my opinion. The "via Example App" was never included, nor should it be.
A user is fully responsible for his or her content, it doesn't, and shouldn't, matter how that content was posted. Whether via: the web page, the Android App, a custom Stack App, or via Pony Express -- the content is what matters.
A rogue app would ...
I've just done a couple of tests with my placeholder app. Even though the question is closed, I was able to generate a new access token (following the regular procedure) for my sockpuppet account, and with it I was able to edit an answer in the Sandbox. The token for my regular account continues to work as well.
When the post is deleted, write access is ...
Here's a quick'n'dirty userscript, tested on Greasemonkey on Firefox: https://github.com/BobVul/SEReopenReviewWarning/blob/master/SEReopenReviewWarning.user.js
Can be installed via the raw link: https://github.com/BobVul/SEReopenReviewWarning/raw/master/SEReopenReviewWarning.user.js
Currently only the pending/completed review warning is there. I might add ...
Nope, that's the URL to the documentation, not the API endpoint itself. The correct one is
and you can find it by clicking on the link in the Try It widget:
I think creation_date is a default/universal sorting, unless activity_date is available. (But you know what they say happens when you "ASSUME".)‡
Seems like it would be required if paging is going to work well.
This post has 753 edits (759 revision entries) and the creation dates are all in descending order.
This post has 429 edits (...
You can filter (not sort) questions (and to some extent answers) by using the /search/advanced route of the API.
The q parameter allows most of the Advanced Search Options.
For example, this will fetch questions tagged python with at least 2 answers, and that have a score of 50 or more:
No, the API has a limited number of sort options (just like the website itself). The best you can do with the API is to fetch all results and then perform a client-side sort.
Alternatively, use SEDE which is much more flexible when it comes to sort orders, but it has the disadvantage of not providing real-time data. And it doesn't have an API, so it's only ...
I am trying to get the amount of reputation that a user has
how to handle the response (or get one) from a script
You can do this with a Bash command that you can then embed in a script. Here's how:
1. Look up your user ID
Assuming you want to get the reputation on Stack Overflow, go to your account and look up your user ID in the URL:
So, you are making up to 150 requests in a 30 second period (10 "parallel requests", with a 2 second pause in between). And failing at 80 to 100+ seconds of operation and 400 to 500 total requests?
This other failure mode (NOT a 503) trips after about 32-ish seconds and 180 (sequential) requests.
It was previously reported that making about 2 calls per ...
At the moment the number of tags allowed on a question is 5. Both client side and server side this limit is now1 enforced at the time of posting.
There is no direct limitation to allow 6 or even 7 tags. As a matter of fact, this query shows 1038 questions at the time of posting that have 6 tags. The revision for one occurrence reveals what caused that 6th ...
This is not something you could obtain from the API. The API basically exposes some of the features of the site (e.g. search, writing posts, voting itself) in a programmatic way. For analysis like this, you'll need SEDE, the Stack Exchange Data Explorer and support for that is on Meta Stack Exchange; there's even a chatroom dedicated to SEDE.
That said, the ...
You can – sometimes. The default filter contains a question_id field, and according to the examples for the inbox_item type (you have to scroll down a bit) it is filled in some situations. I just tested it and the notification for this comment looks like this:
It should be populated for the new_answer type as well, but I couldn't test this quickly. It is ...
It's no different in the API than it is for the main site. From the FAQ:
you may change your vote within a five minute window from the time of the first vote you cast on that post. Note that after voting and undoing your vote 30 times, it will also be locked in.
Badges and new privileges are part of the /notifications method, which is a single call for all accounts across the network. The results show whether the notification is unread or not. There's also a separate method just for unread notifications: /notifications/unread.
For reputation changes, all I know are some site-specific methods (/me/reputation, /me/...
There's unofficial collaborative Chat API Documentation for how everything in chat works.
Its split up into a couple different parts:
Receiving Events (Messages + other stuff)
More information here: Stack Exchange Chat API Documentation and Bot Boilerplate (finally)
Note: I started the ...
Refer to the API Authentication docs; there are a great many things wrong with the URL in the question (at least 5).
For starters, it's to the wrong path. stackoverflow.com/oauth/authorize gives helpful messages/results like:
Oops! Something Bad Happened!
Authorization attempt not valid for current user
Authorization attempt unauthorized
I get the reason:
Do not use gem 'omniauth-stackexchange', '~> 0.2.1' ,but instead of gem 'omniauth-stackexchange', git: 'https://github.com/nashby/omniauth-stackexchange.git'
The reason see this:add call back url
No, there is no easy way to do this via the API.
Related feature requests:
Provide a method to search for sites winch merely wanted a search for site name/description. It was declined.
Search across Stack Exchange sites in Android app. To implement this usually would mean that a supporting method would be added to the API. This feature-request has been ...
While this isn't possible with the API, it is possible with SEDE, if you allow for up to 7 days of lag.
Here is the SEDE Query that lists Tag wiki and excerpts in descending edit date order:
when w.lasteditdate > e.lasteditdate
This evening, after being inspired by How to get (unread) achievements?, I did some analysis with mitmproxy. It turns out that the Stack Exchange mobile apps use an undocumented API v2.3 method for this: /me/achievements.
A GET call to https://api.stackexchange.com/2.3/me/achievements?pageSize=100&filter=*-t3H1VAnvpZbcZ&access_token=[ACCESS_TOKEN]&...