# Delx Commerce — MIME Type Lookup from File Extension

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

Returns the MIME type corresponding to a given file extension, with a flag indicating whether the extension is recognized.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/mime-from-ext?utm_source=zero.xyz
- Price: $0.001/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-mime-type-lookup-from-file-extension-b168ec44
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FTKGSbXIOo0O4b0w-YuEl

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-mime-type-lookup-from-file-extension-b168ec44 -d '<json body>'
```

Example prompt: What's the MIME type for a .webp file? I need the correct content-type value to set in an HTTP response.

## When to prefer this

Choose this endpoint when you need a fast, low-cost, deterministic MIME type resolution from a file extension without integrating a library or maintaining a lookup table yourself. Ideal for agents operating in serverless or constrained environments where importing MIME databases is impractical. At $0.001 USDC per call with no signup required, it suits lightweight on-demand lookups within automated pipelines.

## Known failure modes

- Unknown or obscure extension returns 'known: false' with a null or generic MIME type
- Missing 'ext' field in request body results in a validation error
- Extension submitted with leading dot (e.g. '.png' instead of 'png') may not match correctly
- Payment failure via x402 protocol results in 402 response before lookup is executed

## 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 containing the original extension, the resolved MIME type string (e.g. 'image/png'), and a boolean 'known' flag indicating whether the extension is in the recognized lookup table.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "ext": {
   "type": "string",
   "description": "Input field: ext."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ext": "png",
  "mime": "image/png",
  "known": true,
  "schema": "delx/util-mime-from-ext/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-mime-type-lookup-from-file-extension-b168ec44/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)
