Tools
HTTP API
Fetch icons and search the catalogue over HTTP.
Get an icon
GET https://icons.2dollarmacapps.com/api/icons/:name?variant=solid&format=svg
Authorization: Bearer <licence key>| Query | Values |
|---|---|
variant | outline (default), solid, duotone, glass |
format | svg (default), jsx, json |
static | present to leave out the motion |
color | bake a colour in, e.g. %23ff5a1f |
key | the licence key, if you can't send a header |
Free icons need no key. Others return 401 without a valid one.
Search
GET https://icons.2dollarmacapps.com/api/search?q=arrow&category=travel&limit=50Check a key
GET https://icons.2dollarmacapps.com/api/licence?key=<key> → { "valid": true, "plan": "personal" }