Get a player
GET /v1/players/{key}: one player's save, or one of their earlier saves.
On this page
/v1/players/{key}API keyOne player’s save as Atomo has it, by its data store key. With version, one of their earlier saves.
Parameters
- keypathRequired
The data store key, such as
Player_48213, encoded for a URL.- versionstring
An earlier save’s version, from the history.
- storestring
The data store, when the game has more than one.
- scopestringDefault
global Its scope.
Request
curl https://api.useatomo.com/v1/players/Player_48213 \
-H "Authorization: Bearer $ATOMO_API_KEY"
local response = HttpService:RequestAsync({
Url = "https://api.useatomo.com/v1/players/" .. HttpService:UrlEncode("Player_48213"),
Method = "GET",
Headers = { Authorization = key:AddPrefix("Bearer ") },
})
if response.StatusCode == 200 then
local player = HttpService:JSONDecode(response.Body)
print(player.data.coins)
end
Answer
{
"asOf": 1796474085465,
"key": "Player_48213",
"receivedAt": 1796474085413,
"owner": 48213,
"userIds": [48213],
"version": "08DE2C5A1B3F7E91.0000000002.08DE2C5A1B3F7E91.01",
"updatedTime": 1764871140000,
"removedAt": null,
"data": {
"coins": 17291,
"level": 74,
"inventory": ["RareSword", "Shield", "Lantern"]
}
}
- keystring
The data store key.
- receivedAtnumber
When Atomo last received this player’s save.
- ownernumber | null
The Roblox user ID the save belongs to: from the key pattern, or the save’s one user ID.
- userIdsnumber[]
Every user ID the save names, as Roblox keeps them.
- versionstring
Roblox’s version of the save.
- updatedTimenumber
When Roblox saved it.
- removedAtnumber | null
When Atomo noticed Roblox no longer has the key. The last save is still given, until Atomo deletes it 30 days on.
- dataany
The save, below the data store’s data path.
An earlier save
curl -G https://api.useatomo.com/v1/players/Player_48213 \
--data-urlencode "version=08DE2C5A1B3F7E91.0000000001.08DE2C5A1B3F7E91.01" \
-H "Authorization: Bearer $ATOMO_API_KEY"
local version = HttpService:UrlEncode("08DE2C5A1B3F7E91.0000000001.08DE2C5A1B3F7E91.01")
local url = "https://api.useatomo.com/v1/players/Player_48213?version=" .. version
{
"asOf": 1796474085466,
"key": "Player_48213",
"receivedAt": 1796474085413,
"version": "08DE2C5A1B3F7E91.0000000001.08DE2C5A1B3F7E91.01",
"updatedTime": 1764784800000,
"data": {
"coins": 15508,
"level": 72,
"inventory": ["RareSword", "Shield"]
}
}
The same, without owner, userIds and removedAt. Only saves Atomo kept: older ones are 404 no_such_version.
Errors
404 no_such_player when Atomo has no such key, including a player deleted on request. More: Errors and limits.