https://online-go.com/termination-api/game/[GAME_ID]/state
Is this what you’re looking for? Anoek answered this question awhile back in a different thread, if so: Is there a way to get the current board state of an active OGS game from the API instead of just the sequence of moves played? - #5 by anoek
It returns a few things, including an array of the board’s current state, the last move played, and an array of stones removed.
Although, to be honest, I’m not entirely sure how that second array works, since I just found this game where the last move was a capturing one: https://online-go.com/termination-api/game/48060935/state and this was the response:
json
{“move_number”:16,
“player_to_move”:388040,
“phase”:“play”,
“board”:[[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,2,2,2,0,0],
[0,0,1,0,2,0,2,0,0],
[0,0,0,1,1,2,1,0,0],
[0,0,1,0,0,2,1,0,0],
[0,0,0,0,2,0,1,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0]],
“outcome”:“”,
“removal”:[[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0],
[0,0,0,0,0,0,0,0,0]],
“last_move”:{“x”:6,“y”:3}}
Okay i actually just answered my own question, that second array is for stone removal at the end of the game, which i finally figured out by looking at one of my own finished games:
https://online-go.com/termination-api/game/47451764/state.