Why a blank matters
A supplier is the business your shop buys from. If it explicitly reports zero ready to ship, you have a reason to stop offering the item for immediate dispatch.
If the quantity is missing, you have learned something different: today’s check could not establish the count. Someone needs to review the old figure before customers rely on it for too long.
Make sure it is the right item
Check the item code, country and unit of sale. A box of ten can show a price for each piece even though you must buy the whole box. A number from that page cannot automatically be used for a single-item listing.
Choose a supplier reply
Use the practice checker below. Select an explicit zero, then select a missing quantity. One changes the shop’s stock. The other keeps the last reading visible and asks someone to check it.
Would you update this listing?
Seven was the last confirmed quantity for this item. Pick what the supplier shows today. The answer underneath explains what the shop should do.
Record why you changed the listing
Save the confirmed quantity and when you saw it. For a missing value, record the reason the check failed. Give the item a review deadline so an old figure does not stay on sale indefinitely.
Use the saved page to repair the check
If the supplier moved the stock figure, open the copy ScraperAPI already collected. Find the new location, test that it gives the correct answer and check a previously working page too. Use the time the page was collected so an old copy cannot overwrite a newer reading.
Optional: run the code yourself Toggle example
Save this as assess.php and run php assess.php. It compares an explicit zero with a missing value using fictional records.
<?php
// Run with PHP 8+. These arrays represent parsed fixture rows.
function assess(array $row): array
{
if (($row['sku'] ?? null) !== 'DEMO-17'
|| ($row['market'] ?? null) !== 'GB'
|| ($row['currency'] ?? null) !== 'GBP'
|| ($row['unit'] ?? null) !== 'each') {
return ['action' => 'review', 'quantity' => null];
}
$now = $row['ready_now'] ?? null;
if (!is_int($now) || $now < 0) {
return ['action' => 'review', 'quantity' => null];
}
return ['action' => 'update', 'quantity' => $now];
}
$row = ['sku' => 'DEMO-17', 'market' => 'GB',
'currency' => 'GBP', 'unit' => 'each', 'ready_now' => 0];
print_r(assess($row));
unset($row['ready_now']);
print_r(assess($row));Further reading · How ScraperAPI chooses a request region
Next field guide · AdHow many pages will one stock check need?