appsample-com / spiral-abyss

41 stars 8 forks source link

How can you get data of spiral-abyss only using UID? #18

Open CanoeByGuitar opened 2 years ago

CanoeByGuitar commented 2 years ago

Do you cooperate with Mihoyo ? or how can I get my own data only by UID?

piedorr commented 2 years ago

I don't know whether appsample collects their data with the same method that we do, but my team also collects spiral abyss data using UID. We collect the data from each user's Hoyolab Battle Chronicle. We use this library that plugs into Hoyolab's API. To use it, we need to (essentially) log in using a Hoyolab account, but from there we can call for user's data using their UID.

CanoeByGuitar commented 2 years ago

I don't know whether appsample collects their data with the same method that we do, but my team also collects spiral abyss data using UID. We collect the data from each user's Hoyolab Battle Chronicle. We use this library that plugs into Hoyolab's API. To use it, we need to (essentially) log in using a Hoyolab account, but from there we can call for user's data using their UID.

Actually I've been looking for ways of getting spiral-abyss for days. On the Chinese mainland, there's no such utils so far , so I want to develop one like this. Thank you very much for your answer. It really helps me a lot.

thesadru commented 2 years ago

Actually, genshinstats is made to also work with Chinese accounts too so there should be no problems getting your own data with it even if you're on the Chinese mainland.

Naya5 commented 2 years ago

I don't know whether appsample collects their data with the same method that we do, but my team also collects spiral abyss data using UID. We collect the data from each user's Hoyolab Battle Chronicle. We use this library that plugs into Hoyolab's API. To use it, we need to (essentially) log in using a Hoyolab account, but from there we can call for user's data using their UID.

The abyss data format is exactly the same as in example data here. I am still confused how average/estimate time is calculated, it's not recorded in spiral_abyss command. Also that lib uses in game uid for all queries and can get it just from hoyolab id, though that doesn't seem to be public.