Skip to main content
Question

Can I get images using imageRef?

  • February 10, 2022
  • 2 replies
  • 3019 views

Bryan_Figueroa

I read the following under the documentation

imageRef String
A reference to an image embedded in this node. To download the image using this reference, use the GET file images endpoint to retrieve the mapping from image references to image URLs

But when I try to use a imageRef to download an image, it just tell me that imageRef is not a ID.
Was imageRef deprecated to be downloaded through the API?

Thanks in advance!

This topic has been closed for replies.

2 replies

Gleb
  • Power Member
  • 4710 replies
  • February 10, 2022

You are probably using GET images endpoint which accepts node IDs to export as stated in the docs. It doesn’t give you original images, it exports the nodes as images. Instead you need to use the GET image fills endpoint which accepts the file key and gives you links to all images in the file. Then you need to find the image with the imageRef that you need in that list.


  • 0 replies
  • March 12, 2022

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings