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?
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 160 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | Dominater069 | 154 |
9 | awoo | 153 |
10 | luogu_official | 150 |
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?
Название |
---|
Hey, see if this helps- https://codechef-api.vercel.app/{username} replace {username} with your codechef id
Thanks
direction_ the api worked for you?
This api doesnt work for me my username for codechef is sanjaysrocks
API Response
Upon checking out the github repo of the api, it seems to me that it only fetches data for user with an active rating. You can try using the api for an account with rating.
I am active on codechef from last 10 days and have some stats. The api doesnt work.
Seriously dude are you not aware of the rating concept?
The api ONLY works for users who have participated in a rated contest and have an ACTIVE RATING (for example I am a 4 star (rating: 1844) on codechef. You are unrated on CC.
Atleast have complete knowledge about a platform before nullifying someone's hard work.
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}
;} ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@J_A_I_KUMAR i think the error is here:
in the url you have to replace {username} with your username without the curly braces
try this: const url=https://codechef-api.vercel.app/jai_kumar30;