List Metadata
Developing
GET
https://api.lootlocker.io/admin/game/{game_id}/metadata/source/{source}/id/{source_id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://api.lootlocker.io/admin/game//metadata/source/leaderboard/id/01J5V9N4JTTHSPS3B7AKH78992?page=1&per_page=10' \
--header 'x-auth-token: ' \
--header 'x-auth-token;' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
Success
{
"metadata": [
{
"value": true,
"key": "has_beta_access",
"type": "bool",
"tags": []
},
{
"value": "xXx_ProGamer9000_xXx",
"key": "preferred_nickname",
"type": "string",
"tags": [
"foo"
]
},
{
"value": 35,
"key": "player_age",
"type": "number",
"tags": [
"foo",
"bar"
]
},
{
"value": {
"key": "value",
"properties": {
"tutorial_complete": true,
"chapter_one_complete": true
}
},
"key": "game_state",
"type": "json",
"tags": []
},
{
"value": {
"content_type": "image/jpeg",
"content": "iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAQMAAAD+wSzIAAAABlBMVEX///+/v7+jQ3Y5AAAADklEQVQI12P4AIX8EAgALgAD/aNpbtEAAAAASUVORK5CYII="
},
"key": "chosen_icon",
"type": "base64",
"tags": []
}
],
"pagination": {
"errors": null,
"per_page": 10,
"offset": 0,
"total": 5,
"last_page": 1,
"current_page": 1,
"next_page": null,
"prev_page": null
}
}
Request
Path Params
game_id
stringÂ
required
Example:
{{dev_game_id}}
source
stringÂ
required
Example:
reward
, currency
, catalog_item
etc...Example:
leaderboard
source_id
stringÂ
required
Example:
01J5V9N4JTTHSPS3B7AKH78992
Query Params
page
stringÂ
optional
Example:
1
per_page
stringÂ
optional
Example:
10
key
stringÂ
optional
Example:
has_beta_access
tags
array[string]
optional
**Note: ** No partial (OR based) matching. If you request
foo
and bar
and an item only has foo
, it will not be returned.Example:
["foo","bar"]
Header Params
x-auth-token
stringÂ
optional
Example:
{{admin_auth_token}}
Body Params application/json
Responses
Modified at 2024-09-03 15:16:37