Skip to main content
Data quality · Field notes

Six Validation Layers Every Scraped Dataset Needs Before It Reaches Your Warehouse or Customers

Scraped data quality checks tend to get written the week after something goes wrong. A price lands in the warehouse as 1299 instead of 12.99, a customer spots it before you do, and someone adds a rule so that exact thing can't happen again. Do that for two years and you have forty rules and no system. This is the system: six layers, in the order a row meets them, with what each one catches, what it misses, and the thresholds we start from.

DDDataDwip Team · Written with the QA lead
Published 27 Nov 2026 13 min read

The short version

  • Run six layers in order: fetch, schema, rules, completeness, drift, ground truth. The first three judge a row. The last three judge the whole run.
  • Most teams have layers 1 and 2. Those catch two of the eight failures that commonly reach customers.
  • A dataset can pass every row-level check and still be wrong. Only drift and ground-truth checks catch values that are valid and false.
  • Failing rows go to quarantine, not the bin. A failed run blocks the delivery; it doesn't quietly ship a smaller file.
  • Every delivery should carry a one-page quality report. If you buy data, ask to see one before you sign.

Where a bad row gets caught decides what it costs

Scraped data quality checks all do the same job at different distances from the customer. Take one bad row, a price that lost its decimal point, and ask where it stops.

The blast radius of one bad row

The further out it travels, the more people touch it and the longer it takes to find.

1234
1
In the pipelineA validation rule stops it. Nobody downstream ever sees it.
minutes
2
In the warehouseA data engineer notices a job or a join behaving oddly.
hours
3
In a dashboard or modelAn analyst questions a chart. By now it's in reports and features.
days
4
With the customerThey email you. You're now explaining, re-delivering and checking what else was wrong.
a week or more
Field-level failures in scraped feeds are typically found three to five days after they start. That is ring 3. The six layers exist to keep everything in ring 1.

Here's the part that makes scraping different from other pipelines: three of the four ways a scraper breaks still return HTTP 200. The job finishes, the row count looks normal, and the status page stays green. We went through those failure modes in why web scrapers break. The upshot for QA is that "did the job succeed?" tells you almost nothing. You have to check the data.

A web data quality framework in six layers

A web data quality framework only works if the layers run in a fixed order, because each one assumes the one before it passed. There's no point checking a price range on a page that was really a CAPTCHA.

The six layers, in the order a row meets them

Top three judge one row at a time. Bottom three judge the run as a whole.

↓ Raw responses in
1
FetchDid we get the real page, or a block wearing a 200?
PER RESPONSE
2
SchemaAre the fields there, in the right type and format?
PER ROW
3
RulesIs each value possible for this field in this business?
PER ROW
4
CompletenessIs all of it here, once, with every field filled?
PER RUN
5
DriftDoes today look like the last thirty days?
RUN VS HISTORY
6
Ground truthDoes it match what the site really says?
SAMPLE VS SITE
↓ Released to your warehouse, with a report
The stack narrows because each layer removes something. What comes out of the bottom is smaller than what went in, and that is the point.

Web scraping data validation, layers 1 to 3: is this row real?

Web scraping data validation starts before parsing. The first three layers look at one response or one row at a time, they're cheap, and they should run on everything.

Layer 1 · Fetch: did we get the real page?

Protected sites often answer a blocked request with a 200 and a challenge page. Parse that and you get a row of nulls, or worse, a row of text from the challenge. So check the response before you trust it: known block markers, a page size inside the normal band for that template, and at least one element that only exists on a real page, such as the product title container. Misses: anything wrong on a page that loaded correctly.

Layer 2 · Schema: are the fields the right shape?

Required fields present, types correct, formats parseable. A price is a number. A date is a date. A URL starts with https. This is the layer everyone has, usually as a JSON schema or a typed model. Misses: values that are the right type and still nonsense. "1299" is a perfectly good number.

Layer 3 · Rules: is this value possible?

Now apply what you know about the business. Price above zero and inside a band for the category. Sale price not above list price. Currency in the list you expect for that site. Rating between 0 and 5. Stock status one of four known values. Cross-field rules earn their keep here, because parsers tend to break one field at a time. Misses: a value that's plausible and wrong, like the price of a different variant.

delivery_2026-11-24.jsonl · row 4,812
1"sku": "TRK-88213",
2"title": "Trail Runner 4 — Men's",
3"price": 1299,L3Outside the $20–$400 band for footwear. The page says 129.90: the decimal point was lost.
4"list_price": 149.00,L3Price is above list price, so a cross-field rule catches it too.
5"currency": "EUR",L5Valid code, but this source was 100% USD yesterday.
6"rating": null,L4Allowed to be null, but 88% of today's rows are. Fill rate collapsed.
7"in_stock": true,
8"scraped_at": "2026-11-21T06:02Z"L5Three days old. The site is serving a cached page.
One row, five problems, and a schema check passes all of them. Every value here is the right type. Illustrative record.

Layers 4 to 6: is this run true?

Data quality assurance for web data gets harder at this point, because the next three layers can't be answered by looking at a row. They need the whole run, the last month of runs, and the live site.

Layer 4 · Completeness: is all of it here?

Count the rows and compare with the baseline for that source. Then count by category, because losing one category out of twenty moves the total by 5% and hides inside normal variation. Check the fill rate of every field, and check duplicates by primary key. Misses: a complete, well-filled dataset of wrong values.

Field fill rate, last 14 runs

One source. Each square is one field on one day. The total row count never moved.

1234567891011121314
title100%
price100%
currency100%
in_stock99%
rating12%
category100%
image_url98%
97–100%90–97%50–90%under 50%Last column: today's fill rate.
The rating widget moved to a lazy-loaded panel on day 9. Rows kept arriving and passing schema, since rating is nullable. Only a per-field fill check sees this. Illustrative data.

Layer 5 · Drift: does today look like the last month?

This is the layer that catches the failures people remember. A site switches currency for your IP range. A tax-inclusive price replaces a tax-exclusive one. Every row is valid, every field is filled, and the mean price moved 14% overnight. Compare today's distribution for each numeric field with a trailing window, and watch category mix and the share of pages whose content hasn't changed. Misses: a slow error that was there from day one, so the baseline is wrong too.

Same source, same SKUs, one day apart

Distribution of the price field. Nothing failed a row-level check.

$20$40$60$80$100
Trailing 30 daysToday
100%of today's rows pass schema and range rules
+14%shift in mean price against the 30-day baseline
4.1σfrom the baseline mean; the alert fires at 3σ
The site began showing tax-inclusive prices. Each number is believable on its own; together they're a different dataset. Illustrative data.

Layer 6 · Ground truth: does it match the site?

The last layer is the only one that looks outside the pipeline. Keep a small set of reference records per source, pages whose correct values a person has confirmed, and check them on every run. Add a manual sample: a few dozen rows a week compared with the live page by a human. It's slow and it doesn't scale, which is why it comes last and stays small. It's also the only thing that catches a parser reading the wrong element perfectly consistently. Misses: whatever isn't in the sample, so rotate it.

Scraped data quality checks: starter thresholds

Scraped data quality checks need a number and a consequence, or they become a dashboard nobody reads. These are the thresholds we start a new source on. Tune them after two weeks of baselines; a marketplace and a government registry don't behave alike.

LayerCheckStarting thresholdOn failure
1 · FetchBlocked or challenged responses> 2% of fetchesRetry, then block the run
2 · SchemaRows failing type or format> 1% of rowsQuarantine rows; block above 5%
3 · RulesRows outside range or breaking a cross-field rule> 1% of rowsQuarantine rows
4 · CompletenessRow count against baseline±15% of 30-day medianBlock the run
4 · CompletenessCoverage of expected records< 97%Block the run
4 · CompletenessFill rate of any field−5 points day on dayFlag; block if a key field
4 · CompletenessDuplicates by primary key> 0.5%Dedupe and flag
5 · DriftMean of a numeric field against baseline> 3σBlock until a person looks
5 · DriftPages with unchanged content48 hoursFlag as stale
6 · Ground truthReference recordsany mismatchBlock the run

Two notes on that table. "Block" means the delivery doesn't go out until someone decides, which is uncomfortable the first time and correct every time. And the thresholds are per source. A single global threshold is either too loose for your steady sources or too noisy for your erratic ones.

Quarantine and the release gate

Web scraping data validation fails quietly when its only outcomes are "pass" and "drop". Dropped rows vanish, the file gets a little smaller, and nobody asks why. Give every check one of three outcomes instead.

  • Quarantine the row. It's held back with the reason attached. You can inspect it, fix the parser and replay it.
  • Flag the run. The delivery goes out, marked, with the flag in the report.
  • Block the run. Nothing goes out. Yesterday's data stays current until a person releases or repairs.

Then write the result down. Every delivery should leave with a short report that says what ran, what passed, what was held back and why. This is the screen we'd want to see as a buyer.

RUN 2026-11-24 06:00 UTC · retailer-b.com · example
Delivery quality report
Released · 1 flag
L1 FETCH
Pass0.6% blocked
L2 SCHEMA
Pass0.2% failed
L3 RULES
Pass0.4% failed
L4 COMPLETE
Flagrating −6 pts
L5 DRIFT
Passmax 1.2σ
L6 TRUTH
Pass25 / 25
Fields fill · drift vs 30 days
FieldFillDriftStatus
price99.8%0.4σok
currency100%—ok
in_stock99.1%1.2σok
rating91.4%0.3σflag
category100%—ok
This run
Rows collected10,214
Quarantined61
Duplicates removed18
Released10,135
Coverage of expected99.2%
PASS RATE · 14 RUNS · 99.4% TODAY
An example per-delivery quality report: six lights, the fields that moved, and where every row went. Illustrative figures, not a DataDwip product screen.

Check the arithmetic on any report like this: collected, minus quarantined, minus duplicates, should equal released. Here 10,214 − 61 − 18 = 10,135. If the numbers don't close, rows are going somewhere the report doesn't mention.

What would leak through your checks?

Switch on the layers you run today. The panel shows which of eight common failures your scraped data quality checks would stop, and which would reach your warehouse or customers.

0 / 8

Building a web data quality framework: where to start

A web data quality framework doesn't have to arrive all at once. If you have nothing beyond a schema check, build in this order, which is by value for effort and not by layer number.

  1. Layer 4, row counts and fill rates. A day of work, and it catches the largest class of silent failure.
  2. Layer 1, block detection. Stops you parsing challenge pages, which pollutes everything after it.
  3. Layer 3, a dozen rules on your key fields. Start with price, currency and the primary key.
  4. Layer 5, drift on two or three numeric fields. You need about two weeks of history first.
  5. Layer 6, ten reference records per source. Tedious to set up, and nothing else finds what it finds.

Budget for the upkeep. Every site change means the baselines, rules and reference records for that source need another look, and that's a good share of why an in-house scraping engineer spends about 40% of the year on maintenance. If you're buying the data instead, these six layers are what the quality clause in a web data SLA should be measuring, and a four-week pilot is where you find out whether the vendor really runs them.

How DataDwip runs data quality assurance for web data

Data quality assurance for web data is a named role on our dedicated data acquisition teams: three engineers, a delivery manager and a QA lead whose job is the six layers above.

  • Every delivery is validated before it leaves and arrives with a quality report.
  • The numbers are in the SLA: at least 99% of records passing validation, duplicates under 0.5%, and at least 97% coverage per source per run.
  • Breakages are detected within 4 hours and fixed within 24 business hours, and you get a weekly source-health digest.
  • You can test it first. A four-week pilot is scored against those same numbers, and the code and data are yours either way.

For a one-off dataset you don't need a standing team. Our web scraping services include validation on delivery; ask what was checked and you'll get the list.

Frequently asked questions

What are scraped data quality checks?

They're automated tests run on scraped data before it is delivered: that the page fetched was real, that fields have the right type, that values are possible, that the dataset is complete, that today resembles recent history, and that a sample matches the live site.

How do you validate web scraping data?

In layers. First check each response and row: fetch, schema, business rules. Then check the run: completeness, drift against a trailing baseline, and ground truth against reference records. Failing rows are quarantined with a reason, and a failing run blocks the delivery.

Why isn't schema validation enough for scraped data?

Because most scraping failures produce valid-looking data. A lost decimal point, a changed currency, a missing category and a stale cached page all pass a schema check. Of eight common failures, schema plus fetch checks catch two.

What is data drift in web scraping?

It's when the distribution of a field changes without any row breaking a rule, for example prices switching to tax-inclusive. You detect it by comparing today's mean, spread or category mix with the previous thirty days and alerting on a large move, such as three standard deviations.

What accuracy should scraped data have?

Vendors typically commit to 95% to 99% of records passing validation. At 10,000 records a day, 99% still means 100 failing rows daily, so ask what happens to those rows and whether the figure is measured per field, per record or per delivery.

What should a data quality report include?

The result of each validation layer, rows collected, quarantined, deduplicated and released, coverage against expected records, fill rate and drift for key fields, and any flags. The counts should add up: collected minus quarantined minus duplicates equals released.

DD

DataDwip Team DataDwip runs web scraping and managed data acquisition for data-product companies in the US, UK and Europe: 1,000+ websites monitored, 50 million records delivered, 5.0 average rating across 38 verified reviews on Clutch and GoodFirms. These notes were written with the QA lead on our delivery team. About us.

Related reading

Notes on the numbers
  1. Thresholds are DataDwip's starting values for a new source and match the nine checks in our scraper-reliability guide.
  2. "Three to five days" to find a field-level failure is from PromptCloud's published guidance on scraped-data failures.
  3. The 95% to 99% range for vendor quality commitments is from DataHen's guide to enterprise scraping SLAs.
  4. The sample row, heatmap, drift chart and quality report are illustrative.