A

Artifact Inspector · File

by Artifact Inspector

POSTBaseArbitrumPolygon

$0.005

per call · USD Coin on Base

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.

Endpoint

POST https://artifact-inspector.use.x402atlas.com/file

2

Calls / 30d

1

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://artifact-inspector.use.x402atlas.com/file", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "content_base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=",
    "filename": "pixel.png"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://artifact-inspector.use.x402atlas.com/file" \
  -H "Content-Type: application/json" \
  -d '{"content_base64":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII=","filename":"pixel.png"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "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."
  ]
}

Payment details

Pay to0x8c128f1ee62bb5e47867cfbae2ad89be325df1b2
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Polygon
Schemesexact

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from Artifact Inspector & similar services