# MIME Toolkit – File Type Lookup

> MIME Toolkit – File Type Lookup is a paid API for AI agents from mime.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns the MIME type for a given filename, file path, or file extension

## Facts

- Endpoint: POST https://mime.openverbs.com/v1/lookup
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mime-toolkit-file-type-lookup-e611b03a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EgX_UfAAJM4j9LsGJRODr

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 mime-toolkit-file-type-lookup-e611b03a -d '<json body>'
```

Example prompt: What's the correct MIME type for a file called 'report.pdf'? I need the exact content type string to set in my HTTP headers.

## When to prefer this

Use this endpoint when you need a reliable, programmatic MIME type lookup from a filename or extension without bundling a local MIME database. Particularly useful in serverless or lightweight agent environments where installing mime-type libraries is impractical, or when centralizing content-type resolution across a multi-service architecture.

## Known failure modes

- Unknown or unrecognized extension returns null or generic 'application/octet-stream'
- Empty or missing path field returns a validation error
- Path exceeding 4096 characters is rejected
- Ambiguous extensions with multiple possible types may return only the most common mapping

## How this service works

Resolve a filename, path or extension to its MIME type, charset and full Content-Type.

## Output

The MIME type string (e.g. 'application/pdf', 'application/json', 'video/mp4') corresponding to the provided filename, path, or extension, allowing correct Content-Type assignment in HTTP responses, uploads, or file processing pipelines.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "path"
     ],
     "properties": {
      "path": {
       "type": "string",
       "maxLength": 4096,
       "minLength": 1,
       "description": "A filename, path or extension, e.g. \"report.pdf\" or \".json\"."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mime-toolkit-file-type-lookup-e611b03a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mime.openverbs.com](https://www.zero.xyz/host/mime.openverbs.com/llms.txt)
