R
X-Pagination-Limit problem
Road ToBeast almost 4 years ago 4329 views 2 replies
hi, how can i modify the size of array returned by the response, it is set at 20 and i couldn't modify it
here's my code :
var response = await axios.request({
url: '/public/v2/comments',
method: 'get',
headers:{
'Authorization': 'Bearer ' + myToken
'x-pagination-limit': 10 // ???
}
})
2 replies
Z
zeevy almost 4 years ago
API does not support custom limit feature, records per page are fixed at 20
Z
zeevy over 3 years ago
Now API support custom per page results, you can pass per_page parameter in url.
Ex: per_page=50 (between 1 to 100)