samuelthomas2774 / nxapi

Nintendo Switch Online/Parental Controls app APIs. Show your Nintendo Switch presence in Discord, get friend notifications on desktop, and download and access SplatNet 2, NookLink, SplatNet 3 and Parental Controls data. Mirror of https://gitlab.fancy.org.uk/samuel/nxapi.git.
GNU Affero General Public License v3.0
413 stars 34 forks source link

Do you have Nintendo Switch Online API for user games and playtime? #8

Closed BoBoGithub closed 2 years ago

BoBoGithub commented 2 years ago

I want some apis for user games and playtime,

The Nintendo Switch Parental Controls App has the apis, but this app require user must Link Device.

Can you help me?

samuelthomas2774 commented 2 years ago

Unfortunately Coral (the Nintendo Switch Online app/its API) doesn't expose your full play log. The only way to access this is using a Nintendo Switch console.

Further information Play activity is recorded in a few different places: - Your play activity/log, which you can optionally make available to friends/best friends/everyone. This includes (for each title) the number of times was launched, total play time in minutes and first/last played timestamp. This is linked to your Nintendo Switch network account (which is why this is only recorded once a Nintendo Account is linked), and is only available via [the Nintendo Switch accounts server (BAAS)](https://github.com/kinnay/NintendoClients/wiki/BAAS-Server). - Moon (aka. the Nintendo Switch Parental Controls app/API), which records the total play time (extremely annoyingly) rounded down to *300 seconds* (5 minutes) per user/day, and the first played date. - [Consoles must record this information locally as well, in much more detail (like 3DS/Wii U) and for each user, but separate to the play activity?](https://github.com/tallbl0nde/NX-Activity-Log) Maybe Nintendo just copied this from the 3DS/Wii U exactly as it is, then it gets synced to your play activity later?
BoBoGithub commented 1 year ago

Hello, @samuelthomas2774

Recently I found that the “My Nintendo“ App contains the user's game information and game duration.

Can you extract the Api related to the game duration in this package?

samuelthomas2774 commented 1 year ago

I did have a look the the My Nintendo app a while ago. It uses a few different APIs for news, play history, etc. All Nintendo Accounts are able to authenticate to all services and everything generally works fine, however the play history is empty for non-JP accounts. If this changes I'll definitely add support for the My Page (play history, My Nintendo points) API but for now I'm just focusing on the SplatNet 3 API.

hb-robo commented 1 year ago

All Nintendo Accounts are able to authenticate to all services and everything generally works fine, however the play history is empty for non-JP accounts. If this changes I'll definitely add support for the My Page (play history, My Nintendo points) API but for now I'm just focusing on the SplatNet 3 API.

Hi there, sorry to necro this issue, but I was wondering if anything had changed on this front since this was closed.