Those url's are Web site and no relevance to the API.
This is a support issue. Put in a bug report.
T_D is correct about this being the wrong place to raise this issue but I've been receiving similar 'broken' links for the last year as well. They're very intermittent and the redundant URL format means they're automatically redirected to today's daily puzzle.
This is the current format: https://www.chess.com/daily-chess-puzzle/2023-08-23
This is a link I received in June:
https://www.chess.com/forum/view/daily-puzzles/772011---long-range-sight?ncc=1#first_new_comment
Another strange aspect is that if you locate the puzzle that's generating the alert, there's no new comment to see! I've asked staff member 'Bit' why the site is sending me false alerts in a redundant format but no reply to that question so far.
For example the response for a certain random puzzle:
"url":"https://www.chess.com/forum/view/daily-puzzles/962010---mate-in-3"Yet visiting that link does not take you to that puzzlee but instead takes you to today's daily puzzle.
You'll see that none of these daily puzzle links actually take you to the right puzzle, instead always redirecting to today's daily puzzle.
https://www.chess.com/forum/view/daily-puzzles/3242015---mate-in-4 https://www.chess.com/forum/view/daily-puzzles/7-11-2019-protecting-attacking-and-winning https://www.chess.com/forum/view/daily-puzzles/5-16-2019-double-discoveryHere's a case in point - reformat that redundant link and you can view the page for that old daily puzzle:-
https://www.chess.com/daily-chess-puzzle/2019-07-11
Take a look at the most recent post, it's dated June 29 of this year but I'm guessing you recieved the alert some time after that?
For example the response for a certain random puzzle:
"url":"https://www.chess.com/forum/view/daily-puzzles/962010---mate-in-3"Yet visiting that link does not take you to that puzzlee but instead takes you to today's daily puzzle.
You'll see that none of these daily puzzle links actually take you to the right puzzle, instead always redirecting to today's daily puzzle.
https://www.chess.com/forum/view/daily-puzzles/3242015---mate-in-4 https://www.chess.com/forum/view/daily-puzzles/7-11-2019-protecting-attacking-and-winning https://www.chess.com/forum/view/daily-puzzles/5-16-2019-double-discoveryHere's a case in point - reformat that redundant link and you can view the page for that old daily puzzle:-
https://www.chess.com/daily-chess-puzzle/2019-07-11
Take a look at the most recent post, it's dated June 29 of this year but I'm guessing you recieved the alert some time after that?
Thanks for the info. No I didn't receive any alerts at all, I found these urls from the /pub/puzzle/random endpoint responses.
I've seen that you reformated the second example link I provided. But how about the first one:
https://www.chess.com/forum/view/daily-puzzles/3242015---mate-in-4
I am writing code to embed the links but if the formatting is different for every one, it can be a bit more tricky. Would be way simpler if the returned urls actually worked!
I don't even know why the formats are different, perhaps they changed their link structure over the years.
I've seen that you reformated the second example link I provided. But how about the first one:
https://www.chess.com/forum/view/daily-puzzles/3242015---mate-in-4
This? ...
https://www.chess.com/daily-chess-puzzle/2015-03-24
The date string '3242015' in mddyyyy format just has to be reformated into yyyy-mm-dd form
I've seen that you reformated the second example link I provided. But how about the first one:
https://www.chess.com/forum/view/daily-puzzles/3242015---mate-in-4
This? ...
https://www.chess.com/daily-chess-puzzle/2015-03-24
The date string '3242015' in mddyyyy format just has to be reformated into yyyy-mm-dd form
ah great thanks I didn't see that the part before the date was also different. thanks for the help
Those url's are Web site and no relevance to the API.
This is a support issue. Put in a bug report.
I never got a working URL from the endpoint before.
And it is sort of an API issue as the API provides it, especially, as the API documentation says:
"If you are going to publish the Daily Puzzle somewhere please remember to give credits to Chess.com by means of a clearly visibile text link that points to the url of the puzzle page."
For example the response for a certain random puzzle:
Yet visiting that link does not take you to that puzzlee but instead takes you to today's daily puzzle.
You'll see that none of these daily puzzle links actually take you to the right puzzle, instead always redirecting to today's daily puzzle.