File type and MIME/media type inspector — identify bounded content by magic bytes and r…
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.
by artifact-inspector.use.x402atlas.com · discovered, not yet claimed by its owner · updated 2026-10-06
Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.
What it does
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.
Tags: file-type · media-type · mime-type · content-sniff · sha256 · bazaar
Call contract
- Method
- POST
- Input
- json
- Output
- json
- Last paid call
- 2026-10-06
{
"content_base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=",
"filename": "pixel.png"
}{
"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."
]
}Use with an agent
- Discover. Agents find this listing with
GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP toolsearch_resources, or/discovery/resources. - Inspect. Fetch
/resources/28642.jsonfor the price and payment options. - Pay. Call
GET https://artifact-inspector.use.x402atlas.com/file. The provider answers402with its payment requirements. An x402 client signs one of the options below and retries withPAYMENT-SIGNATURE. - Execute. The provider returns
200with the data. Agent Bazaar is not in the request path and never sees your payment.
For humans
You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, Polygon, Arbitrum One, Solana, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.
Pricing & payment
- Price
- $0.005 / request
- Protocol
- x402 v2
- Auth
- No account or API key. Pay per request.
- Networks
- Base, Polygon, Arbitrum One, Solana
- Demand
- 3 calls · 2 unique payers in 30d (public x402 Bazaar data)
x402 payment requirements
| Scheme | Network | Asset | Amount | Pay to | Timeout |
|---|---|---|---|---|---|
| exact | Base eip155:8453 | USDC | $0.005 | 0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2 | 300s |
| exact | Polygon eip155:137 | USDC | $0.005 | 0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2 | 300s |
| exact | Arbitrum One eip155:42161 | USDC | $0.005 | 0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2 | 300s |
| exact | Solana solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp | USDC | $0.005 | ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ | 300s |
accepts[] (raw JSON)
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:42161",
"payTo": "0x8C128f1Ee62Bb5e47867CfbAe2ad89be325Df1b2",
"asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "5000",
"amountUsd": 0.005,
"maxTimeoutSeconds": 300
}
]Schemas
Output schema (JSON Schema)
{
"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"
}Example shape — generated from the schema, not a captured live response
{
"example": {
"_atlas": {
"docs": "https://example.com",
"related": [
{
"bridge": "string",
"docs": "https://example.com",
"summary": "string",
"url": "https://example.com"
}
]
},
"algorithm_version": "string",
"operation": "string",
"result": {
"extension": "string",
"extension_matches": true,
"extension_media_type": "string",
"filename_provided": true,
"media_type": "string",
"sha256": "string",
"size": 0,
"warnings": [
"string"
]
},
"warnings": [
"string"
]
},
"type": "string"
}Examples
curl -X POST 'https://artifact-inspector.use.x402atlas.com/file' -H 'Content-Type: application/json' --data '{"content_base64":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=","filename":"pixel.png"}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATUREconst res = await fetch("https://artifact-inspector.use.x402atlas.com/file", {
"method": "POST",
"headers": {
"content-type": "application/json"
},
"body": "{\"content_base64\":\"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=\",\"filename\":\"pixel.png\"}"
});
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}import httpx
import json
res = httpx.request("POST", "https://artifact-inspector.use.x402atlas.com/file", json=json.loads("{\"content_base64\":\"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=\",\"filename\":\"pixel.png\"}"))
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerDetails
- Provider
- artifact-inspector.use.x402atlas.com
- Endpoint
- https://artifact-inspector.use.x402atlas.com/file
- Machine-readable
/resources/28642.json