As Codechef API is not public anymore. You have to send a mail to ask for access Mail ID : api@codechef.com