JSON Schema Validator: Validate JSON and Datasets in Bulk
Pricing
from $0.42 / 1,000 validated items
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Features
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:
| index | source | valid | errorCount | errors |
|---|---|---|---|---|
| 3 | inline items | false | 2 | [{"path": "/age", "message": "-4 is less than the minimum of 0", "validator": "minimum"}, ...] |
- One row per item:
index,source(file URL,dataset:IDorinline items),sourceIndex,valid,errorCount, anderrors— a list of{path, message, validator}wherepathis a JSON Pointer such as/address/zip(empty = the item itself) andvalidatoris 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 asOUTPUT): 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
- 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. - Data — any mix of file URLs (
.jsonarray or single object,.ndjson/.jsonl), Apify datasets, and items pasted as JSON. - 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$schemameans 2020-12. Drafts differ (for exampleexclusiveMinimumis a boolean in Draft 4 and a number later), so set$schemato match how your schema was written. errorCountcounts up to 1,000 errors per item;errorslists 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
- YAML to JSON Converter — YAML to JSON and JSON to YAML from text or files, with syntax errors by line and column
- Flatten JSON to CSV — flatten nested JSON into flat rows with the separator you choose
- Filter CSV, JSON or Dataset Rows by Condition — keep only the rows of a CSV, JSON file or dataset that match simple conditions like country = US or price > 100
- JSON to CSV Converter — turn nested JSON files or datasets into one flat CSV file
- Merge Datasets — combine several datasets or CSV/JSON files into one, with columns aligned