First time here? Check out the FAQ!
0

How do I get all questions by using the API
 

When using the API, specifically /api/v1/questions/, I don't get all questions despite passing as param scope = all. the count value shows 33 items, but the output request provides only 30 questions.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
ManuelEscriche's avatar
1
ManuelEscriche
asked 9 years ago

Comments

see more comments

1 Answer

0

There may be a case for increasing the number of questions to load at once, but loading all at once will not make sense because the number of questions on the site can be very large.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 9 years ago
link

Comments

Well, the amount of questions depend of the query. Anyway, al least there should be a mechanism to get all items for the query submitted. Thanks!

ManuelEscriche's avatar ManuelEscriche (9 years ago)

Pagination of responses is unavoidable, only what can be argued for is the maximum number of values per page/per API call. 30 may be too low.

Evgeny's avatar Evgeny (9 years ago)
see more comments