# Delx Commerce — Content Type Guesser

> Delx Commerce — Content Type Guesser is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Infers the MIME content type and file extension from a filename, file path, or URL string

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/content-type-guess?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-content-type-guesser-2dc3e264
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Yer2VZgIAIgd-RNGrL7Tu

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 delx-commerce-content-type-guesser-2dc3e264 -d '<json body>'
```

Example prompt: What MIME content type should I use for a file called 'report.PDF'? Just guess from the filename.

## When to prefer this

Use this endpoint when you need a quick, zero-dependency MIME type lookup from just a filename string — no file content required. Ideal for agents that need to set Content-Type headers for uploads, route files by type, or validate attachments before processing, without parsing file bytes. At $0.003 USDC per call with no signup, it suits lightweight utility use in automated pipelines.

## Known failure modes

- Unrecognized or exotic file extension returns known:false with null or generic content_type
- Missing or empty filename input may return an error or unknown result
- Filenames with no extension may not be resolvable
- Ambiguous extensions shared by multiple MIME types may return a best-guess or primary type only

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object indicating whether the file type is recognized (known: true/false), the guessed MIME content type (e.g. 'application/pdf'), the normalized file extension (e.g. 'pdf'), the original filename as submitted, and a schema identifier string for the response format.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "filename": {
   "type": "string",
   "description": "Filename, path, or URL used only for extension/MIME guess."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "known": true,
  "schema": "delx/util-content-type-guess/v1",
  "filename": "report.PDF",
  "extension": "pdf",
  "content_type": "application/pdf"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-content-type-guesser-2dc3e264/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
