MIME Type Lookup API

GET

Resolve MIME types and file extensions for any upload.

MIME Type Lookup matches file extensions to MIME types, categories, and default character encodings, or returns matching extensions for any media type. Paid plans add gzip compressibility flags.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/mimetypelookup?extension=pdf
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "extension": "pdf",
    "mime_type": "application/pdf",
    "category": "document",
    "description": "PDF document"
  }
}

About the MIME Type Lookup API

MIME Type Lookup works by searching a comprehensive database of MIME types and file extensions. Returns category, description, and all associated extensions for MIME types, or MIME type information for file extensions.

What people use it for

File Upload Handling
Validate and identify file types during file upload processing in web applications
Content-Type Headers
Set correct Content-Type headers for HTTP responses based on file extensions
File Processing
Determine how to process files based on their MIME type in data pipelines
API Development
Configure proper content type handling in REST APIs and file serving endpoints

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use MIME Type Lookup

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the MIME Type Lookup API.

Read the docs →
Can I search by both file extension and MIME type?
Yes, you can query in either direction. You can pass a file extension to retrieve its standard MIME type, category, and encoding, or supply a MIME type to retrieve all associated file extensions.
Which file categories are supported?
The database covers common file types across documents, images, video, audio, text, and archives. Each lookup returns the assigned category along with standard character encodings when available.
Is compressibility data included on the Free plan?
No, whether a content type can be gzip compressed is a premium field. Any paid subscription starting with the Starter plan unlocks the compressible flag alongside a higher monthly lookup allowance.
Do file extensions require a leading dot in the request?
No, file extensions must be submitted without the leading dot, such as png or pdf instead of .png or .pdf. Results also return the extension strings without leading dots.
Which plan fits 50,000 MIME type lookups a month?
The Starter plan handles this volume with room to spare. Because each lookup uses 2 credits, 50,000 calls consume 100,000 credits, fitting inside Starter's 200,000-credit allocation. On Starter, lookups average about $0.30 per 1,000 calls, while the Free tier includes 100 lookups each month.
Can I use the MIME type data in a commercial product?
Yes, as long as you are on a paid plan. You can use the returned mappings directly inside your production upload pipelines, headers, or software, but you may not resell or redistribute the raw dataset as-is.

Ready to build with MIME Type Lookup? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs