File Metadata Explorer

File Metadata Explorer API

Utilities

Free tool to extract metadata from files. View camera settings, location data, and file properties instantly.

Authentication

All API requests require a valid API key passed in the Authorization header as a Bearer token.

Rate Limit

20 requests per minute

Endpoints

1 endpoint available

Overview

Read the EXIF, IPTC, XMP and ICC metadata in a file, plus basic format details such as image size, and get it back as JSON. Send the file as multipart form data in the file field. The metadata object is the same tag-to-value map the web page shows.

Notes

  • Files up to 30 MB. Metadata can be read from JPEG, TIFF, PNG, HEIC/HEIF, AVIF, WebP and GIF files. Other file types return 415.
  • A supported file with no metadata returns tagCount: 0 and an empty metadata object.
  • Values are the human-readable descriptions (for example "f/1.6" or "right-top"). GPS coordinates are decimal degrees; the hemisphere is in GPSLatitudeRef and GPSLongitudeRef.
  • When a JPEG has an embedded preview, Thumbnail holds its tags and a base64 copy of the preview image.
  • Metadata can include sensitive details such as GPS location and camera serial numbers.

Endpoints

POST
https://opentools.ca/api/v1/tools/file-metadata-explorer
Read the metadata in a file

Request Body

Content-Type: multipart/form-data

ParameterTypeRequiredDescription
file
file
Required
The file to read, up to 30 MB.

Response Example

{
  "success": true,
  "fileName": "IMG_0001.jpg",
  "fileSize": 2483117,
  "mimeType": "image/jpeg",
  "tagCount": 6,
  "metadata": {
    "Image Width": "4032px",
    "Image Height": "3024px",
    "Make": "Apple",
    "Model": "iPhone 13",
    "DateTimeOriginal": "2024:06:01 14:22:05",
    "GPSLatitude": 45.420094444444445
  }
}

Error Codes

400
Bad Request - No file in the file field
401
Unauthorized - Invalid or missing API key
403
Forbidden - API key is inactive or expired, or the request IP is not allowed
413
Payload Too Large - File over 30 MB
415
Unsupported Media Type - No metadata could be read from this file type, or the file is damaged
429
Too Many Requests - Rate limit exceeded
500
Internal Server Error

Code Examples

curl -X POST https://opentools.ca/api/v1/tools/file-metadata-explorer \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@IMG_0001.jpg"

Ready to get started?

Create an API key to start using the File Metadata Explorer API.

Rather use it in your browser? Open the File Metadata Explorer