Skip to main content

What kind of Cloudinary API should I use?

Comments

3 comments

  • Stephen Doyle

    Hi,

    This isn't specific to Flask, but you can use our Python SDK to fetch a list of images using our rate-limited Admin API:
    https://cloudinary.com/documentation/admin_api#browse_resources

    To fetch all images of type 'upload' in a folder called 'test' you can do this:

    cloudinary.api.resources(
      type = "upload", 
      prefix = "test")


    The response will be a list of matching resources.

    Because this API is rate-limited, it's suitable for administrative tasks, but not a replacement for having your own database which contains a list of the images you want to show on each page. An alternative, if you need to show images from a 'live' request to our system is to use a Client-Side Resource List which is a JSON list of images that are tagged with a specific tag: https://cloudinary.com/documentation/advanced_url_delivery_options#client_side_resources

    Please let me know if that helps and if there's anything else I can help with

    Regards,
    Stephen

    0
  • 白石洋介

    I delayed to reply. Thank you very much.

    0
  • Stephen Doyle

    No problem at all; you're welcome :)

    1

Post is closed for comments.