An API for retrieving Minecraft player skins and item images.
- Clone the repository:
git clone https://github.com/Frist6361/mine-api.git
cd mine-api- Install dependencies:
pip install -r requirements.txt- Run the server:
python main.pyThe API will be available at http://localhost:8000
- Get the front of the skin:
GET /skin/{nickname}/front
- Get the back of the skin:
GET /skin/{nickname}/back
- Get the head of the skin:
GET /skin/{nickname}/head
Example:
curl http://localhost:8000/skin/Fristikon/front- Get a list of all available items:
GET /items
- Get an image of a specific item:
GET /item/{item_name}
- Get an image of a block:
GET /block/{block_name}
The item or block name should be in snake_case format, for example: diamond_sword or hanging_roots.
Examples:
# Get a list of all items
curl http://localhost:8000/items
# Get an image of a diamond sword
curl http://localhost:8000/item/diamond_sword
# Get an image of a grass block
curl http://localhost:8000/block/hanging_rootsAfter starting the server, the API documentation is available at:
- Swagger UI:
http://localhost:8000/docs - ReDoc:
http://localhost:8000/redoc
- Player skins: Official Mojang API
- Item textures: Local textures from downloaded files
MIT


