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.

ManuelEscriche's avatar
1
ManuelEscriche
asked 2015-09-15 05:17:09 -0500

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.

Evgeny's avatar
13.2k
Evgeny
answered 2015-09-22 22:41:05 -0500
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 (2015-09-23 00:52:32 -0500)

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 (2015-09-23 01:00:13 -0500)
see more comments