Question

Trying to work with questions method of the stackoverflow api and it returns only one page of questions , how can I get the following pages?

The java code I am using :

URL stackoverflow = new URL("http://api.stackoverflow.com/1.1/"
                + method + "?" + "answers=" + includeAnswers + "&body="
                + includeBody + "&fromdate=" + fromUnixTime + "&todate="
                + toUnixTime);

        URLConnection connection = stackoverflow.openConnection();

        InputStream input = connection.getInputStream();

Thank you.

Was it helpful?

Solution

It says right in the documentation for the questions method :

page – The pagination offset for the current collection. Affected by the specified pagesize. 32-bit signed integer

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top