I have deployed the chess player api written in fastapi in heroku. Given chess.com username it will return fideid, fidename and chess.com player_id.
The data are collected from chess.com api's titled and player endpoints along with fide rating xml file.
Process in compiling the data.
1. Get all usernames from titled endpoint. The data are only limited to titled players.
2. Get player info such as the name, player_id from player endpoint given username.
3. If name from player info has two words like Magnus Carlsen, transform it to "Carlsen, Magnus" and save. This transformed name will be used to lookup in the rating xml file from FIDE. If name has 3 words like aa bb cc, transform it to cc, aa bb.
4. Get the fide xml file and execute merge on fide_name and transformed chess.com player name.
There are chess.com names that have not matched in the FIDE names, Overall this is not a complete mapping, there are usernames that cannot be mapped to FIDE names because sometimes there are no names specified, etc. I tried manual editing to some top players but not much. I am using this functionality with my other app under development to find the chess.com username in FIDE database.
If you want to help to expand the data, I need chess.com_username : fide_name mapping.
Example,
Chefshouse : Ding, Liren
Ding, Liren name is in fide: https://ratings.fide.com/profile/8603677
Home page
https://api-chess-player.herokuapp.com/
Endpoint
https://api-chess-player.herokuapp.com/chess/{username}
Example
https://api-chess-player.herokuapp.com/chess/hikaru
Response
{"fideid":2016192,"fidename":"Nakamura, Hikaru","chessplayerid":15448422}
Query on the web with /chess/{username} endpoint
https://api-chess-player.herokuapp.com/docs#/default/username_chess__username__get
1. Press try out
2. input username
3. Press execute
4. Look at the response body
Others
Here is an api to get player fide info given fideid, this is not my repo but I use it in my other app called head to head record matchup which is under development.
https://github.com/xRuiAlves/fide-ratings-scraper