Skip to content

how to · guide

How to write a data spec your provider cannot misread

The one-page spec that prevents 90% of delivery disputes: fields, types, keys, dedupe rules, refresh and acceptance tests.

5 min readPublished 2026-11-25Updated 2026-11-25Reviewed by a person, not a template
Jump to the short answer
On this page
  1. Fields: name, type, example, required
  2. The primary key and the dedupe rule
  3. Refresh and delivery
  4. Acceptance tests
  5. A one-page template
  6. Why this saves money

The short answer

A data spec is one page: the field list with types and examples, the primary key, the dedupe rule, the refresh cadence, the delivery format, and two or three acceptance tests. If any of those is missing, the provider will guess — and you will get a file that is 'nearly right', which is the most expensive kind.

Fields: name, type, example, required#

A field without an example is ambiguous. 'phone' could be a string with country code, a number, or three numbers separated by slashes. Show one real value.

The primary key and the dedupe rule#

Pick a stable identifier — registration number, ASIN, listing id. Then state what happens on conflict: last-write-wins, prefer the record with the higher fill rate, or keep both with a source column. Silence here guarantees duplicates.

Refresh and delivery#

State the cadence (daily, weekly), the cut-off time, the timezone, and whether you want a full file or deltas. Deltas need a change timestamp and soft deletes to be safe.

Want this data without building it?

Free 100-row sample with fill rates, then a written quote in 24 hours.

Get a quote

Acceptance tests#

  • Fill rate: e.g. 'city populated in ≥95% of rows'
  • Key uniqueness: 'zero duplicate registration numbers'
  • Freshness: 'all rows verified within 7 days'
  • Spot check: 10 random rows validated by you on the source

A one-page template#

Dataset: Company registries — United Kingdom
Fields:
  legal_name  text   "Placeholder Agro Pvt Ltd"  required
  company_no  text   "MASK-0001234"               required, unique
  state       text   "Maharashtra"               required
  status      enum   active|cancelled|suspended  required
  source_url  url    "https://…"                 required
Key: company_no
Dedupe: keep newest by verification date
Refresh: weekly, Monday 09:00 UTC, full file
Delivery: CSV (UTF-8) + schema doc
Acceptance: 0 duplicate company_no · country 100% · status 100% · source_url 100%

Why this saves money#

Every line above becomes a sentence in the quote, which makes a re-run free when it fails and a scope change obvious when it changes. Disputes happen in the gaps a spec does not fill.

Questions this raises

How long should a spec be?

One page. If it needs three, the project is not scoped yet.

Who writes it?

You write the fields and acceptance tests; the provider adds feasibility notes per source.

What if I do not know the fields?

Ask for a sample first and choose fields from real rows — that is exactly what the 100-row sample is for.

Scrapefall team

Data engineering — We build and run the extraction pipelines behind every dataset we sell. Guides are written by whoever maintains the source, and reviewed by a second engineer before publishing.

Reviewed by a second engineer before publishing · last updated 2026-11-25

All articles

Send one URL. Get one sample. Decide from data, not a sales call.

100-row sample, masked where needed, with the source URL on every row. Written quote within 24 hours.