GET/info0.5 credits per call · 24-hour shared cache
// PRODUCT · INFO

Info.

BlurHash, palette, and metadata in one round-trip. Four variants share the same 24-hour cache.

quick start
# Full payload — metadata, palette, BlurHash, colors
curl 'https://demo.imgapis.com/info?src=unsplash/photo-1506905925346-21bda4d32df4'
Live preview of Info
Live preview · streamed from demo.imgapis.com
Variant · 01GET /info

Info.

Full payload — blurhash, palette, metadata. One round-trip, one cache key.

Full payload — metadata, blurhash, colors, palette
response
{
  "metadata": {
    "bytes": 124518,
    "contentType": "image/jpeg",
    "format": "jpg",
    "width": 1600,
    "height": 1067
  },
  "blurhash": "U2TI:j]9fQ|cfQfQt7fQfQfQfQfQfQfQfQfQ",
  "colors": [
    { "area": 0.41, "hex": "#1f2937", "intensity": 0.7 },
    { "area": 0.22, "hex": "#9ca3af", "intensity": 0.4 }
  ],
  "palette": {
    "vibrant": { "hex": "#ef4444" },
    "lightVibrant": { "hex": "#fca5a5" },
    "darkVibrant": { "hex": "#7f1d1d" },
    "muted": { "hex": "#6b7280" },
    "lightMuted": { "hex": "#d1d5db" },
    "darkMuted": { "hex": "#374151" }
  }
}
src=unsplash/photo-1506905925346-21bda4d32df4
Subset — only colors and metadata
response
{
  "metadata": {
    "bytes": 124518,
    "contentType": "image/jpeg",
    "format": "jpg",
    "width": 1600,
    "height": 1067
  },
  "colors": [
    { "area": 0.41, "hex": "#1f2937", "intensity": 0.7 },
    { "area": 0.22, "hex": "#9ca3af", "intensity": 0.4 }
  ]
}
src=unsplash/photo-1506905925346-21bda4d32df4
select=colors,metadata
// parameters2fields
srcRequired
stringType
Default

Source image — full URL, source-alias form (<source-name>/<path>), or use the path-sugar form /<endpoint>/<source-name>/<path>.

selectOptional
csvType
Default

Comma-separated subset of top-level fields to return. Omit for full payload.

blurhashcolorsmetadatapalette
Variant · 02GET /info/blurhash

Info · BlurHash.

Generate a stable hash for skeleton placeholders and lazy LCP. Same cache as /info — once warmed, free.

BlurHash only
response
{
  "blurhash": "U2TI:j]9fQ|cfQfQt7fQfQfQfQfQfQfQfQfQ"
}
src=unsplash/photo-1506905925346-21bda4d32df4
// parameters1fields
srcRequired
stringType
Default

URL-encoded source image URL.

Variant · 03GET /info/colors

Info · Colors.

Extract a brand palette from any image — auto-theme your UI on upload.

Colors and palette
response
{
  "colors": [
    { "area": 0.41, "hex": "#1f2937", "intensity": 0.7 },
    { "area": 0.22, "hex": "#9ca3af", "intensity": 0.4 },
    { "area": 0.18, "hex": "#fef3c7", "intensity": 0.6 }
  ],
  "palette": {
    "vibrant": { "hex": "#ef4444" },
    "lightVibrant": { "hex": "#fca5a5" },
    "darkVibrant": { "hex": "#7f1d1d" },
    "muted": { "hex": "#6b7280" },
    "lightMuted": { "hex": "#d1d5db" },
    "darkMuted": { "hex": "#374151" }
  }
}
src=unsplash/photo-1506905925346-21bda4d32df4
// parameters1fields
srcRequired
stringType
Default

URL-encoded source image URL.

Variant · 04GET /info/metadata

Info · Metadata.

Read width / height / format / bytes without downloading the full bitmap.

File metadata only
response
{
  "metadata": {
    "bytes": 124518,
    "contentType": "image/jpeg",
    "format": "jpg",
    "width": 1600,
    "height": 1067
  }
}
src=unsplash/photo-1506905925346-21bda4d32df4
// parameters1fields
srcRequired
stringType
Default

URL-encoded source image URL.

// COOL USAGES

See an image before you transform it.

// 01

Index assets on upload

Hit /info once on ingest; cache the BlurHash + palette + dimensions in your DB. Reads are free forever — the API only bills on cache miss.

// 02

Auto-theme UI from artwork

Use palette.vibrant and palette.muted as accent colors per album page. Real colors ranked by area share — no JS color extractor in the client bundle.

// 03

Pick AVIF vs WebP per asset

/info/metadata tells you format and bytes before you commit a transform URL. Skip the AVIF pass for already-tiny GIFs, force JPEG for emails.

// 04

Skeletons that match the image

/info/blurhash returns the 28-char hash you pass straight to your client-side BlurHash decoder. Skeleton matches the image, not a grey box.