There exists GET /api/user/{username}/activity but no GET /api/account/activity. I wanted to fetch that to see if a user had any activity in puzzles, since it doesn't have a "since" field 🙂 I'm afraid of hitting the rate limit, as previously I was fetching GET /api/user/{username} and sometimes was rate-limited, switched to GET /api/account and the problem went away. The question is if it's planned or not.
#My activity endpoint planned?
8 messages · Page 1 of 1 (latest)
what exactly do you want? the date of the last puzzle played?
Basically yes, timestamp of last game and puzzle is all I need. Full activity can be beneficial, because it contains rating changes and could spare an account request for ratings
I don't think you can use the activity data for that. See my activity there https://lichess.org/@/thibault it's about the last few days only
you can't get old data
Yes, I'm using those, but for puzzles there is no since field, so you must pull X entries, which will most likely overlap with older data. I don't need old data as I fetch hourly. The question was how to know that the user had Any activity, right now I'm using online timestamp and fetching both games and puzzles. With activity I could at least know what to pull, but that's +1 request.