Image with location metadata

raymondcamden Member Posts: 8

I've uploaded an image with location metadata to my Media Library. If I use the API to fetch it, and use media_metadata=true, I'm not seeing that metadata returned. I know it's still in there. If I download from my Media Library and look at the image metadata on the new download, I can see it. Is there no way to get this from API? Here's the call I'm using, with tokens of course for secured info:

r = requests.get(f'{pd.inputs["cloudinary"]["$auth"]["cloud_name"]}/resources/image/upload/raytest1/20221203_193339_wvvtwp?media_metadata=true', auth=(f'{pd.inputs["cloudinary"]["$auth"]["api_key"]}', f'{pd.inputs["cloudinary"]["$auth"]["api_secret"]}'))

And here's the output (minus secure url):


    "asset_id": "8b7961e92de690a2b4dd2fe357aff4ed",

    "public_id": "raytest1/20221203_193339_wvvtwp",

    "format": "jpg",

    "version": 1670352601,

    "resource_type": "image",

    "type": "upload",

    "created_at": "2022-12-06T18:50:01Z",

    "bytes": 3298281,

    "width": 3000,

    "height": 4000,

    "folder": "raytest1",

    "url": "",

    "next_cursor": "4e4e621c5c288803692595b77be3780c2a1a8507a7604525d4efba4c17a37a8d",

    "derived": [],

    "usage": {},

    "original_filename": "20221203_193339",

    "etag": "b1531707d521ef8d9731236422746510"



  • tia
    tia Member, Cloudinary Staff Posts: 24

    Hi Raymond,

    Thanks so much for reaching out.

    Can you try using the image_metadata parameter instead? An example of what that would look like is as follows:

    const cloudinary = require("cloudinary").v2;
        .resource("kitten", {
            image_metadata: true,
        .then((uploadResult) => console.log(uploadResult))
        .catch((error) => console.error(error));

    Please give that a try and let me know if you get the result you are expecting. If you have any questions, do not hesitate to ask.

    I look forward to your reply.

    Kind Regards,