Devapix logo
Docs
Close

Getting icons: More examples

This is a example of getting a icon using its alternative name, in this case, using x instead of twitter. Also using more parameters: release, size and color.

GET /api?{iconName}&r={release}&s={size}&c={color}
Double click to copy

Example

Parameter
Value
iconName
x
release | r
dev
size | s
96
color | c
green
Request
https://devapix.vercel.app/api?x&r=dev&s=96&c=green
Double click to copy
Response
x

In these next examples let's use the theme parameter.

GET /api?{iconName}&r={release}&s={size}&t={theme}
Double click to copy

Examples

Parameter
Value
iconName
github
release | r
2.10
size | s
64
theme | t
light
Request
https://devapix.vercel.app/api?github&r=2.10&s=64&t=light
Double click to copy
Response
github

Parameter
Value
iconName
github
release | r
2.10
size | s
64
theme | t
dark
Request
https://devapix.vercel.app/api?github&r=2.10&s=64&t=dark
Double click to copy
Response
github

This example shows theme parameter priority over color.

GET /api?{iconName}&r={release}&s={size}&t={theme}&c={color}
Double click to copy

Example

Parameter
Value
iconName
github
release | r
2.10
size | s
72
theme | t
light
color | c
ff00ff
Request
https://devapix.vercel.app/api?gitlab&r=2.10&s=72&t=dark&c=ff00ff
Double click to copy
Response
gitlab