API Docs


Before using the API make sure you read the docs.


If you are new around here, first get an API key.




Parameter Usage Example Description
X-API-KEY 'X-API-KEY: [YOUR-API-KEY]' Add your API key via the HTTP headers

Parameter Usage Example Description
limit ?limit=10 Number of avatars (30 max per call, default is 10)
gender[] ?gender[]=male Filter by gender: male or female
from_age ?from_age=18 Set minimum age
to_age ?to_age=40 Set maximum age
hairColor[] ?hairColor[]=blond Filter by hair color
emotion[] ?emotion[]=happiness Filter by emotion
provider[] ?provider[] Premium Get avatars by provider ID
popular ?popular Premium Order avatars by popularity
offset ?offset=10 Premium Skip number of avatars from the result
license ?license=CC0 Premium Coming soon
random ?random Deprecated (results are random by default)

fetch('https://uifaces.co/api', {
	method: 'GET',
	headers: {
	  'X-API-KEY': [YOUR-API-KEY],
	  'Accept': 'application/json',
	  'Cache-Control': 'no-cache'
	}
})

curl 
	--header Cache-Control: no-cache 
	--header Accept: application/json 
	--header X-API-KEY: [YOUR-API-KEY] 
	https://uifaces.co/api

{ "error" : "Maximum allowed number of results exceeded." }


Try it Here


[
    {
        "name": "Daniel Cardoso",
        "email": "daniel.cardoso@gmail.com",
        "position": "Receptionist",
        "photo": "https:\/\/pbs.twimg.com\/profile_images\/1102351320567164931\/ZCkJgJIH.png"
    },
    {
        "name": "Kelis Ford",
        "email": "kelis.ford@gmail.com",
        "position": "Senior Developer",
        "photo": "https:\/\/images.generated.photos\/MsoBEx-FtEKPafNV5nKbztavtWiKlcBSbfxt5nVyyAU\/rs:fit:512:512\/Z3M6Ly9nZW5lcmF0\/ZWQtcGhvdG9zLzA5\/NDk2NTAuanBn.jpg"
    },
    {
        "name": "Malka Benton",
        "email": "malka.benton@gmail.com",
        "position": "Executive Assistant",
        "photo": "https:\/\/i.imgur.com\/kcPMLNS.jpg"
    },
    {
        "name": "Lian Oneill",
        "email": "lian.oneill@gmail.com",
        "position": "Human Resources",
        "photo": "https:\/\/i.imgur.com\/dSJvdtu.jpg"
    },
    {
        "name": "Daniela",
        "email": "daniela@gmail.com",
        "position": "Customer Service Representative",
        "photo": "https:\/\/pbs.twimg.com\/profile_images\/1086236560629157888\/0QpP2NSG.jpg"
    }
]