Is there any way still like I can get basic user information for their codechef profile like handle, contest rating, country Ranking, Globel Ranking, and the total number of questions solved all time?
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3382 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3312 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 155 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 145 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | BledDest | 136 |
| 8 | adamant | 134 |
| 9 | maroonrk | 132 |
| 10 | cry | 130 |
Is there any way still like I can get basic user information for their codechef profile like handle, contest rating, country Ranking, Globel Ranking, and the total number of questions solved all time?
| Name |
|---|



Hey, see if this helps- https://codechef-api.vercel.app/{username} replace {username} with your codechef id
It's working.
This is not working now... My codechef handle is jai_kumar30 Could you please resolve the problem in my code? Am I doing something wrong?
// Fetch CodeChef data ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ async function fetchCodechefData() { const url=
https: //codechef-api.vercel.app/{jai_kumar30};try { const response=await fetch(url); if ( !response.ok) { throw new Error(`HTTP error ! status: $$$ { response.status }<br /><br /> '); }<br /><br /> const data=await response.json();<br /><br /> if (data.status==='OK') { const user=data.result; // Adjust based on the actual structure<br /><br /> document.getElementById('codechef-rating').textContent='Rating: $$$ { user.rating || 'Unrated' } `; } else { throw new Error('Failed to fetch data'); } } catch (error) { console.error('Error:', error); const ratingElement=document.getElementById('codechef-rating'); if (ratingElement) { ratingElement.textContent='Error fetching rating'; } else { console.error('Element not found'); } }} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Can there be an API for dead users as well? it will help a lot, as lot of programmers don't give contests upon reaching a desired rating range.
The deployment is paused now