# agentshield.live MIME Type Lookup

> agentshield.live MIME Type Lookup is a paid API for AI agents from agentshield.live, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-20).

Returns the Apache mime.types media type string for a given file extension

## Facts

- Endpoint: GET https://agentshield.live/mime?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshield-live-mime-type-lookup-3cb5c9b5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v6Bnh2SJ1Nr8S7wHZaCOx

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 agentshield-live-mime-type-lookup-3cb5c9b5
```

Example prompt: What is the Apache MIME type for the .pdf extension?

## When to prefer this

Use this endpoint when you have a bare file extension (e.g. 'pdf', 'html', 'mp4') and need its authoritative Apache mime.types media type string — particularly when you need a deterministic, standards-based lookup rather than content sniffing or heuristic guessing. Prefer this over general-purpose tools when you need the specific Apache mime.types mapping for HTTP Content-Type headers, file metadata, or format validation pipelines.

## Known failure modes

- Unknown or unregistered extension returns 404
- Extension with a leading dot must be passed correctly (e.g. '.pdf' or 'pdf' — check schema for accepted format)
- Proprietary or very new extensions may not be present in the Apache mime.types list
- Passing a full filename instead of just the extension will not work

## How this service works

Call when an agent has a file extension and needs the Apache mime.types media type. Unknown extensions return 404. Not a filename lookup and not a content sniff.

## Output

Returns the canonical Apache mime.types media type string (e.g. 'application/pdf', 'text/html') for the given file extension. Returns a 404 response if the extension is not recognized in the Apache mime.types database.

## 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",
     "required": [
      "ext"
     ],
     "properties": {
      "ext": {
       "type": "string",
       "description": "File extension, such as html or .pdf."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "known": true,
  "extension": "html",
  "media_type": "text/html"
 }
}
```

## More

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