psnawp
psnawp copied to clipboard
Basic Presence Endpoint
Basic Presence Endpoint accepts multiple account ids.
https://m.np.playstation.com/api/userProfile/v2/internal/users/basicPresences?accountIds=940512162723934331%2C4273405838384737823%2C5361973517281706660&platforms=PS4%2CPS5%2CMOBILE_APP%2CPSPC&type=primary&withOwnGameTitleInfo=true
It should be moved to client class from user class and accept multiple account ids.
Example response:
{
"basicPresences": [
{
"accountId": "940512162723934331",
"availability": "availableToPlay",
"primaryPlatformInfo": {
"onlineStatus": "online",
"platform": "PS5"
},
"gameTitleInfoList": [
{
"npTitleId": "CUSA14296_00",
"titleName": "Rust",
"format": "PS4",
"launchPlatform": "PS5"
}
]
},
{
"accountId": "4273405838384737823",
"availability": "unavailable",
"lastAvailableDate": "2025-02-23T11:44:18.789Z",
"primaryPlatformInfo": {
"onlineStatus": "offline",
"platform": "PS4",
"lastOnlineDate": "2025-02-23T11:44:18.789Z"
}
},
{
"accountId": "5361973517281706660",
"availability": "unavailable",
"lastAvailableDate": "2025-02-23T14:16:39.770Z",
"primaryPlatformInfo": {
"onlineStatus": "offline",
"platform": "PS5",
"lastOnlineDate": "2025-02-23T14:16:39.770Z"
}
}
]
}