Get image metadata from remote URL
Get file metadata from remote URL API
GET
https://api.imagekit.io/v1/metadata
Get image EXIF, pHash, and other metadata from ImageKit.io powered remote URL using this API.
Query Parameters
Name | Type | Description |
---|---|---|
url | string | The encoded URL of the image. Note: This URL should be accessible using your ImageKit.io account. |
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.
Metadata through ImageKit transformation URL
If the url
passed to this API has no transformation parameter, then the metadata of the original uploaded image will be fetched. We internally add orig-true
parameter to fetch the original image.
Instead, if the passed url
has any transformation parameters, then the metadata of the transformed image will be fetched.
See the examples below.
Examples
Here are some example requests to understand the API usage.
Get metadata of an original image (no transformation applied)
Get metadata of a transformed image
Calculate pHash distance between two images
See examples here.
Last updated