Dataset Schema Drift Detector avatar

Dataset Schema Drift Detector

Pricing

from $50.00 / 1,000 drift report completeds

Go to Apify Store
Dataset Schema Drift Detector

Dataset Schema Drift Detector

Compare yesterday's and today's JSON records: removed or added fields, type changes, null-rate spikes and volume drops, before downstream automations break.

Pricing

from $50.00 / 1,000 drift report completeds

Rating

0.0

(0)

Developer

Colton Mcclain

Colton Mcclain

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 days ago

Last modified

Categories

Features

Limited permissions

Share

Catch broken selectors and silent schema changes before they reach your pipeline.

What problem does it solve?

A scraper that 'succeeds' can still return empty prices, renamed fields or half the rows. You find out downstream, days later.

What it does

  • Profiles both samples per top-level field: presence, null/empty rate, value types.
  • Flags removed and added fields, type changes, null-rate spikes, presence drops and volume drops.
  • Returns severity-ranked findings plus both profiles so you can see the numbers.

Pricing (pay per event)

EventPrice
Actor start (once per run, per GB of memory, minimum one)$0.0050
Drift report completed (per drift report)$0.0500

You pay only for the events above plus nothing else from ELYRAON; Apify platform usage is covered by the event prices. The start event is charged on every run, including a run rejected for invalid input (nothing else is charged in that case). If you set a maximum charge per run, the Actor stops when it is reached and reports PARTIAL_MAX_CHARGE in the OUTPUT record, so you are never silently billed beyond your cap and never told a partial result is complete.

Input

FieldTitleRequiredDescription
baselineBaseline recordsnoThe known-good sample (JSON array of objects).
baseline_urlBaseline URLnoPublic URL of a JSON/JSONL file. Use instead of Baseline records.
currentCurrent recordsnoThe new run's sample (JSON array of objects).
current_urlCurrent URLnoPublic URL of a JSON/JSONL file. Use instead of Current records.
null_rate_thresholdNull-rate change thresholdnoFlag a field when its null/empty rate rises by at least this much.
volume_drop_thresholdVolume drop thresholdnoFlag when row count falls by more than this fraction.

Example input:

{
"baseline": [
{
"price": 10
}
],
"current": [
{
"price": null
}
]
}

Output

Results go to the run's default dataset (download as JSON, CSV or Excel). Each item:

FieldTypeDescription
baseline_rowsintegerRows in baseline.
current_rowsintegerRows in current.
drift_detectedbooleanAny non-informational finding.
findingsarraySeverity-tagged drift findings.
baseline_profileobjectPer-field profile.
current_profileobjectPer-field profile.

Example item:

{
"drift_detected": true,
"findings": [
{
"severity": "high",
"type": "null_rate_spike",
"field": "price"
}
]
}

The key-value store holds OUTPUT (run summary: status, counts, warnings, limitations, version, source commit) and REPORT.md (readable summary). OUTPUT.status is SUCCEEDED, PARTIAL_MAX_CHARGE, PARTIAL_RESULT_LIMIT or FAILED (with a structured error code/message/field). Invalid or empty input fails the run immediately with an explanation and returns no results.

Use from code

curl -X POST "https://api.apify.com/v2/acts/colt2822~dataset-schema-drift-detector/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" -d '{"baseline": [{"price": 10}], "current": [{"price": null}]}'
from apify_client import ApifyClient
run = ApifyClient("$APIFY_TOKEN").actor("colt2822/dataset-schema-drift-detector").call(run_input={"baseline": [{"price": 10}], "current": [{"price": null}]})

This Actor can also be called by AI agents through the Apify MCP server (https://mcp.apify.com), which exposes Actors as tools.

Limitations

  • Compares two samples you provide (items or URLs); it does not read Apify datasets by ID.
  • Top-level fields only.
  • Thresholds are heuristics: tune them to your data.

Support

Questions or problems: https://elyraon.com.co/contact/ (ELYRAON). Source revision: factory-65d07d3. Actor version 1.0.