Image field - image URL via MB Rest API?

Support General Image field - image URL via MB Rest API?Resolved

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6464
    SilvioSilvio
    Participant

    Hey! 🙂

    I'm working with MB Rest API and I would like to retrieve also the URL of an image I uploaded via 'image_advanced' and not only the attachment_id.

    As I'm working with a lot of images I would like to avoid to make an extra call for every image to get the URL and other data.

    Could you point me in a direction how I could easily save/retrieve also the url/other data?

    Thanks a lot!

    #6538
    Truong GiangTruong Giang
    Participant

    Hi there,

    Thank you for your suggestion, we will consider this idea. Thank you.

    #19293
    LucienLucien
    Participant

    Hi, any updates on this? Would love to be able to fetch the full image URL via rest API.

    #19299
    Long NguyenLong Nguyen
    Moderator

    Hi Amanda,

    The field image_advanced supports the property full_url to get the full URL of the image, see my screenshot https://cl.ly/9ee6bc157bd4

    For more information, please follow the documentation
    https://docs.metabox.io/fields/image-advanced/#template-usage

    #19311
    LucienLucien
    Participant

    Hm, weird...it doesn't work for me. Image Advanced field only gives me the image ID. Is there something special I need to do to get the rest of the image data?

    #19312
    LucienLucien
    Participant

    Seems like sometimes Image Advanced fields show all the data, but other times just displays the image ID. Some sort of bug happening but can't pinpoint what's causing it to not work sometimes.

    #19315
    LucienLucien
    Participant

    I started a new topic for this

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.