# CoCo MIME Type Lookup

> CoCo MIME Type Lookup is a paid API for AI agents from cocoeatsai.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-19).

Returns the MIME type, encoding, and file extension for a given value (e.g. filename or extension string)

## Facts

- Endpoint: GET https://cocoeatsai.com/area4/agent/tools/mime?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coco-mime-type-lookup-6f33e32e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CIbtdYcE-k4BtZN9vGVNT

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 coco-mime-type-lookup-6f33e32e
```

Example prompt: What's the MIME type for a .pdf file? Look it up and give me the full content-type string including encoding if any.

## When to prefer this

Use this endpoint when you need a quick, programmatic MIME type resolution for a file extension or filename in an agent workflow, especially when you want encoding and extension metadata alongside the content-type string. It is best suited for single lookups at low cost ($0.001 USDC) with a simple GET interface.

## Known failure modes

- Unknown or unrecognized extension/value returns mime: null
- Missing required 'value' query parameter may return an error or null result
- Ambiguous input (e.g. bare filename without extension) may return null
- Payment failure (402) if x402 micropayment not provided

## How this service works

Zach Riehn's lab: an about-me and portfolio, a news desk, The Atelier for AI experiments, Launch Lab for XRP research, and Fracture for games.

## Output

A JSON object containing the resolved MIME type string (e.g. 'application/pdf'), the encoding (e.g. null or 'gzip'), and the canonical file extension (e.g. 'pdf'). The mime field may be null if the input is unrecognized.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ]
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "value": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "mime"
     ],
     "properties": {
      "mime": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mime": "application/pdf",
  "encoding": null,
  "extension": "pdf"
 },
 "exampleNote": "Computed offline with demonstration inputs; time/random values are illustrative."
}
```

## More

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