An example you can calculate
Imagine a category with 1,000 items. At 25 items per page, it takes 40 pages to see them all. At 100 per page, it takes 10.
ScraperAPI measures usage in credits. Check the cost for the site and settings you plan to use. If you also open 20 individual product pages, add those requests to the category pages.
Check how many items fit on a page
Pick one category. Choose a page size the supplier offers and count the items you actually receive. Try the next page too. If it repeats the first page or drops your stock filter, the figure you are planning with is unreliable.
Try one category in the calculator
Enter its product count, the page size and the number of extra product pages you need. Set the credits per request to your own test rate. The calculator uses that same rate for all requests in this example.
Estimate a category scan
Try changing “Products per page” from 100 to 25. The category takes more pages to cover, even though you still open the same 20 individual product pages.
Count a half-full page as one request
A category with 450 products takes five pages at 100 per page. A second category with 750 takes eight. Count each category separately because you still have to open its last page.
Leave room for the next stock check
Suppose live listings need another check tomorrow. Reserve enough credits for that job before collecting new products. Include repeat visits and any difference in cost between category pages and product pages. Save where you stopped so you can continue later.
Optional: run the code yourself Toggle example
Save this as budget.php and run php budget.php. The sample should report 13 list requests, 30 detail requests and 215 illustrative credits.
<?php
// Run with PHP 8+. These are illustrative planning inputs.
$categories = [450, 750];
$pageSize = 100;
$detailPages = 30;
$creditsPerRequest = 5;
$listPages = 0;
foreach ($categories as $products) {
$listPages += (int) ceil($products / $pageSize);
}
$requests = $listPages + $detailPages;
printf("%d list + %d detail = %d requests, %d credits\n",
$listPages, $detailPages, $requests, $requests * $creditsPerRequest);Further reading · How ScraperAPI counts credits
Next field guide · AdHow does a shop collect a page that takes a while?