---
title: "Generate an identicon"
method: GET
path: "/icon/{hash}/{size}"
tags: ["Icon"]
---

# Generate an identicon

`GET /icon/{hash}/{size}`

## Request

- Base URL: `https://dummyjson.com`
- URL: `https://dummyjson.com/icon/{hash}/{size}`
- Auth: none required

Hash and size default to DummyJSON and 100 when omitted (`/icon`, `/icon/{hash}`).

## Path parameters

- `hash` string, required
- `size` string, required

## Query parameters

- `type` 'png' | 'svg'

## Response `200`

Identicon image

---

[API](https://skmtc.dev/dummyjson/apis/dummyjson-api.md) - [All operations](https://skmtc.dev/dummyjson/apis/dummyjson-api/llms.txt) - [OpenAPI document](https://skmtc.dev/dummyjson/apis/dummyjson-api/revisions/5e704f33a559?raw)
