wat does api stands for anyway
API for master games
"wat does api stands for anyway" what I mean is how do I access the master games in the chess.com API? is the data included in the API? I am also new here but conducting a study that needs me to make use of the master games. Any idea please?

It's not listed here, https://www.chess.com/news/view/published-data-api so isn't something available through the API

It's not listed here, https://www.chess.com/news/view/published-data-api, so isn't something available through the API
Link has a comma in it and fails. Here is the corrected link:
https://www.chess.com/news/view/published-data-api
Thank you guys for your input. The master games are not included in the api. Is it possible to include the master games (with all possible opening/gambit classifications so it's easier to request it from the api rather than manual downloads from chess.com? Please could the admin help with this?

@Ndrizky you could potentially hit this endpoint (https://www.chess.com/news/view/published-data-api#pubapi-endpoint-titled), pass in the title abbreviation of interest to you, and with the collection of usernames received, pass each to this endpoint (https://www.chess.com/news/view/published-data-api#pubapi-endpoint-games-archive-list).
That would give you an array of endpoints for specific months that should provide games played in that month. That's REST
@Ndrizky you could potentially hit this endpoint (https://www.chess.com/news/view/published-data-api#pubapi-endpoint-titled), pass in the title abbreviation of interest to you, and with the collection of usernames received, pass each to this endpoint (https://www.chess.com/news/view/published-data-api#pubapi-endpoint-games-archive-list).
That would give you an array of endpoints for specific months that should provide games played in that month. That's REST
Thank you so much @ImperatorJM. However, this is not what I am looking for. So, in chess.com you have master games that include games by say Bobby Fischer, Kasparov, Kramnik etc. These are special collections but they appear not to be included in the API. I find that accessing the endpoints you provided gives me access only to modern players who are chess.com. Please do you have any idea how I can get the data I want without singly downloading the files from chess.com? Thank you for your input.

I see. It appears all "game" endpoints require a username for a profile on chess.com. Are you looking for only the openings used in these master games?
I see. It appears all "game" endpoints require a username for a profile on chess.com. Are you looking for only the openings used in these master games?
Thank you. I would actually want the entire game if that is possible to obtain. I am not sure if admin could help with this. It would be nice really.

I'm not sure what language/framework you're working in and I personally don't have much experience with this method, but scraping the page of each game (e.g. https://www.chess.com/games/view/14842021) of each master your interested in may be an option. At the link above all moves played in the game can be found within a `div` container with `class=move-list-tab-component sidebar-tabs-tab`. By inspecting the page with DevTools you can locate the data you need.
If coding in Rails I'd recommend looking into the `open-uri` and `HTTParty` gems which act as HTTP clients.
I'm not sure what language/framework you're working in and I personally don't have much experience with this method, but scraping the page of each game (e.g. https://www.chess.com/games/view/14842021) of each master your interested in may be an option. At the link above all moves played in the game can be found within a `div` container with `class=move-list-tab-component sidebar-tabs-tab`. By inspecting the page with DevTools you can locate the data you need.
If coding in Rails I'd recommend looking into the `open-uri` and `HTTParty` gems which act as HTTP clients.
Thank you so much @ImperatorJM for the suggestions. I will try that.
I also needed to retrieve a large number of historical games. Since I couldn't find a solution through the API, I wrote a Python script to parse the games from the website.
https://github.com/tehnik-tehnolog/MasterGameDownloader
Example ```python
from chess_game_downloader import ChessGameDownloader
players_dict = {
"Garry Kasparov": 500,
"Bobby Fischer": 600,
"Vladimir Kramnik": 700
}
downloader = ChessGameDownloader()
downloader.download_games_for_players(players_dict)
```
Use the player's first and last name as they appear on Chess.com.
Please, how do I get the API for master games? I would really appreciate any input here.
Thanks