An icon set's samples
GET
/api/v1/icons/{prefix}/samples
const url = 'http://localhost:3000/api/v1/icons/example/samples';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/icons/example/samples \ --header 'Authorization: Bearer <token>'The few icons a set is shown by (its samples), each drawn as the SVG an import would store.
Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”prefix
required
string
The set, as Iconify names it: tabler, lucide, simple-icons
Responses
Section titled “Responses”The set’s samples
Media typeapplication/json
object
data
required
The set’s samples, those it has
Array<object>
object
name
required
string
svg
required
The file an import stores
string
Examplegenerated
{ "data": [ { "name": "example", "svg": "example" } ]}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}