# MIME type lookup

Find the MIME type for a file extension, or the extensions for a MIME type, and whether it compresses well.

- Endpoint: `POST https://setget.net/v1/tools/mime-lookup` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `mime-lookup`
- Page: https://setget.net/tools/mime-lookup

## Inputs

- `query` (required, string): A file extension, a file name or a MIME type.

## Example 1

```json
{"input":{"query":"photo.webp"}}
```

Result:

```json
{"query":"photo.webp","direction":"extension","extension":"webp","mime":"image/webp","extensions":["webp"],"kind":"binary","compressible":false}
```

## Example 2: From type to extensions

```json
{"input":{"query":"application/json"}}
```

Result:

```json
{"query":"application/json","direction":"mime","extension":"json","mime":"application/json","extensions":["json","map"],"kind":"text","compressible":true}
```

**What does "compressible" mean?** Whether gzip or Brotli usually makes the file noticeably smaller. Text formats do; images, video, archives and WOFF fonts are already compressed.

**Is the file inspected?** No. The answer comes only from the name or type you enter.
