ApplicationText-based
application/vnd.api+json
JSON:API
Reference for application/vnd.api+json, the MIME type for JSON:API specification for building consistent REST APIs.
MIME Type Detector
Drop a file to detect its MIME type — no upload, runs in your browser
📄
Drop any file here or click to choose
HTTP Content-Type Header
HTTP Header
Content-Type: application/vnd.api+json; charset=utf-8Quick Facts
| MIME Type | application/vnd.api+json |
| Category | Application |
| Type | Text-based (human-readable) |
Common Usage
JSON:API is a specification for building APIs in JSON that defines conventions for resource objects, relationships, links, pagination, filtering, and sorting. It reduces bikeshedding in API design and has client libraries for JavaScript, Ruby, Python, PHP, and other languages.
Code Examples
HTML
<!-- Set MIME type in meta or fetch headers -->
<meta http-equiv="Content-Type" content="application/vnd.api+json">Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('application/vnd.api+json');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'application/vnd.api+json' });nginx
# nginx.conf — add to types block or use default
types {
application/vnd.api+json json;
}
# Or set for a specific location
location /api/ {
default_type application/vnd.api+json;
}Related MIME Types
More Application MIME Types
Other application types in the Application family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.