Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: more info about users #15046

Open
stephanhuebsch opened this issue Apr 6, 2024 · 4 comments
Open

API: more info about users #15046

stephanhuebsch opened this issue Apr 6, 2024 · 4 comments

Comments

@stephanhuebsch
Copy link

I would like to propose some new API endpoints: it would be nice to have an API endpoint for the following public user data:

  • number of tournament points (int) [*]
  • number of published studies (int) [*]
  • number of forum posts (int) [*]
  • number of published blog posts (int) [*]
  • progress of chess basics (either percentage (int) or finished or not (boolean))
  • progress of practice (either percentage (int) or finished or not (boolean))

[*] as visible on a user page

The number of published studies might be obtainable by checking the length of the list of a studies by a user, but I think it would be nevertheless nice to have a simple endpoint in the user data.

@kraktus kraktus changed the title API new endpoints API: more info about users Apr 7, 2024
@ornicar
Copy link
Collaborator

ornicar commented Apr 7, 2024

Who needs them and what for? I only add APIs that are actually going to be used

@stephanhuebsch
Copy link
Author

I'm working on a website that displays user statistics. It's just a small project that I'm pursuing in my spare time -not sure if there are any other potential use cases.

@cmgchess
Copy link
Contributor

cmgchess commented Apr 9, 2024

scraping is also an option if no other way

@stephanhuebsch
Copy link
Author

@cmgchess Sure, I've thought about that. However, I found this text on https://lichess.org/page/api-tips:

If you have a use case that is not covered, please do ask us about it and we may consider adding it. We would much rather add an endpoint than have people use web-scraping or browser automation tools!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants