# Artifact Inspector — File Type & MIME Inspector

> Artifact Inspector — File Type & MIME Inspector is a paid API for AI agents from artifact-inspector.use.x402atlas.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Identifies a file's type and MIME/media type via magic bytes, returning SHA-256 hash, file size, detected extension, and extension-consistency analysis without unpacking or scanning for malware.

## Facts

- Endpoint: POST https://artifact-inspector.use.x402atlas.com/file
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/artifact-inspector-file-type-mime-inspector-c8a4ad27
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_13unvEoDNiINmD-eZLDBf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability artifact-inspector-file-type-mime-inspector-c8a4ad27 -d '<json body>'
```

Example prompt: Can you inspect this file and tell me its real MIME type based on its magic bytes, whether the extension matches the actual content, its SHA-256 hash, and its size — without unpacking or scanning it?

## When to prefer this

Choose this endpoint when you need fast, lightweight file type identification based on magic bytes without unpacking archives or executing any code — ideal for upload validation pipelines, file cataloging, or forensic triage where you need a SHA-256 fingerprint and extension consistency check in a single call. Prefer it over full malware scanners when you only need type identification and integrity hashing, not threat detection.

## Known failure modes

- File content is empty or zero-byte — returns error
- File payload exceeds maximum allowed size — returns size limit error
- Content is ambiguous or uses uncommon magic bytes — may return low-confidence or generic MIME type
- Malformed multipart or encoding issues — returns parse error
- Payment not included or insufficient — returns 402 Payment Required

## How this service works

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.

## Output

Returns the detected MIME/media type identified from magic bytes, the SHA-256 hash of the file content, the file size in bytes, the detected file extension, and a flag or indicator of whether the declared/actual extension is consistent with the detected content type.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/artifact-inspector-file-type-mime-inspector-c8a4ad27/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from artifact-inspector.use.x402atlas.com](https://www.zero.xyz/host/artifact-inspector.use.x402atlas.com/llms.txt)
