{"id":15572564,"url":"https://github.com/mikemajesty/github-scrap-api","last_synced_at":"2025-04-24T02:13:08.846Z","repository":{"id":83483673,"uuid":"106059968","full_name":"mikemajesty/github-scrap-api","owner":"mikemajesty","description":"👾 Project - Now getting information from your github is easy.","archived":false,"fork":false,"pushed_at":"2018-12-18T18:45:16.000Z","size":175,"stargazers_count":19,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-24T02:13:02.872Z","etag":null,"topics":["api","git-hub-api","github","github-api","github-scraping","githubscrapapi","information-retrieval","scrap-github"],"latest_commit_sha":null,"homepage":"https://legend-of-github-api.herokuapp.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikemajesty.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,"zenodo":null}},"created_at":"2017-10-07T00:02:52.000Z","updated_at":"2024-10-07T05:02:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9dc9c8d-e1f3-4e82-ba6a-5cba2a50db40","html_url":"https://github.com/mikemajesty/github-scrap-api","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/mikemajesty%2Fgithub-scrap-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikemajesty%2Fgithub-scrap-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikemajesty%2Fgithub-scrap-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikemajesty%2Fgithub-scrap-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikemajesty","download_url":"https://codeload.github.com/mikemajesty/github-scrap-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250546092,"owners_count":21448262,"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","git-hub-api","github","github-api","github-scraping","githubscrapapi","information-retrieval","scrap-github"],"created_at":"2024-10-02T18:02:46.139Z","updated_at":"2025-04-24T02:13:08.841Z","avatar_url":"https://github.com/mikemajesty.png","language":"JavaScript","readme":"# The simplest github scrap API.\n\n## API link.\n[https://legend-of-github-api.herokuapp.com/](https://legend-of-github-api.herokuapp.com/)\n\n### Custom repository information\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/repository/format?username={username}\u0026stars=10\u0026forks=5```\n\n*stars: optional* Stars to define a relevant repository, the default is \u003e= 5.\u003cbr\u003e\n*forks: optional* Forks to define a relevant repository, the default is \u003e= 2.\n\n##### Response\n```JSON\n{\n    \"stars\": 152,\n    \"forks\": 18,\n    \"language\": \"C#\",\n    \"bestRepositoty\": {\n        \"name\": \"Chocobo-Date-Range-Picker\",\n        \"language\": \"JavaScript\",\n        \"stars\": 24,\n        \"forks\": 6\n    },\n    \"repositories\": {\n        \"relevants\": [\n            {\n                \"name\": \"Vue-Dual-List\",\n                \"language\": \"Vue\",\n                \"stars\": 16,\n                \"forks\": 4\n            }\n        ],\n        \"full\": [\n            {\n                \"name\": \"github-scrap-api\",\n                \"language\": \"JavaScript\",\n                \"stars\": 5,\n                \"forks\": 0\n            },\n            {\n                \"name\": \"legend_of_github\",\n                \"language\": \"JavaScript\",\n                \"stars\": 0,\n                \"forks\": 0\n            }\n        ]\n    }\n}\n```\n### Custom user information\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/user/full?username={username}```\n##### Response\n```JSON\n{\n    \"stars\": 312,\n    \"followers\": 34,\n    \"following\": 63,\n    \"commits\": 1567,\n    \"organizations\": 4,\n    \"commitsAverage\": 4.3\n}\n```\n### Custom streak information\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/streak/quantity?username={username}```\n##### Response\n```JSON\n{\n    \"streak\": \"365\"\n}\n```\n### Custom contributions information\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/contributor?username={username}```\n##### Response\n```JSON\n{\n    \"forks\": 1,\n    \"contrinutions\": [\n        {\n            \"isContributor\": true,\n            \"repository\": \"relato-express\"\n        }\n    ],\n    \"contributionsAmount\": 1\n}\n```\n\n\u003chr\u003e\n\n### Repository information\n\n#### Get all repositories\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/repository/full?username={username}```\n##### Response\n```JSON\n[\n    {\n        \"name\": \"github-scrap-api\",\n        \"language\": \"JavaScript\",\n        \"stars\": 6,\n        \"forks\": 0\n    },\n    {\n        \"name\": \"legend_of_github\",\n        \"language\": \"JavaScript\",\n        \"stars\": 0,\n        \"forks\": 0\n    },\n    {\n        \"name\": \"coolvalidator\",\n        \"language\": \"C#\",\n        \"stars\": 6,\n        \"forks\": 0\n    }\n]\n```\n#### Gets all stars from the repositories\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/repository/stars?username={username}```\n##### Response\n```JSON\n{\n    \"stars\": 153\n}\n```\n#### Gets all forks from the repositories\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/repository/forks?username={username}```\n##### Response\n```JSON\n{\n    \"forks\": 18\n}\n```\n#### Gets the best repository\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/repository/best?username={username}```\n##### Response\n```JSON\n{\n    \"bestRepositoty\": {\n        \"name\": \"Chocobo-Date-Range-Picker\",\n        \"language\": \"JavaScript\",\n        \"stars\": 24,\n        \"forks\": 6\n    }\n}\n```\n#### Gets the favorite language\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/repository/favorite/language?username={username}```\n##### Response\n```JSON\n{\n    \"language\": \"C#\"\n}\n```\n#### Gets all languages from repositories\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/repository/languages?username={username}```\n##### Response\n```JSON\n{\n    \"repositories\": [\n        {\n            \"language\": \"C#\"\n        },\n        {\n            \"language\": \"C#\"\n        },\n        {\n            \"language\": \"C#\"\n        },\n        {\n            \"language\": \"C#\"\n        },\n        {\n            \"language\": \"C#\"\n        }]\n}\n```\n#### Gets all names from repositories\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/repository/names?username={username}```\n##### Response\n```JSON\n{\n    \"repositories\": [\n        {\n            \"name\": \"AbstractFactory\"\n        },\n        {\n            \"name\": \"AprendendoAjaxComAsp.NetMVC5\"\n        },\n        {\n            \"name\": \"AspNetCoreTutorial\"\n        },\n        {\n            \"name\": \"BeaconMusic\"\n        },\n        {\n            \"name\": \"CadastroDePedidos\"\n        }]\n}\n```\n\u003chr\u003e\n\n### User information\n\n#### Gets all stars in other repositories\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/user/stars?username={username}```\n##### Response\n```JSON\n{\n    \"stars\": 312\n}\n```\n\n#### Get all your followers\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/user/followers?username={username}```\n##### Response\n```JSON\n{\n    \"followers\": 34\n}\n```\n#### Get user following\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/user/following?username={username}```\n##### Response\n```JSON\n{\n    \"following\": 63\n}\n```\n#### Gets the average of the commit\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/user/commits/average?username={username}```\n##### Response\n```JSON\n{\n    \"commitsAverage\": 4.3\n}\n```\n#### Gets the amount of commits\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/user/commits?username={username}```\n##### Response\n```JSON\n{\n    \"commits\": 1573\n}\n```\n#### Gets the amount of organizations\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/user/organizations?username={username}```\n##### Response\n```JSON\n{\n    \"organizations\": 4\n}\n```\n\n\u003chr\u003e\n\n### Get streak information\n\n#### Gets the day with more commits\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/streak/maxcommit?username={username}```\n##### Response\n```JSON\n{\n    \"date\": \"2016-10-29\",\n    \"commit\": 64\n}\n```\n#### Gets all streak information\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/streak/full?username={username}```\n##### Response\n```JSON\n[\n    {\n        \"date\": \"2016-10-09\",\n        \"commit\": 0\n    },\n    {\n        \"date\": \"2016-10-10\",\n        \"commit\": 0\n    },\n    {\n        \"date\": \"2016-10-11\",\n        \"commit\": 0\n    },\n    {\n        \"date\": \"2016-10-12\",\n        \"commit\": 0\n    },\n    {\n        \"date\": \"2016-10-13\",\n        \"commit\": 0\n    }\n]\n```\n## How to solve the locale problem when I get the streak?\n\n#### Using VUE with axios\n*On the client side.*\n```JavaScript\nconst getCurrentStreak = axios.get(`https://legend-of-github-api.herokuapp.com/streak/full?username={username}`)\n.then(res =\u003e {\n        let currentStreak = []\n        let lastCommit = 0\n        res.data.forEach(function (data, index) {\n          const date = data.date\n          const currentCommit = data.commit\n          if (new Date(data.date.replace('-', '/')).getTime() \u003c= new Date().getTime()) {\n            if (currentCommit \u003e 0 \u0026\u0026 (lastCommit \u003e 0 || currentStreak.length === 0)) {\n              currentStreak.push({\n                date: date,\n                commit: currentCommit\n              })\n            } else {\n              currentStreak = []\n            }\n          }\n          lastCommit = data.commit\n        })\n        return currentStreak.length\n      }).catch(e =\u003e {\n        console.log(e)\n      })\n```\n\u003chr\u003e\n\n### Get contributions information\n\n#### Gets forks information\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/contributor/contributions?username={username}```\n##### Response\n```JSON\n{\n    \"information\": [\n        {\n            \"isContributor\": true,\n            \"repository\": \"relato-express\"\n        }\n    ]\n}\n```\n#### Gets contributions amount\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/contributor/amount?username={username}```\n##### Response\n```JSON\n{\n    \"contributionsAmount\": 1\n}\n```\n#### Gets the names of forks\n\n##### Request\n*```GET:```* ```https://legend-of-github-api.herokuapp.com/contributor/forks/names?username={username}```\n##### Response\n```JSON\n{\n    \"forks\": [\n        {\n            \"name\": \"relato-express\"\n        }\n    ]\n}\n```\n\n\u003chr\u003e\n\n### License\n\nIt is available under the MIT license.\n[License](https://opensource.org/licenses/mit-license.php)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikemajesty%2Fgithub-scrap-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikemajesty%2Fgithub-scrap-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikemajesty%2Fgithub-scrap-api/lists"}