View All APIs

Image Metadata Writer API

About

Easily write, resize, and enrich your images with standardized metadata using this powerful RESTful API. This API supports syncing metadata across XMP, IPTC, EXIF, and more.

API Documentation

Copied!
https://imagemetapro.com/tools/image_metadata_updater.php

Request Methods

Option 1: Request Using Image URL

Method: POST

Body Type: raw: json

Content-Type: application/json

Sample Payload:

Copied!
{
"image_url": "your-image-url",
"return": "url",
"sync_metadata": true,
"resize": true,
"dimensions": "1020X1025",
"convert_format": false,
"new_format": "webp",
"title": "test_xmp_title",
"description": "test_xmp_caption",
"creator": "test_xmp_author",
"copyright_notice": "test_xmp_copyright_notice - do not copy this image without author permission",
"copyright_status": "False",
"keywords": "test_xmp_keywords",
"create_date": "2025-02-23T15:30:00Z",
"category": "Sports",
"supplemental_category": "test_xmp_niche_category",
"caption_writer": "test_xmp_desc_writer",
"city": "test_xmp_city",
"region": "test_xmp_state",
"country": "test_xmp_country_code",
"credit": "test_xmp_credit - John Doe Photography",
"source": "test_xmp_source - test_user",
"headline": "test_xmp_headline - theme selection text",
"instructions": "test_idp_xmp_instructions",
"transmission_reference": "test_xmp_transmission_reference",
"job_reference": "test_xmp_job_name",
"rating": "5",
"label": "Red",
"creator_tool": "Adobe Photoshop 2024",
"usage_terms": "Allowed for educational purposes only",
"creator_contact_address": "John Doe, johndoe@example.com",
"creator_contact_email": "test_xmp_contact@johndoe.com",
"license": "https://creativecommons.org/licenses/by/4.0/",
"attribution_name": "Jane Doe",
"attribution_url": "https://janedoephotography.com",
"alt_text": "test_xmp_alt_text",
"licensor_name": "test_xmp_doe_agency",
"licensor_url": "https://doeagency.com",
"identifier": "test_xmp_image_12345",
"latitude": "29.7604",
"latitude_ref": "N",
"longitude": "95.3698",
"longitude_ref": "W",
"urgency": "5",
"file_comment": "Metadata updated by API"
}

Option 2: Request Using Local Image Upload

Method: POST

Body Type: form-data

Content-Type: multipart/form-data

Parameters:

Key Type Value
imagefilefileSelect image from your local storage
returntexturl
sync_metadatatexttrue
resizetexttrue
dimensionstext1020X1025
convert_formattextfalse
new_formattextwebp
titletexttest_xmp_title
descriptiontexttest_xmp_caption
creatortexttest_xmp_author
copyright_noticetexttest_xmp_copyright_notice - do not copy this image without author permission
copyright_statustextFalse
keywordstexttest_xmp_keywords
create_datetext2025-02-23T15:30:00Z
categorytextSports
supplemental_categorytexttest_xmp_niche_category
caption_writertexttest_xmp_desc_writer
citytexttest_xmp_city
regiontexttest_xmp_state
countrytexttest_xmp_country_code
credittexttest_xmp_credit - John Doe Photography
sourcetexttest_xmp_source - test_user
headlinetexttest_xmp_headline - theme selection text
instructionstexttest_idp_xmp_instructions
transmission_referencetexttest_xmp_transmission_reference
job_referencetexttest_xmp_job_name
ratingtext5
labeltextRed
creator_tooltextAdobe Photoshop 2024
usage_termstextAllowed for educational purposes only
creator_contact_addresstextJohn Doe, johndoe@example.com
creator_contact_emailtexttest_xmp_contact@johndoe.com
licensetexthttps://creativecommons.org/licenses/by/4.0/
attribution_nametextJane Doe
attribution_urltexthttps://janedoephotography.com
alt_texttexttest_xmp_alt_text
licensor_nametexttest_xmp_doe_agency
licensor_urltexthttps://doeagency.com
identifiertexttest_xmp_image_12345
latitudetext29.7604
latitude_reftextN
longitudetext95.3698
longitude_reftextW
urgencytext5
file_commenttextMetadata updated by API

Error Codes

Copied!
{
    "error": true,
    "message":"Invalid image URL or image data."
}