pagination, scraping error, api logic