Hot answers tagged

3

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 ...


3

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 ...


3

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 ...


3

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 ...


3

It's probably because the referenced post has been deleted. The API excludes (most) deleted data (usually).


2

Nope, that's the URL to the documentation, not the API endpoint itself. The correct one is https://api.stackexchange.com/2.2/answers?page=3&order=desc&sort=activity&site=stackoverflow and you can find it by clicking on the link in the Try It widget:


2

I think creation_date is a default/universal sorting, unless activity_date is available. (But you know what they say happens when you "ASSUME".)‡ Evidence for: 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 (...


2

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:   /2.2/search/advanced?page=1&pagesize=100&q=score:50&...


2

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 ...


2

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: https://...


2

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 ...


2

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 ...


2

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 ...


2

You need the /tags/{tags}/wikis method for this. Here is a link to the documentation page, including the necessary parameters for the JavaScript tag. By default, the body of the tag wiki isn't returned, so you'll need a custom filter. { "items": [ { "excerpt_last_edit_date": 1570698075, "body_last_edit_date": 1573208252, "excerpt": "...


1

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 ...


1

Luckily for us, Stack Exchange's unminified Javascript is available on dev.stackoverflow.com. When you have a filename of the script you want to unminify (eg, from the network tab, you see https://cdn.sstatic.net/Js/full.en.js?v=68bef5b3498f, which has a filename of full.en.js), all you need to do is append it after https://dev.stackoverflow.com/content//Js/,...


1

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.


1

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/...


1

There's unofficial collaborative Chat API Documentation for how everything in chat works. Its split up into a couple different parts: Authentication Receiving Events (Messages + other stuff) Sending Events/Messages User Information More information here: Stack Exchange Chat API Documentation and Bot Boilerplate (finally) Note: I started the ...


1

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 Couldn'...


1

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


1

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 ...


1

and this too: StackOverflow CodeBox Options


1

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: select t.id , t.tagname , concat('site://tags/' , tagname , '/info' , '|' , case when w.lasteditdate > e.lasteditdate ...


1

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]&...


Only top voted, non community-wiki answers of a minimum length are eligible