v2 of the API improves on this a good bit, but I haven't tested it thoroughly yet.
Reply on news.ycombinator.com