Chess.com API

Sort:
Avatar of Unluckily_lucky

Hey everyone, is there any plan to expose a public API which tells whether a particular player is playing a bullet/rapid/blitz game? Currently I see an API only for daily games. Any response will be helpful, thanks : )

Avatar of Tricky_Dicky

You are asking for the api to publish a endpoint that tells you a player is currently playing  a 1min bullet game and then 2 minutes later to tell you they are not?

Avatar of sciencepal

Impossible

Avatar of Unluckily_lucky
Tricky_Dicky wrote:

You are asking for the api to publish a endpoint that tells you a player is currently playing  a 1min bullet game and then 2 minutes later to tell you they are not?

They can limit the API calls/charge for it. But yeah the idea is to publish an api which would tell if a player is playing a live game.

Avatar of Difster
Unluckily_lucky wrote:

Hey everyone, is there any plan to expose a public API which tells whether a particular player is playing a bullet/rapid/blitz game? Currently I see an API only for daily games. Any response will be helpful, thanks : )

 This doesn't seem like  a very reasonable use of an API.

What would be better, if this sort of thing were to be implemented would be a push notification to a URL you set up yourself. Like a watch list you set up in your account and have it push a notification to a URL you choose in your config.

But to keep polling an API to see if some list of players is in live? No, that's a bad idea.

Avatar of Unluckily_lucky
Difster wrote:
Unluckily_lucky wrote:

Hey everyone, is there any plan to expose a public API which tells whether a particular player is playing a bullet/rapid/blitz game? Currently I see an API only for daily games. Any response will be helpful, thanks : )

 This doesn't seem like  a very reasonable use of an API.

What would be better, if this sort of thing were to be implemented would be a push notification to a URL you set up yourself. Like a watch list you set up in your account and have it push a notification to a URL you choose in your config.

But to keep polling an API to see if some list of players is in live? No, that's a bad idea.

Agreed that polling wouldn't be a good idea. Push notification is a good way to tackle this

Avatar of Difster
Unluckily_lucky wrote:
Difster wrote:
Unluckily_lucky wrote:

Hey everyone, is there any plan to expose a public API which tells whether a particular player is playing a bullet/rapid/blitz game? Currently I see an API only for daily games. Any response will be helpful, thanks : )

 This doesn't seem like  a very reasonable use of an API.

What would be better, if this sort of thing were to be implemented would be a push notification to a URL you set up yourself. Like a watch list you set up in your account and have it push a notification to a URL you choose in your config.

But to keep polling an API to see if some list of players is in live? No, that's a bad idea.

Agreed that polling wouldn't be a good idea. Push notification is a good way to tackle this


The next question is, what's the use case for this? What would you do with it?

Avatar of Nevfy

Update time for some endpoints is 12 hours and you want to have less usefull (up to me) endpoint that will be updated every single minute? No way : )

Avatar of Unluckily_lucky
Difster wrote:
Unluckily_lucky wrote:
Difster wrote:
Unluckily_lucky wrote:

Hey everyone, is there any plan to expose a public API which tells whether a particular player is playing a bullet/rapid/blitz game? Currently I see an API only for daily games. Any response will be helpful, thanks : )

 This doesn't seem like  a very reasonable use of an API.

What would be better, if this sort of thing were to be implemented would be a push notification to a URL you set up yourself. Like a watch list you set up in your account and have it push a notification to a URL you choose in your config.

But to keep polling an API to see if some list of players is in live? No, that's a bad idea.

Agreed that polling wouldn't be a good idea. Push notification is a good way to tackle this


The next question is, what's the use case for this? What would you do with it?

Wanted to have something to notify whenever any player x is playing live chess. Atleast for his/her rapid games.

Avatar of Unluckily_lucky
Nevfy wrote:

Update time for some endpoints is 12 hours and you want to have less usefull (up to me) endpoint that will be updated every single minute? No way : )

Online Player endpoint is realtime though.

Avatar of Tricky_Dicky

Online player endpoint is nowhere near 100% accurate. Not what I would describe as real time.

Avatar of Unluckily_lucky
Tricky_Dicky wrote:

Online player endpoint is nowhere near 100% accurate. Not what I would describe as real time.

You can call it near real time, but still it isn't a 12 hour cached result or something.

Avatar of Tricky_Dicky

I have seen api reports for Online as wildly out by 12 hours and more. Though they are the exception rather than the rule.