← Back to directory

Call before pinning or installing a specific package version in npm, PyPI or cra...

https://preflight402.com/v1/deps/version-check

Overview

Call before pinning or installing a specific package version in npm, PyPI or crates.io. Returns whether that exact version exists in the official registry, its publication timestamp, whether it is deprecated or yanked, its published artifact hashes, and whether an expected SRI/hex digest matches. Compares registry metadata only and never returns a safety verdict.

Protocol x402 (POST)
Price $0.05
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider Preflight
Source bazaar
Indexed 2026-09-28 11:19:47

Health

Status healthy
Latency (p50) 635ms
Uptime (30d) 100.0%
Reliability Score 90/100
Last Checked 2026-10-29 00:10:01
Last Healthy 2026-10-29 00:10:01
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "body": { "ecosystem": "npm", "name": "left-pad", "version": "1.3.0" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "artifacts": [ { "filename": "left-pad-1.3.0.tgz", "sha1_hex": "55a127c92328641b522d9fbc94ffeb0d8a4783fa", "sha256_hex": null, "sha512_sri": "sha512-Y+/G5bu3F3z8GheVf/2wQ6QJ5u8n4vK3EwM3r+c8w==", "yanked": null } ], "checked_at": "2026-09-28T12:00:00Z", "ecosystem": "npm", "exists": true, "integrity_match": null, "name": "left-pad", "official_url": "https://www.npmjs.com/package/left-pad/v/1.3.0", "publication_time": "2018-04-10T12:00:00.000Z", "registry_status": "deprecated", "status_message": "use String.prototype.padStart()", "version": "1.3.0" }, "type": "json" }