API Endpoint Health & JSON Schema Drift Monitor avatar

API Endpoint Health & JSON Schema Drift Monitor

Pricing

from $2.00 / 1,000 api endpoint health results

Go to Apify Store
API Endpoint Health & JSON Schema Drift Monitor

API Endpoint Health & JSON Schema Drift Monitor

Monitor public JSON APIs for downtime, latency, missing fields, and response-shape changes. Scheduled checks produce structured alerts for developers, data pipelines, and AI agents.

Pricing

from $2.00 / 1,000 api endpoint health results

Rating

0.0

(0)

Developer

Chris Johnson

Chris Johnson

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

a month ago

Last modified

Categories

Features

Limited permissions

Share

Check public HTTP/JSON APIs for downtime, latency regressions, missing required fields, and unexpected response-shape changes. Designed for developers, automation teams, data pipeline operators, and AI agents that rely on third-party APIs. This Actor runs one-off or on an Apify schedule and returns structured machine-readable health events.

What this API monitor checks

Each run checks up to 20 public HTTP/HTTPS endpoints, measuring HTTP status and response time, validating JSON where requested, verifying configured JSON paths such as data.items[0].id, and fingerprinting a bounded JSON structure. Results include the HTTP status, latency, required-path failures, JSON validity, schema fingerprint, field-level schema changes, alert state, change type, and a timestamp. An endpoint is unhealthy if its expected status, JSON requirement, required fields, or latency threshold is not met.

The monitor stores a named baseline in its own Apify key-value store. A first check emits INITIAL. Later checks distinguish recovery, degradation, status changes, schema changes, contract changes, and unchanged checks. Schema changes include added paths, removed paths, and type changes with old and new types. Paths use a $-rooted pointer notation; / and ~ inside field names are escaped.

Schema comparison is bounded: it samples up to 20 entries per array, 60 keys per object, six nesting levels, and 500 paths per endpoint. It stores types and paths, never response values. schemaDiffAvailable=false means a comparable JSON baseline was not available yet (including the first run after this upgrade or a non-JSON response). schemaDiffTruncated=true means the configured bounds omitted part of the response shape.

Alert noise control

consecutiveRunsThreshold defaults to 2. The Actor marks alertActive=true only after that many consecutive unhealthy checks, and keeps the alert active until the same number of consecutive healthy checks. Use 1 for immediate start and clear behavior. Output includes the consecutive failure/recovery streaks, alertState (CLEAR, PENDING, ACTIVE, or RECOVERING), and alertTransition (STARTED, CLEARED, or NONE). Downstream notifications should trigger on alertTransition or alertActive, not on every unhealthy sample.

Who uses it, and why checks recur

  • AI-agent operators: verify public tools and JSON data sources before workflows depend on them.
  • Developers: detect API status and shallow response-schema drift after vendor releases.
  • Data engineering teams: monitor the external JSON paths consumed by ETL jobs.
  • Agencies and SaaS teams: schedule recurring checks across customer integrations.
  • Compliance/operations teams: keep an auditable dataset of periodic API checks.

These checks are valuable because APIs can change between deployments without warning. Schedule hourly or daily based on the impact of a failure. Apify schedules run the Actor; it is not a continuous daemon between scheduled runs.

Example input

{
"endpoints": [
{
"name": "Apify Store API",
"url": "https://api.apify.com/v2/store?limit=1",
"expectedStatus": 200,
"requiredJsonPaths": ["data.items"]
}
],
"monitorKey": "my-public-api-watchlist",
"checkJson": true,
"emitOnlyChanges": false,
"consecutiveRunsThreshold": 2,
"latencyWarnMs": 3000,
"timeoutMs": 8000
}

emitOnlyChanges=false (default) writes a dataset row for every endpoint check, including healthy unchanged checks, so a monitoring dashboard can show the latest status. Set it to true to emit only initial or changed events while still updating the baseline. Only emitted dataset rows trigger the per-result charge; Apify may also apply a minimal run-start charge. The existing price and emitOnlyChanges default are unchanged.

Output and integrations

Use the default dataset for JSON/CSV export or consume results through the Apify API, webhooks, and supported automation integrations. The Actor also writes a SUMMARY record with counts of healthy, unhealthy, actively alerting, changed, and emitted checks. Output rows include addedPaths, removedPaths, and typeChangedPaths when a baseline is available, plus alertActive, alertState, alertTransition, failureStreak, and recoveryStreak.

Safety, limits, and interpretation

Only public, unauthenticated HTTP/HTTPS endpoints are supported. Local, private, and reserved network addresses are blocked, as are credentials embedded in URLs and common API-key query parameters. Requests use GET and follow at most two redirects; each destination is checked. Responses are capped at 500 KB and time out after at most 15 seconds. The Actor does not send credentials or write to monitored endpoints.

A schema fingerprint compares a bounded sample of the response shape, not a complete OpenAPI or JSON Schema contract. Array sampling reduces changes caused by fields appearing only in later records, but dynamic keys or response shapes can still produce expected changes. A healthy result does not prove the endpoint is secure or correct. DNS rebinding defenses are best-effort; do not treat this as a network security boundary. This is operational monitoring, not penetration testing or an SLA guarantee.

Pricing and cost control

The intended listing price is $0.002 per emitted endpoint-check dataset item ($2 per 1,000). A run with 10 endpoints emits up to 10 billable rows when emitOnlyChanges=false. Use emitOnlyChanges=true to pay only for initial/changed results and a small endpoint list for initial testing. No paid upstream Actors, residential proxies, or API subscriptions are required by the code. Platform compute and customer run limits still apply.