Remove data response limit in API request

When I’m retrieving records using API v8 the record that have been passed are 20 record only.

How can I removed the limit on API request.
I’m using react-native

Here is the code I’m using to retrieve the data:

       axios({
            url:  'http://website.com/legacy/Api/V8/module/Accounts',
            method: 'GET',
            headers: {
              Accept: 'application/json',
              'Content-Type': 'application/json; charset=UTF-8',
              'Authorization': 'Bearer ' + this.state.token,
            },
          })
           .then(response => {
               var data = response.data.data;

            })
            .catch(err => {
              console.log(err);
            });

Hi @bkm,
To remove the limit on the number of records returned by the API v8, you can add the max_num parameter to the URL and set it to a high number or to “-1” for no limit. Here’s an example URL:

rubyCopy code

http://website.com/legacy/Api/V8/module/Accounts?max_num=-1

In your code, you can update the URL in the axios call as follows:

kotlinCopy code

axios({
  url:  'http://website.com/legacy/Api/V8/module/Accounts?max_num=-1',
  method: 'GET',
  headers: {
    Accept: 'application/json',
    'Content-Type': 'application/json; charset=UTF-8',
    'Authorization': 'Bearer ' + this.state.token,
  },
})
.then(response => {
  var data = response.data.data;
})
.catch(err => {
  console.log(err);
});

This should return all records without any limit.