8

Trying to fetch a list of linked questions from the API fails if there are more than 100 results(Or whatever is set by page_size).

This API call to the first page:
          /2.2/questions/402283;2492077/linked?page=1&pagesize=3...

yields:

"items": [ {
    "creation_date": 1518175118,
    "question_id": 48704674,
    "title": "What exactly does UnicodeString store from library ICU and how to print this on Linux?"
  }, {
    "creation_date": 1517385425,
    "question_id": 48537194,
    "title": "Foreign Language in Strings C++"
  }, {
    "creation_date": 1516353394,
    "question_id": 48337650,
    "title": "Assertion failure in std::ispunct in a simple program"
  }
],
"has_more": true,
"quota_max": 10000,
"quota_remaining": 7954,
"page": 1,
"page_size": 3,
"total": 159

while this API call to the second page:
          /2.2/questions/402283;2492077/linked?page=2&pagesize=3...

erroneously yields the exact same thing:

"items": [ {
    "creation_date": 1518175118,
    "question_id": 48704674,
    "title": "What exactly does UnicodeString store from library ICU and how to print this on Linux?"
  }, {
    "creation_date": 1517385425,
    "question_id": 48537194,
    "title": "Foreign Language in Strings C++"
  }, {
    "creation_date": 1516353394,
    "question_id": 48337650,
    "title": "Assertion failure in std::ispunct in a simple program"
  }
],
"has_more": true,
"quota_max": 10000,
"quota_remaining": 7953,
"page": 2,
"page_size": 3,
"total": 159

This holds true for every set of parameters I tried and also applies to other API routes, such as /questions/{ids}/relatedExample.

If a set of questions has more than 100 linked questions(the max page_size), there seems to be no way to get the results from the API.

You must log in to answer this question.

Browse other questions tagged .