JSON Schema Validator: Validate JSON and Datasets in Bulk avatar

JSON Schema Validator: Validate JSON and Datasets in Bulk

Pricing

from $0.42 / 1,000 validated items

Go to Apify Store
JSON Schema Validator: Validate JSON and Datasets in Bulk

JSON Schema Validator: Validate JSON and Datasets in Bulk

Validate JSON files, NDJSON or Apify datasets against a JSON Schema (Draft 2020-12, 2019-09, 7, 6, 4). One row per item with valid or not and every error with its path. Empty input = free demo.

Pricing

from $0.42 / 1,000 validated items

Rating

0.0

(0)

Developer

Actor Factory

Actor Factory

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

JSON Schema validator for bulk data: your scraper, API export or data feed keeps delivering records with missing fields and wrong types, and you only find out downstream. Give this Actor a JSON Schema and your data, and get one row per item: valid or not, and every error with its path.

Point it at JSON or NDJSON file URLs, an Apify dataset (for example the output of a scraper run), or items you paste, and it checks each item against your schema with the Python jsonschema library. The draft (2020-12, 2019-09, 7, 6 or 4) is picked from the schema's $schema line. You pay per validated item — no monthly rent, and a bad schema, an unreadable file or the demo cost nothing.

Try it free: clear the input and press Start — a built-in sample schema is applied to four sample customer records, showing both valid and invalid rows (not charged; rows carry _demo: true).

What you get

Schema (excerpt) and an item:

{"type": "object", "required": ["id", "email", "age"], "properties": {"age": {"type": "integer", "minimum": 0}}}
{"id": 3, "email": "not-an-email", "age": -4}

Result row:

indexsourcevaliderrorCounterrors
3inline itemsfalse2[{"path": "/age", "message": "-4 is less than the minimum of 0", "validator": "minimum"}, ...]
  • One row per item: index, source (file URL, dataset:ID or inline items), sourceIndex, valid, errorCount, and errors — a list of {path, message, validator} where path is a JSON Pointer such as /address/zip (empty = the item itself) and validator is the failed schema keyword (required, type, minimum, enum, pattern, ...).
  • Optionally the item itself in each row (item), so you can fix or re-route the bad ones.
  • Only invalid items option: write just the failures, still with a full count in the summary.
  • Run summary in the key-value store (SUMMARY, also saved as OUTPUT): items checked, valid and invalid counts, valid percent, the most common errors by rule and path (array positions folded to *, e.g. /lines/*/qty), counts per source, input files that could not be read.
  • Broken NDJSON lines and unreadable files get a free row that says what is wrong.

How to use

  1. JSON Schema — paste it, or give a JSON Schema URL (for example a raw GitHub link or a SchemaStore URL). Schema $refs inside the document work; references to other URLs are not fetched.
  2. Data — any mix of file URLs (.json array or single object, .ndjson / .jsonl), Apify datasets, and items pasted as JSON.
  3. Optional: Check formats (enforce email, uri, date, date-time, ipv4, uuid, ... — off by default, as the specification treats formats as annotations), Only invalid items, Include the item, Max errors listed per item, Max items.
{
"schemaUrl": "https://example.com/schemas/order.schema.json",
"fileUrls": ["https://example.com/exports/orders.ndjson"],
"datasetIds": ["YOUR_DATASET_ID"],
"onlyInvalid": true,
"includeItem": true
}

Pricing

Pay per event: $0.0006 per validated item (about $0.60 per 1,000), valid or invalid. With Only invalid items on, valid items are still checked and counted. Not charged: the empty-input demo, schemas that are not valid, files or datasets that cannot be read, and broken NDJSON lines. Set a maximum cost per run in Apify and the Actor stops when it is reached.

Good to know

  • Draft support follows $schema: draft/2020-12, draft/2019-09, draft-07, draft-06, draft-04. No $schema means 2020-12. Drafts differ (for example exclusiveMinimum is a boolean in Draft 4 and a number later), so set $schema to match how your schema was written.
  • errorCount counts up to 1,000 errors per item; errors lists up to the limit you set (default 20), sorted by path.
  • Limits: 100 file URLs and 20 MB per file, 5 MB for the schema, 100,000 items per run by default (up to 1,000,000). A JSON file is read whole, so for very large inputs use NDJSON or a dataset.
  • Public files only: no logins, and links to internal networks are blocked. You are responsible for having the right to check the files you point it to.
  • Messages quote the failing value (cut at 300 characters). They stay in your own Apify storage.

If this Actor saved you time, a rating on the Store helps others find it.

More tools from the same developer