I am trying to get all movies but the API only returns first 10 movies. Any help would be appreciated.
async getResults(page = 1) {
const apiKey = '#######';
const proxy = 'http://cors-anywhere.herokuapp.com/';
try {
while (page <= 5) {
const res = await axios(`${proxy}http://www.omdbapi.com/? apikey=${apiKey}&s=${this.query}&type=movie&page=${page}`);
this.result = res.data;
this.page = page;
page++;
}
} catch (error) {
console.log(error);
}
}