Direct API Integration
A step by step guide to integrate Player Zero into your game via our APIs
Prerequisites
Step 1: Load a Player Zero avatar's metadata
```
GET https://api.readyplayer.me/v1/characters/:avatarId
```
Example Response:
{
"data": {
"id": "avatarId",
"userId": "userId",
"applicationId": "applicationId",
"blueprintId": "blueprintId",
"assets": {
"iris": [
"irisId"
],
"sclera": [
"scleraId"
],
"hair": [
"hairId"
],
"eyebrows": [
"eyebrowsId"
],
"lipshape": [
"lipshapeId"
],
"eyeshape": [
"eyeshapeId
],
"faceshape": [
"faceshapeId"
],
"top": [
"topId"
],
"bottom": [
"bottomId"
],
"footwear": [
"footwearId"
],
"piercing": [],
"tattoo": [],
"eyeliner": [],
"blemish": [],
"scar": [],
"foundation": [],
"lipstick": [],
"blush": [],
"eyeshadow": [],
"sticker": [],
"cloth": [],
"freckles": [],
"sunburn": [],
"vitiligo": [],
"teeth": [],
"attachment": []
},
"colors": {
"skin": "#B06B45",
"lips": "#C97B7B",
"hair": {
"primary": "#191919",
"secondary": "#583C2F"
},
"beard": {
"primary": "#2e201a",
"secondary": "#543f36"
},
"eyebrows": {
"primary": "#4B3329",
"secondary": "#715447"
},
"eye": "#9d6937",
"eyeshadow": {
"primary": "#0c0804"
}
},
"createdAt": "2025-02-22T13:32:59.906Z",
"updatedAt": "2025-02-22T13:32:59.906Z",
"username": "anonymous",
"modelUrl": "https://avatars.readyplayer.me/:avatarId.glb",
"iconUrl": "https://avatars.readyplayer.me/:avatarId.png"
}
}Step 2: Load a Player Zero avatar
Step 3: Hot load an avatar
Step 4: Optimize your avatar
Parameter
Type
Description
Step 5: Send some game events
Event
Required Properties
When to send
Last updated