Fix scraper api functions