I am trying to receive just 10 news using this: function getNew(){ newsapi.v2.topHeadlines({ category: 'general', country: 'br', pageSize: 10 }).then(response => { }); } But I am receiving 20 news. 'pageSize' seems not to be working. Thanks
I am trying to receive just 10 news using this:
function getNew(){
newsapi.v2.topHeadlines({
category: 'general',
country: 'br',
pageSize: 10
}).then(response => {
});
}
But I am receiving 20 news. 'pageSize' seems not to be working. Thanks