You could do:

    conn <- gzcon(url("http://api.stackoverflow.com/0.9/stats/"))
    data <- readLines(conn)