Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A RESTfull API designed using Django to get details about a user from a coding profile.

charitra1022/coding-profile-api-django

Repository files navigation

coding-profile-api

A RESTful API designed using Django to get details about a user from a coding profile. It is implemented here.

Using the api

https://coding-profile-api.herokuapp.com/codingprofile/?&platform=<PLATFORM>&username=<USERNAME>

Optional parameter -> format=json for viewing a complete JSON format.


Supported Platforms

  1. codechef -> For CodeChef data
  2. gfg -> For GeeksForGeeks data
  3. leetcode -> For LeetCode data
  4. hackerrank -> For HackerRank data

Replace <PLATFORM> with any of the above.
Replace <USERNAME> with your user handle for the respective platforms.


Return Type

Returns JSON of the following format. Depends on platform.

  1. CodeChef
    {
     "username": "charitra1022",
     "platform": "codechef",
     "stars": 1,
     "rating": 1289,
     "status": "200"
    }
    
  1. GeeksForGeeks
    {
     "username": "charitra1022",
     "platform": "gfg",
     "problems": 29,
     "status": "200"
    }
    
  1. LeetCode
    {
     "username": "charitra1022",
     "platform": "leetcode",
     "problems": 45,
     "status": "200"
    }
    
  1. HackerRank
    {
     "username": "charitra1022",
     "platform": "hackerrank",
     "badges":[
     "Problem Solving": {
     "stars": 2,
     "icon": <SVG BADGE>,
     },
     ]
     "status": "200"
    }
    
    Returns data of all badges you've earned

Implementation

This API is implemented on my portfolio site. See here.


References

  1. Vanilla JSON Path Picker

AltStyle によって変換されたページ (->オリジナル) /