Hot answers tagged

36

As of version 1.0.54 (out for everyone now on Google Play) this is fixed. As of version 1.0.53 (in beta, right now) we have suggested edit functionality and it happens seamlessly when you're editing but have to suggest instead. I think I know what's happening here: The Stack Exchange API (which our official app also uses) doesn't offer the ability to ...


34

When we make a change to a post, we inform our API that the post has been changed so that it doesn't return an outdated cached version. Normally, this is a relatively small list of things since not that much changes (thousands of posts an hour). As part of the HTTPS migration though, we needed to replace each site's links to http:// to their https:// ...


25

Semi-Official Not-Quite-Legal-but-Pretty-Authoritative Answer I don't envision anyone over here suing you in the near future. I may sue Undo, and possibly ArtOfCode, but only if I get super-bored, and most likely for reasons unrelated to their use of SO/SE. The lawyers would probably want me to be clear that the ToS is supposed to speak for itself, and ...


24

What distinguishes the well-behaved robots that help moderate the sites is that they have some kind of human oversight. And they perform actual moderation actions like flagging. Voting is not moderation alone, it was supposed to be a person judging the quality of a post. It has moderation side-effects, but it's not a pure moderation action. Voting should ...


22

body=true doesn't seem to work with the 2.1 API, but you can add filter=withbody: https://api.stackexchange.com/2.1/questions/113204?site=meta.stackoverflow&filter=withbody Or you create a custom filter that includes the body.


22

To me, an embeddable Stack Overflow "vote" widget would make no sense at all. Facebook's or Google Plus's "Like" functionalities are fundamentally different from voting on Stack Overflow, they serve completely different purposes. An external voting widget would defeat the core purpose of SO's voting system: Voting is used for competition between multiple ...


21

Thanks for reporting! A fix for this was just deployed, and the CORS headers are getting sent again.


19

For jobs, our “API” is the RSS feed. You can get a feed of any search of jobs, look for the RSS icon below the search results, e.g. here: We also have an API for employers to post jobs. What use cases are you hoping for in an API for Careers?


16

This was a deliberate change that went in a few weeks ago. Since it is possible to get the email address from the hash, we no longer release email hashes to better protect people's privacy.


16

IANAL, and this isn't an official answer, but I've done both in the past and haven't been sued yet. – Undo 1 min ago Likewise. SE don't tend to be the type to hammer you into the ground if you make a mistake - if you're doing it wrong, it seems most likely that you'll get a warning, at which point you can change how you're doing things. I work on metasmoke,...


16

I quite like GitHub's OAuth login screen, which I think we could take ideas from (if you want to see it yourself, try using Login-with for an example): Here it clearly states that it's not operated by GitHub which is the most important thing. It also tells the user what to expect after clicking the authorise button (the redirect), which I think is ...


15

The API protects itself from heavy load to various subsystems that support it. In this case you were tripping a SQL server load throttle due to a very bad query plan due to a PostTypeId = @Answer rather than PostTypeId = 2 that snuck in there. This has been corrected, and the new PostTypeId = {=Answer} (Dapper literal replacement) is live. You should no ...


13

Put Beautiful Soup down and forget about regular expressions. There's way better tools at your disposal than screen scraping. Before you start Please keep the following in mind as you consume the data, regardless of how you obtain it: The terms of use The data license The attribution requirements The trademark guidance Once you are comfortable with the ...


13

It looks like you selectively read the throttle guidance A dynamic throttle is also in place on a per-method level. If an application receives a response with the backoff field set, it must wait that many seconds before hitting the same method again. For the purposes of throttling, all /me routes are considered to be identical to their /users/{ids} ...


13

If parsing an XML is not an issue, Stack Exchange has an Atom feed for Hot Network Question on https://stackexchange.com/feeds/questions. However, it seems it's only limited to 30 questions (who knows why). Example content: <entry> <id>https://money.stackexchange.com/questions/90615/investment-strategy-for-google-what-did-i-do-wrong</id&...


12

There have been several attempts at providing such access to the API from R : overflowr is "an R package to pull data from the StackExchange API", but it hadn't been updated since 2010 : https://code.google.com/p/overflowr/source/list RStackExchange is also an "R based StackExchange client", but hadn't been updated for 2 years, too : https://github.com/...


12

Create the question and then comment with the link. Or if you notice a case where this didn't happen, go ahead and add the comment. Questions with associated meta discussions should be pretty rare as a proportion of overall question count, so most of the time this would be noise. You could say that flags and closures are also rare, but those situations ...


12

The API returns results in pages, defaulting to 30 items per page. Since there's far more sites on the network, you need to request subsequent pages, or use a larger page size. The maximum page size for API requests is usually 100 items, but in the case of the /sites route it's unbounded. StacMan allows you to pass in a pagesize parameter to the GetAll() ...


11

No. Hats are only going to last until January 4, there'd be absolutely no point in asking the developers to update the API for something that's supposed to be silly, fun and ephemeral. There are 5000+ feature requests and 2,037 bug reports that deserve more attention than this.


11

As Mysticial said, there's no way to do this, because only the user who cast votes can see his/her vote history. Even moderators aren't privy to this, although they can see what percentage of a user's votes were cast or received for/from a given user. I don't think it's a good idea for this information to ever be made public (at least to non-mods). If I ...


11

The Stack Overflow Enterprise offers an API that is currently in Beta with several customers. In its initial form, the API is quite similar to the publicly available Stack Exchange API, but only with read-only abilities. If your company has Stack Overflow Enterprise, but has not yet adopted the API, feel free to reach out to your admin to request it. We're ...


10

Version 1.x of the API put the burden of proper encoding on the consumer for certain fields, so this behaviour is by design and just something that developers had to be careful of. However, because that wasn't the most consumer-friendly design, the current version of the API (which it is recommended that you use) introduces the notion of field safety. By ...


10

This should be fixed now. There was an early fix stripping out invalid codepoints that inadvertently starting adding that preamble to each encoded string.


10

This is a confluence of different things, so this is gonna be a kind of complicated answer. While we're working on getting https everywhere, SO is available over https but it's not really supported yet. Because Googlebot will, at least in our experience, prefer crawling over https we explicitly redirect request from googlebot ips to http. We'll probably ...


10

API key management is handled over on Stack Apps. See the sidebar for the relevant links, including the one to register a new application.


10

I suspect this will end up with status-bydesign. Since Jeff was one of the founders of the site (notice his account_id) they never revoked his diamond. I can't be sure, but it's not likely it will be revoked in the near future. This has been discussed before. While he's no longer an employee, he still has the privileges of one. Unlinking this to fix this ...


10

In addition to writing a program that polls and compiles API data as mentioned by Awesome Poodles' Answer, you can also do this via the Stack Exchange Data Explorer. There are some limitations due to some events not being visible in the data dump (like private reputation events): The -1 for downvoting posts is not factored in Reputation from the ...


10

The trick is to use the undocumented version 2.3 of the API. It has a new method, /questions/{id}/suggested-edit/add and a similar one for answers (/answers/{id}/suggested-edit/add). I figured this out by monitoring requests sent by the Stack Exchange mobile app using Fiddler. I would share some sample code but for you it isn't necessary: the body of the ...


10

I don't think additional limits are needed to solve this problem. Instead, I think altering the roomba so that this kind of voting can be seen before the roomba takes action on these posts would be more effective. The roomba should bypass any posts that have received a vote or whose answers have received a vote (up or down) in the past 7 days. Add a list ...


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