ApplicationText-based
application/hal+json
HAL (JSON)
Reference for application/hal+json, the MIME type for Hypertext Application Language JSON used in hypermedia 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/hal+json; charset=utf-8Quick Facts
| MIME Type | application/hal+json |
| Category | Application |
| Type | Text-based (human-readable) |
Common Usage
HAL (Hypertext Application Language) is a simple format for hypermedia APIs that embeds links and embedded resources in JSON responses. It enables API discoverability by including _links and _embedded properties, following HATEOAS principles for RESTful API design.
Code Examples
HTML
<!-- Set MIME type in meta or fetch headers -->
<meta http-equiv="Content-Type" content="application/hal+json">Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('application/hal+json');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'application/hal+json' });nginx
# nginx.conf — add to types block or use default
types {
application/hal+json json;
}
# Or set for a specific location
location /api/ {
default_type application/hal+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.