question

pretzel26ud avatar image
0 Likes"
pretzel26ud asked

Browse API /item_summary/search thumbnail image height width

The Browse API reference for /item_summary/search says image thumbnails should return a height and width property.

"thumbnailImages" : [{ /* Image */ 
"height" : "integer",
"imageUrl" : "string",
"width" : "integer"
}

However, only the imageUrl is returned. Is there a way to get the image height and width properties from this API or is there another technique? My goal is to ensure all images have height and width tags for SEO and page speed performance and rather not have to do it on my side.

apis
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

pearcefj avatar image
1 Like"
pearcefj answered

That data isn't available yet. If you look at the API Reference it says those fields are reserved for future use.

10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

pretzel26ud avatar image
0 Likes"
pretzel26ud answered

Thanks, I missed that note in the API reference.

10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.