A few days ago the API was just working as the statement at API help.
But now I need to finish CAPTCHA to use Codeforces API?
Attaching cookies to the request does not make it work.
So does anyone knows how to use it?
Spoiler
~$ curl https://mirror.codeforces.com/api/contest.list
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Just a moment...</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="robots" content="noindex,nofollow">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="/cdn-cgi/styles/challenges.css" rel="stylesheet">
</head>
<body class="no-js">
<div class="main-wrapper" role="main">
<div class="main-content">
<noscript>
<div id="challenge-error-title">
<div class="h2">
<span class="icon-wrapper">
<div class="heading-icon warning-icon"></div>
</span>
<span id="challenge-error-text">
Enable JavaScript and cookies to continue
</span>
</div>
</div>
</noscript>
<form id="challenge-form" action="/api/contest.list?__cf_chl_f_tk=tLfwvqe.OT.D2GRotnbbw1PrPxb0kgIVKH.mxZ_WlrQ-1690005145-0-gaNycGzNClA" method="POST" enctype="application/x-www-form-urlencoded">
... bla bla bla
# Attaching User-Agent and Cookie etc
~$ curl 'https://mirror.codeforces.com/api/contest.list' --compressed -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8' -H 'Cookie: <PRIVACY>'
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Just a moment...</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="robots" content="noindex,nofollow">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href="/cdn-cgi/styles/challenges.css" rel="stylesheet">
</head>
<body class="no-js">
<div class="main-wrapper" role="main">
<div class="main-content">
<noscript>
<div id="challenge-error-title">
<div class="h2">
<span class="icon-wrapper">
<div class="heading-icon warning-icon"></div>
</span>
<span id="challenge-error-text">
Enable JavaScript and cookies to continue
</span>
</div>
</div>
</noscript>
<form id="challenge-form" action="/api/contest.list?__cf_chl_f_tk=wD641FHCmNYpr9OhF1UkxX.K_9cPFFd4Q2rRzmpCGsk-1690005245-0-gaNycGzNDhA" method="POST" enctype="application/x-www-form-urlencoded">
... bla bla bla