I checked reference and looks like it might be unachievable by api. But maybe you hacks are ok?
you can check response code of join_request url, looks like it answer 302 inn that case.
Maybe you can decide to remove all inactive clubs as well? Then you can look at last activity, and remove it if its smaller than accepted
When a club is disabled, it causes problems for any league it's in and any opponents.
I'd like to be able to programmatically detect disabled clubs. Has anybody found a way to do it?
The club appears to look entirely normal from the API:
For example, Chess Champions Legion was recently disabled.
When you go to its club page on the site you get redirected to '/clubs' and there's a banner.
https://www.chess.com/club/chess-champions-legion-1
But when you use the public-API, there's no indicator that I can see:
$ curl "https://api.chess.com/pub/club/chess-champions-legion-1" | jq
{
"@id": "https://api.chess.com/pub/club/chess-champions-legion-1",
"name": "Chess Champions Legion",
"club_id": 163600,
"country": "https://api.chess.com/pub/country/XX",
"average_daily_rating": 1668,
"members_count": 575,
"created": 1595998354,
"last_activity": 1753252684,
"admin": [
"https://api.chess.com/pub/player/janisabolinss"
],
"visibility": "private",
"join_request": "https://www.chess.com/club/join/163600",
"icon": "https://images.chesscomfiles.com/uploads/v1/group/163600.233be8f0.50x50o.d38deb646c07.jpg",
"description": "<p><strong>Greetings we are a team with daily chess, vote chess,960 daily chess, and live chess tournaments, we participate in all major team Leagues</strong> <span style=\"color: #e03e2d;\"><span style=\"color: #e03e2d;\"><strong>1) TMCL</strong></span><strong style=\"color: #e03e2d;\">, 2) 1WL, </strong><span style=\"color: #e03e2d;\"><strong>3) KOTML</strong></span><strong style=\"color: #e03e2d;\">, 4) TCMAC. </strong><strong><span style=\"color: #e03e2d;\"><span style=\"color: #169179;\">W</span></span><span style=\"color: #169179;\">e intend to become a DIVISION A team in all these Leagues one day</span></strong><strong style=\"color: #e03e2d;\">, we would be honoured to have you with us!! Please be kind and active ,play fair ,that is all we ask!!</strong></span></p>\r\n<p><span style=\"color: #e03e2d;\"><strong style=\"color: #e03e2d;\"> <br /></strong></span></p>",
"url": "https://www.chess.com/club/chess-champions-legion-1"
}
Has anybody found a way to detect disabled clubs?