File type and MIME/media type inspector — identify bounded content by magic bytes and retu
File type and MIME/media type inspector — identify bounded content by magic bytes and return SHA-256, size, and extension consistency without unpacking, malware scanning, or safety claims.
5000 (raw units)
price
2
calls / 30d
1
unique payers
2026-09-15
updated
Provider
artifact-inspector.use.x402atlas.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "5000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:42161",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"amount": "5000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"category": "utilities",
"info": {
"input": {
"body": {
"content_base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=",
"filename": "pixel.png"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"algorithm_version": "go-content-sniff-v1",
"operation": "file-inspect",
"result": {
"extension": ".png",
"extension_matches": true,
"extension_media_type": "image/png",
"filename_provided": true,
"media_type": "image/png",
"sha256": "431ced6916a2a21a156e38701afe55bbd7f88969fbbfc56d7fe099d47f265460",
"size": 68,
"warnings": []
},
"warnings": [
"Media-type sniffing and extension consistency are not malware, macro, archive-content, execution-safety, or general file-safety results."
]
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"additionalProperties": false,
"properties": {
"content_base64": {
"description": "Canonical standard base64 for zero to 1 MiB caller-provided bytes; never a URL",
"maxLength": 1398104,
"minLength": 0,
"type": "string"
},
"filename": {
"description": "Optional synthetic base filename used only for extension comparison; paths are rejected",
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"content_base64"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"additionalProperties": false,
"properties": {
"_atlas": {
"additionalProperties": false,
"description": "Atlas documentation and related-route metadata added after deployment",
"properties": {
"docs": {
"description": "Documentation URL for this bridge",
"format": "uri",
"maxLength": 512,
"type": "string"
},
"related": {
"description": "Bounded related Atlas routes",
"items": {
"additionalProperties": false,
"description": "One related Atlas route",
"properties": {
"bridge": {
"description": "Related bridge name",
"maxLength": 64,
"type": "string"
},
"docs": {
"description": "Related bridge documentation URL",
"format": "uri",
"maxLength": 512,
"type": "string"
},
"summary": {
"description": "Short capability summary",
"maxLength": 256,
"type": "string"
},
"url": {
"description": "Related route URL",
"format": "uri",
"maxLength": 512,
"type": "string"
}
},
"required": [
"bridge",
"url",
"docs",
"summary"
],
"type": "object"
},
"maxItems": 3,
"type": "array"
}
},
"required": [
"docs"
],
"type": "object"
},
"algorithm_version": {
"const": "go-content-sniff-v1",
"description": "Pinned bounded Go content-sniffing contract",
"type": "string"
},
"operation": {
"const": "file-inspect",
"description": "Stable operation name",
"type": "string"
},
"result": {
"additionalProperties": false,
"description": "Bounded content-sniffing and integrity result",
"properties": {
"extension": {
"description": "Lowercase filename extension or empty",
"type": "string"
},
"extension_matches": {
"description": "Comparison result or null when no registered extension was available",
"type": [
"boolean",
"null"
]
},
"extension_media_type": {
"description": "Registered media type for the extension or empty",
"type": "string"
},
"filename_provided": {
"description": "Whether a synthetic filename was supplied",
"type": "boolean"
},
"media_type": {
"description": "Bounded magic-sniffed media type; application/octet-stream means unknown",
"type": "string"
},
"sha256": {
"description": "SHA-256 of the decoded bytes",
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"size": {
"description": "Decoded byte length",
"maximum": 1048576,
"minimum": 0,
"type": "integer"
},
"warnings": {
"description": "Extension consistency warnings",
"items": {
"description": "Human-readable warning",
"type": "string"
},
"maxItems": 4,
"type": "array"
}
},
"required": [
"size",
"sha256",
"media_type",
"filename_provided",
"extension",
"extension_media_type",
"extension_matches",
"warnings"
],
"type": "object"
},
"warnings": {
"description": "Route-level safety limitations",
"items": {
"description": "Human-readable warning",
"type": "string"
},
"maxItems": 4,
"type": "array"
}
},
"required": [
"operation",
"algorithm_version",
"result",
"warnings"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
},
"tags": [
"file-type",
"media-type",
"mime-type",
"content-sniff",
"sha256"
]
}
}Use it
curl
curl "https://artifact-inspector.use.x402atlas.com/file" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://artifact-inspector.use.x402atlas.com/file");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://artifact-inspector.use.x402atlas.com/file")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/3452.json, and this resource appears in /discovery/resources and /discovery/search.