Skip to main content

Overview

ImageItem is the shared image object returned by the all-photos, BIB search, and face search responses. The same shape is reused regardless of how the photo was discovered, so you can render any of them through one component.

ImageItem

{
  "img_url": "https://photos.9pic.ai/imgs/456/large/a4402318-0cf4-4e1e-b8e8-ac8e8f2fc244.jpg",
  "height": 4860,
  "width": 3240,
  "image_id": "a4402318-0cf4-4e1e-b8e8-ac8e8f2fc244",
  "thumbnail_url": "https://photos.9pic.ai/imgs/456/small/a4402318-0cf4-4e1e-b8e8-ac8e8f2fc244.jpg",
  "original_url": null
}
FieldTypeDescription
img_urlstringLarge image URL.
heightnumber | nullImage height in pixels.
widthnumber | nullImage width in pixels.
image_idstringImage UUID.
thumbnail_urlstringThumbnail image URL.
original_urlstring | nullOriginal (unwatermarked) image URL when directly available; otherwise null. To fetch presigned download links for originals, call Download Original Photos.

Used By

All Photos

Returns data.images[] as image objects.

BIB Search

Returns matching data.images[] as image objects.

Face Search

Returns matching data.images[] as image objects.