{"id":24521244,"url":"https://github.com/arnoob16/geeksforgeeksapi","last_synced_at":"2025-04-09T12:03:17.690Z","repository":{"id":45149537,"uuid":"325243762","full_name":"arnoob16/GeeksForGeeksAPI","owner":"arnoob16","description":"Unofficial GeeksForGeeks API ","archived":false,"fork":false,"pushed_at":"2025-02-11T03:20:04.000Z","size":35,"stargazers_count":67,"open_issues_count":9,"forks_count":24,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T10:37:23.191Z","etag":null,"topics":["api","data-structures","flask-api","geeksforgeeks","unofficial-apis","vercel-deployment"],"latest_commit_sha":null,"homepage":"https://geeks-for-geeks-api.vercel.app/arnoob16","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arnoob16.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-29T09:29:14.000Z","updated_at":"2025-03-27T05:07:13.000Z","dependencies_parsed_at":"2024-03-09T23:23:37.464Z","dependency_job_id":"57e96ba9-0bc4-45bc-b8a9-35ca30f478c1","html_url":"https://github.com/arnoob16/GeeksForGeeksAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnoob16%2FGeeksForGeeksAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnoob16%2FGeeksForGeeksAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnoob16%2FGeeksForGeeksAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnoob16%2FGeeksForGeeksAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arnoob16","download_url":"https://codeload.github.com/arnoob16/GeeksForGeeksAPI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036060,"owners_count":21037092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","data-structures","flask-api","geeksforgeeks","unofficial-apis","vercel-deployment"],"created_at":"2025-01-22T02:49:23.328Z","updated_at":"2025-04-09T12:03:17.660Z","avatar_url":"https://github.com/arnoob16.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src = \"https://media.geeksforgeeks.org/wp-content/cdn-uploads/20190710102234/download3.png\"\u003e\n\t\u003ch1 align=\"center\"\u003eUnofficial GFG API\u003c/h1\u003e\n\t\u003ch3 align=\"center\"\u003eAn unofficial API for GeeksForGeeks for developers to make cool stuff using GFG profile data.\u003c/h3\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://img.shields.io/github/issues-closed/arnoob16/GeeksForGeeksAPI?style=for-the-badge\"\u003e\n\u003cimg src=\"https://img.shields.io/github/issues-pr-closed/arnoob16/GeeksForGeeksAPI?color=green\u0026style=for-the-badge\"\u003e\n\u003c/p\u003e\n\n---\n\n## Functionalities\n  -  [x]  Has all the relevant data from the GFG profile page.\n  -  [x]  Has the count of all the problems solved based on difficulties.\n  -  [x]  Has the links \u0026 names of all the problems solved by the user segregated based on difficulties.\n  -  [x]  Methods supported - `GET`\n\n---\n\n## Endpoints\n\nTo access the API, there is only 1 endpoint, *https://geeks-for-geeks-api.vercel.app/yourGeeksForGeeksUsername*\n\n`Sample URL` - https://geeks-for-geeks-api.vercel.app/arnoob16\n\n## How was it built:\nThe API was built using Web Scraping the profile page and a server deployed on web.\n\n\u003cp align=center\u003e\n    \u003cimg src = \"https://img.shields.io/badge/-Python-3776AB?style=for-the-badge\u0026logo=Python\u0026logoColor=white\"/\u003e\n    \u003cimg src = \"https://img.shields.io/badge/Flask-FF9800?style=for-the-badge\u0026logo=flask\"/\u003e\n    \u003cimg src = \"https://img.shields.io/badge/Vercel-008080?style=for-the-badge\u0026logo=vercel\"/\u003e\n\u003c/p\u003e\n\n---\n\n## Instructions to run on your local system\n\n* Pre-requisites:\n\t- Python 3.x\n    - Install all the required libraries using the *requirements.txt* file. \n    \n    ``` pip install requirements.txt ```\n\n* Directions to execute\n    - ``` python app.py``` or ``` py app.py```\n    - Open the browser of your choice and visit your localhost, either *http://127.0.0.1:5000/yourGeeksForGeeksUsername* or *http://localhost:5000/yourGeeksForGeeksUsername*\n    - See the API Response, understand it and build something with it.\n\n---\n\n### Sample API Responses\n#### Success Response\n```\n{\n    \"info\": {\n        \"userName\": \"arnoob16\",\n        \"profilePicture\": \"https://media.geeksforgeeks.org/img-practice/user_web-1598433228.svg\",\n        \"instituteRank\": \"415\",\n        \"currentStreak\": \"00\",\n        \"maxStreak\": \"929\",\n        \"institution\": \"SRM Institute of Science and Technology \",\n        \"languagesUsed\": \"Java, C++, Python\",\n        \"codingScore\": \"224\",\n        \"totalProblemsSolved\": \"95\",\n        \"monthlyCodingScore\": \"\"\n    },\n    \"solvedStats\": {\n        \"school\": {\n            \"count\": 0,\n            \"questions\": []\n        },\n        \"basic\": {\n            \"count\": 16,\n            \"questions\": [\n                {\n                    \"question\": \"Cyclically rotate an array by one\",\n                    \"questionUrl\": \"https://practice.geeksforgeeks.org/problems/cyclically-rotate-an-array-by-one2614/0\"\n                },\n                {\n                    \"question\": \"Union of two arrays\",\n                    \"questionUrl\": \"https://practice.geeksforgeeks.org/problems/union-of-two-arrays3538/0\"\n                },\n                {\n                    \"question\": \"Middle of Three\",\n                    \"questionUrl\": \"https://practice.geeksforgeeks.org/problems/middle-of-three2926/0\"\n                }\n            ]\n        },\n        \"hard\": {\n            \"count\": 2,\n            \"questions\": [\n                {\n                    \"question\": \"Merge Without Extra Space\",\n                    \"questionUrl\": \"https://practice.geeksforgeeks.org/problems/merge-two-sorted-arrays5135/0\"\n                },\n                {\n                    \"question\": \"Return two prime numbers\",\n                    \"questionUrl\": \"https://practice.geeksforgeeks.org/problems/return-two-prime-numbers2509/0\"\n                }\n            ]\n        }\n    }\n}\n``` \n\n#### Failure Response\n```\n{\n    \"error\": \"Profile Not Found\"\n}\n```\n---\n\n#### Notes\n\n- If you are using this, do mention about this repository in your readme, I'll also mention your project here in this repository.\n- A star to the repository would be massive boost to a NOOB like me.\n\n\n\u003cp align=center\u003e\n\u003cimg src=\"https://forthebadge.com/images/badges/built-with-love.svg\"/\u003e\n\u003c/p\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnoob16%2Fgeeksforgeeksapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnoob16%2Fgeeksforgeeksapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnoob16%2Fgeeksforgeeksapi/lists"}