Image Metadata Extractor
Extract image metadata including EXIF data, dimensions, and colour mode
/v1/image/extract/metadata
curl -X POST "https://image.toolkitapi.io/v1/image/extract/metadata" \
-H "Content-Type: application/json" \
-d '{"url": "https://toolkitapi.io/static/samples/sample-image.png"}'
import httpx
resp = httpx.post(
"https://image.toolkitapi.io/v1/image/extract/metadata",
json={"url": "https://toolkitapi.io/static/samples/sample-image.png"},
)
print(resp.json())
const resp = await fetch("https://image.toolkitapi.io/v1/image/extract/metadata", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({"url": "https://toolkitapi.io/static/samples/sample-image.png"}),
});
const data = await resp.json();
console.log(data);
# See curl example
{
"format": "jpeg",
"mode": "RGB",
"size": {"width": 4032, "height": 3024},
"megapixels": 12.193,
"file_size_bytes": 3145728,
"has_alpha": false,
"is_animated": false,
"frames": 1,
"exif": {
"Make": "Apple",
"Model": "iPhone 14 Pro",
"DateTime": "2024:03:15 14:22:01",
"ExposureTime": "1/120",
"FNumber": "1.78",
"ISOSpeedRatings": "64"
}
}
Try It Live
Description
How to Use
1. Send a POST request with either a `url` pointing to the image or a base64-encoded `image` field.
2. Alternatively, use the GET variant with just a `url` query parameter for quick browser or Zapier integration.
3. Check the `exif` object in the response for camera metadata — it will be an empty object if no EXIF data exists.
4. Use the `size`, `mode`, and `format` fields to determine the image's technical properties before further processing.
About This Tool
Use the Image Metadata Extractor to pull detailed technical information from any image. It returns EXIF data (camera make, model, GPS, exposure settings), image dimensions, colour mode, file size, and animation info.
This is essential for photography workflows, content management systems, and any application that needs to understand image properties before processing. Provide an image via base64 or URL — the GET variant accepts just a URL for browser-friendly usage.
The endpoint handles all major formats including JPEG, PNG, WebP, GIF, BMP, and TIFF, with robust EXIF parsing that gracefully handles missing or malformed metadata.
Why Use This Tool
- Photography cataloguing — Extract camera model, exposure, and GPS data from uploaded photos
- CMS validation — Verify image dimensions and format meet requirements before publishing
- Privacy auditing — Check whether images contain sensitive EXIF data (GPS coordinates, device info)
- Pre-processing analysis — Determine image properties before choosing resize or compression settings
- Animated image detection — Identify animated GIFs or APNGs via the `is_animated` and `frames` fields
Frequently Asked Questions
What EXIF fields are returned?
What if the image has no EXIF data?
Is there a file size limit?
Start using Image Metadata Extractor now
Get your free API key and make your first request in under a minute.