Skip to content
Frist6361Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft API

5fe56758-0c7e-4223-afd3-140bc0173b17 9b14c44e-94a6-4c24-9640-a66f7bb34b06 image

An API for retrieving Minecraft player skins and item images.

Installation

  1. Clone the repository:
git clone https://github.com/Frist6361/mine-api.git
cd mine-api
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the server:
python main.py

The API will be available at http://localhost:8000

Usage

Retrieving Player Skin

  1. Get the front of the skin:
GET /skin/{nickname}/front
  1. Get the back of the skin:
GET /skin/{nickname}/back
  1. Get the head of the skin:
GET /skin/{nickname}/head

Example:

curl http://localhost:8000/skin/Fristikon/front

Retrieving Item Images

  1. Get a list of all available items:
GET /items
  1. Get an image of a specific item:
GET /item/{item_name}
  1. 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_roots

API Documentation

After starting the server, the API documentation is available at:

  • Swagger UI: http://localhost:8000/docs
  • ReDoc: http://localhost:8000/redoc

Data Sources

  • Player skins: Official Mojang API
  • Item textures: Local textures from downloaded files

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages