Devapix logo
Docs
Close

Getting info: Icon

It is possible to get information, based on devicon.json file, about the icon via project response property. Also check the request values through request if the properties to modify the icon are passed.

GET /api/info?{iconName}
Double click to copy

Examples

Parameter
Value
iconName
elixir
Request
https://devapix.vercel.app/api/info?elixir
Double click to copy
Response
{ "request": { "name": "elixir", "release": "latest", "version": "original" }, "project": { "name": "elixir", "altnames": [ "elexirlang" ], "tags": [ "language" ], "color": "#380A4D", "releases": [ "2.16.0", "2.15.1", "2.15.0", "2.14.0", "2.13.0", "2.12.0", "2.11.0", "2.10.1", "2.10.0" ], "versions": [ "original", "plain", "original-wordmark", "plain-wordmark" ] } }
Double click to copy

Parameter
Value
iconName
rust
Request
https://devapix.vercel.app/api/info?rust
Double click to copy
Response
{ "request": { "name": "rust", "release": "latest", "version": "original" }, "project": { "name": "rust", "altnames": [ "rustlang" ], "tags": [ "programming", "language" ], "color": "#000", "releases": [ "2.16.0", "2.15.1", "2.15.0", "2.14.0", "2.13.0", "2.12.0", "2.11.0", "2.10.1", "2.10.0", "2.9.0", "2.8.2", "2.8.1", "2.8.0", "2.7" ], "versions": [ "original", "line" ] } }
Double click to copy

Notice in rust info request that the version property refers to plain icon version, but since this icon version is not present into the latest project version, the API request points to original icon version instead. Also CSS color is automatically converted to its corresponding hexadecimal color.