Get image metadata for uploaded media files
You can programmatically get image EXIF, pHash, and other metadata for uploaded files in the ImageKit.io media library using this API.
💡 You can also get the file metadata while uploading the file by passing metadata in responseFields
parameter.
Get file metadata for uploaded media files API
GET
https://api.imagekit.io/v1/files/:fileId/metadata
Get image EXIF, pHash, and other metadata for uploaded files in ImageKit.io media library using this API.
Path Parameters
Name | Type | Description |
---|---|---|
fileId | string | The unique fileId of the uploaded file. fileId is returned in list files API and upload API. |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | base64 encoding of Note the colon in the end. |
Response structure and status code (application/JSON)
In case of error, you will get an error code along with the error message. On success, you will receive a 200
status code with the image metadata in the JSON-encoded response body.
A metadata object example can be found here.
Examples
Here are some example requests to understand the API usage.
Get metadata of an uploaded file
Calculate pHash distance between two images
See examples here.
Last updated