{"id":16377326,"url":"https://github.com/electroid/mojang-api","last_synced_at":"2025-08-07T02:13:52.984Z","repository":{"id":40458139,"uuid":"138681080","full_name":"Electroid/mojang-api","owner":"Electroid","description":"Bundle multiple Minecraft APIs into a single GET request.","archived":false,"fork":false,"pushed_at":"2023-09-10T00:35:37.000Z","size":659,"stargazers_count":256,"open_issues_count":28,"forks_count":17,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-22T17:47:39.174Z","etag":null,"topics":["cloudflare-worker","coffeescript","minecraft","mojang"],"latest_commit_sha":null,"homepage":"https://api.ashcon.app/mojang/v2/user/Notch","language":"CoffeeScript","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/Electroid.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":"2018-06-26T03:40:05.000Z","updated_at":"2025-07-11T16:22:56.000Z","dependencies_parsed_at":"2024-11-29T15:02:28.222Z","dependency_job_id":null,"html_url":"https://github.com/Electroid/mojang-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Electroid/mojang-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electroid%2Fmojang-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electroid%2Fmojang-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electroid%2Fmojang-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electroid%2Fmojang-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Electroid","download_url":"https://codeload.github.com/Electroid/mojang-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electroid%2Fmojang-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269185726,"owners_count":24374634,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cloudflare-worker","coffeescript","minecraft","mojang"],"created_at":"2024-10-11T03:42:55.107Z","updated_at":"2025-08-07T02:13:52.939Z","avatar_url":"https://github.com/Electroid.png","language":"CoffeeScript","readme":"# mojang-api\nJavascript microservice that bundles multiple Mojang APIs into a single GET request.\n\n### Purpose\n\nMojang, the developers of [Minecraft](https://en.wikipedia.org/wiki/Minecraft), provides [multiple APIs](http://wiki.vg/Mojang_API) for websites and servers to fetch identity information about users. Requests do not accept authentication tokens, however they are heavily rate limited and fragmented among several endpoints. The purpose of this project is to package several of the most commonly used APIs into a single GET request with no rate limiting and no need for client-side caching.\n\nI have deployed this on my personal domain `ashcon.app` and am opening it up for the internet to use for free. It runs using [Cloudflare Workers](https://developers.cloudflare.com/workers/about/), which are Javascript functions that live in the closest datacenter to your request. The API is currently handling 1M+ requests per day with an average response time of 200ms and a \u003c 0.0001% error rate.\n\n### Single Request *(now)*\n\nUsername or UUID -\u003e Everything\u003cbr\u003e\n[https://api.ashcon.app/mojang/v2/user/[username|uuid]](https://api.ashcon.app/mojang/v2/user/Notch) `(click for example)`\n```\n{\n  \"uuid\": \u003cuuid\u003e,\n  \"username\": \u003cusername\u003e,\n  \"username_history\": [\n    {\n      \"username\": \u003cusername\u003e,\n      \"changed_at\": \u003cdate|null\u003e\n    }\n  ],\n  \"textures\": {\n    \"slim\": \u003cboolean\u003e,\n    \"custom\": \u003cboolean\u003e,\n    \"skin\": {\n      \"url\": \u003curl\u003e,\n      \"data\": \u003cbase64\u003e\n    },\n    \"cape\": {\n      \"url\": \u003curl|null\u003e,\n      \"data\": \u003cbase64|null\u003e\n    },\n    \"raw\": {\n      \"value\": \u003cbase64\u003e,\n      \"signature\": \u003cbase64\u003e\n    }\n  },\n  \"legacy\": \u003ctrue|null\u003e,\n  \"demo\": \u003ctrue|null\u003e,\n  \"created_at\": \u003cdate|null\u003e\n}\n```\n\n### Multiple Requests *(before)*\n\nUsername -\u003e UUID\u003cbr\u003e\n[https://api.mojang.com/users/profiles/minecraft/[username]](https://api.mojang.com/users/profiles/minecraft/ElectroidFilms)\n```\n{\n  \"id\": \u003cuuid\u003e,\n  \"name\": \u003cusername\u003e\n}\n```\nUUID -\u003e Username History\u003cbr\u003e\n[https://api.mojang.com/user/profiles/[uuid]/names](https://api.mojang.com/user/profiles/dad8b95ccf6a44df982e8c8dd70201e0/names)\n```\n[\n  {\n    \"name\": \u003cusername\u003e\n  },\n  {\n    \"name\": \u003cusername\u003e,\n    \"changedToAt\": \u003cinteger\u003e\n  }\n]\n```\nUUID -\u003e Profile + Textures\u003cbr\u003e\n[https://sessionserver.mojang.com/session/minecraft/profile/[uuid]](https://sessionserver.mojang.com/session/minecraft/profile/dad8b95ccf6a44df982e8c8dd70201e0)\n```\n{\n  \"id\": \u003cuuid\u003e,\n  \"name\": \u003cusername\u003e,\n  \"properties\": [\n    {\n      \"name\": \"textures\",\n      \"value\": \u003cbase64\u003e // Then decode the base64 string and make http requests to fetch the textures...\n    }\n  ]\n}\n```\n\n### Build\n\n```\nwrangler build\nwrangler preview\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectroid%2Fmojang-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felectroid%2Fmojang-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectroid%2Fmojang-api/lists"}