{"id":22337668,"url":"https://github.com/scriptlinestudios/leaderboards","last_synced_at":"2025-03-26T08:23:56.734Z","repository":{"id":137398962,"uuid":"448577224","full_name":"ScriptLineStudios/Leaderboards","owner":"ScriptLineStudios","description":"Simple leaderboard API","archived":false,"fork":false,"pushed_at":"2022-02-24T19:33:45.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T09:45:27.678Z","etag":null,"topics":["api","flask","flask-sqlalchemy","leaderboard","python"],"latest_commit_sha":null,"homepage":"https://leaderboards.pythonanywhere.com/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScriptLineStudios.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-01-16T14:26:44.000Z","updated_at":"2023-07-26T16:03:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"44ac17fe-2ac4-4296-a3ab-973a1b4ecb93","html_url":"https://github.com/ScriptLineStudios/Leaderboards","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/ScriptLineStudios%2FLeaderboards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2FLeaderboards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2FLeaderboards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2FLeaderboards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScriptLineStudios","download_url":"https://codeload.github.com/ScriptLineStudios/Leaderboards/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245616302,"owners_count":20644618,"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","flask","flask-sqlalchemy","leaderboard","python"],"created_at":"2024-12-04T06:10:57.144Z","updated_at":"2025-03-26T08:23:56.711Z","avatar_url":"https://github.com/ScriptLineStudios.png","language":"Python","readme":"Leaderboard API v0.1\n==============\n\nLeaderboards is a simpole leaderboards api that allows you to make GET/POST requests to a leaderboard server which will manage the board.\n\nGetting Started\n==============\n\nTo get started head over to https://leaderboards.pythonanywhere.com/ and and create a new leaderboard. This will give you an api key which will allow you to access to the api. **Keep this key safe** as it will allow for new entries to be made to your board. To make a new entry make a POST request to the following endpoint: https://leaderboards.pythonanywhere.com/add/ an example of a request in Python:\n\n```\nimport requests\nrequests.post(\"https://leaderboards.pythonanywhere.com/add?apiKey=YOUR_API_KEY\u0026data=NAME_OF_ENTRY\u0026scores=THEIR_SCORE\")\n```\n\nThe leaderboard can then be viewed at: https://leaderboards.pythonanywhere.com/leaderboard/YOUR_LEADERBOARD_NAME alternativly you might want to grab the leaderboards contents to display directly in your game. This can be done by making a GET request to the endpoint. An example of the request being made in Python:\n\n```\nimport requests\ndata = requests.get(\"https://leaderboards.pythonanywhere.com/add?apiKey=YOUR_API_KEY\")\nprint(data.content)\n```\nFrom there the data can be formatted to be displayed in any way you like. \n\n\nhttps://user-images.githubusercontent.com/85095943/151555501-98845d3f-f9ad-48c2-a9bd-2cf301a18553.mov\n \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptlinestudios%2Fleaderboards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptlinestudios%2Fleaderboards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptlinestudios%2Fleaderboards/lists"}