# MIME Type Lookup

> MIME Type Lookup is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Bidirectional MIME type lookup: convert a file extension or filename to its content type, or a content type to its associated extensions, across 80 common formats.

## Facts

- Endpoint: GET https://intel.rallylive.ca/data/mime
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mime-type-lookup-ee77fe41
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ANgD6BtjbiuBq1HezxXK3

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-type-lookup-ee77fe41
```

Example prompt: What's the correct MIME type for a .webp image file, and what category does it fall under?

## When to prefer this

Use this endpoint when you need fast, authoritative bidirectional MIME type resolution for common web, media, font, document, or archive formats, and you want to avoid hardcoding lookup tables in your agent. Especially useful when building HTTP response headers, validating file uploads, or categorizing file types programmatically. Not suitable for highly specialized, vendor-specific, or obscure MIME types outside the 80 covered formats.

## Known failure modes

- Unknown or unsupported extension/MIME type returns no match or error — only ~80 common formats are covered
- Malformed MIME type string may return no result
- Rare or vendor-specific MIME types not in the 80-format library will fail to resolve
- Missing or empty input parameter causes a validation error

## How this service works

MIME type lookup both ways: extension or filename to content type, or content type to extensions, for 80 common web, image, audio, video, font, document and archive formats, with a category. $0.01 per lookup.

## Output

Returns the MIME content type string (e.g. 'image/webp'), associated file extension(s), and a format category (e.g. 'image', 'audio', 'video', 'document', 'archive') — going either from extension/filename to content type, or from content type to extensions.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mime-type-lookup-ee77fe41/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
