Skip to main content



  • Francis Tagbo

    Hi there,

    The public ID contains the full path of the uploaded asset, including the folder name and excluding the file extension. Note that if using an SDK to generate the URL, `v1` is automatically added to the URL by default for foldered images, but this is part of URL versioning and not part of the public id. In your case, your public id is `media/videos/english-preposition/Physics_is_Life_og46jg`.



  • Quantum

    I tried this as well but it didn;t worked. I am using Python SDK.

    Its is giving me this error:

    Error 404 - Resource not found - media/videos/english-preposition/Physics_is_Life_og46jg

    while doing this:

    'media/videos/english-preposition/Physics_is_Life_og46jg', video_duration=True)
  • Aleksandar Kostadinov


    The URL to the video would be -

    In regards to retrieving it via the API - based on the code you shared, I see that you're using the get details of a single resource method. By default, methods have default values for various parameters, including 'resource_type' and 'type'. The default value for resource_type is "image" and since you are trying to retrieve a video, you need to explicitly pass the resource_type parameter set to "video" in your method call.

    Could you please try with the following code:

    cloudinary.api.resource('media/videos/english-preposition/Physics_is_Life_og46jg', resource_type = 'video', image_metadata = True)

Post is closed for comments.