How to get details for a single game?

Hello, after looking at the API docs I’m still confused about getting the details for a game I played. I presume that this is public info which requires not authentication? My code below returned a 301 Moved Permanently response:

import httpx

response = httpx.get('http://online-go.com/v1/games/id/')

print(response)

Changing to an actual game ID did not help:

import httpx

response = httpx.get('http://online-go.com/v1/games/41135422/')

print(response)

I think you miss an “api” before “v1”.
Check this:
https://online-go.com/api/v1/games/41135422

1 Like
  1. I get the same response even after adding it - maybe my IP is blacklisted?
  2. Please note that the Apiary API does not have api before v1… and for some reason I am not allowed to post to that host.
  3. Changing it to https got me a 200 response OK…

I think it’s just outdated. It might give some hints as to what the current endpoints might be, but I don’t think it’s reliable.

Lys gave an example of one that works.

2 Likes