Get custom metadata field
get
https://api.imagekit.io
/v1/customMetadataFields
Get existing custom metadata fields

Examples

cURL
Node.js
Python
PHP
Java
Ruby
Go
curl -X GET "https://api.imagekit.io/v1/customMetadataFields" \
-H 'Content-Type: application/json' \
-u your_private_key:
var ImageKit = require("imagekit");
var imagekit = new ImageKit({
publicKey : "your_public_api_key",
privateKey : "your_private_api_key",
urlEndpoint : "https://ik.imagekit.io/your_imagekit_id/"
});
imagekit.getCustomMetadataFields({
includeDeleted: false
}, function(error, result) {
if(error) console.log(error);
else console.log(result);
});
from imagekitio import ImageKit
imagekit = ImageKit(
public_key='your_public_api_key',
private_key='your_private_api_key',
url_endpoint = 'https://ik.imagekit.io/your_imagekit_id/'
)
get_custom_metadata_fields = imagekit.get_custom_metadata_fields() # by default include_deleted boolean will be considered as False for set it to True, can pass it with imagekit.get_custom_metadata_fields(include_deleted=True)
print("Get custom metadata field-", get_custom_metadata_fields, end="\n\n")
# Raw Response
print(get_custom_metadata_fields.response_metadata.raw)
# print the first customMetadataField's id
print(get_custom_metadata_fields.list[0].id)
# print the first customMetadataField schema's type
print(get_custom_metadata_fields.list[0].schema.type)
use ImageKit\ImageKit;
$public_key = "your_public_api_key";
$your_private_key = "your_private_api_key";
$url_end_point = "https://ik.imagekit.io/your_imagekit_id";
$imageKit = new ImageKit(
$public_key,
$your_private_key,
$url_end_point
);
$includeDeleted = false;
$getCustomMetadataField = $imageKit->getCustomMetadataFields($includeDeleted);
echo("Get Custom Metadata Field : " . json_encode($getCustomMetadataField));
boolean includeDeleted = false;
ResultCustomMetaDataFieldList resultCustomMetaDataFieldList = ImageKit.getInstance().getCustomMetaDataFields(includeDeleted);
imagekitio = ImageKitIo::Client.new("your_private_key", "your_public_key", "your_url_endpoint")
imagekitio.get_custom_metadata_fields(include_deleted: false)
resp, err := ik.Metadata.CustomFields(ctx, false)
Copy link
On this page
get
Get existing custom metadata fields
Examples