Skip to content

f9ki3/stardew-villagers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stardew Valley Villagers API

Author: Fyke Lleva

This API is created using Fast API it is a python library for creating Application Programming Interface. The goal of this API is to provide data related to Villagers in Stardew Valley Game. You can requests:

  1. bachelors Data
  2. bachelorettes Data
  3. none_marriage_candidates Data
  4. none_giftable_npcs Data

Getting Started

Setting up the environment

  1. You need to install fast api using pip
pip install fastapi
  1. Also need to install server to run the api
pip install uvicorn

How to run the code

  1. Open the repository to a text editor like Visual Studio Code or Pycharm
  2. Open the terminal and run this command:
uvicorn main:app --reload

How to request the data?

Getting all the villagers

Use this HTTP request to all villagers characters:

http://127.0.0.1:8000/villagers

Getting all the villagers using types:

  1. Bachelors
  2. Bachelorettes
  3. None Marriage Candidate
  4. Non-giftable NPCs

Use this HTTP request to villagers and pass a parameters as {type}:

http://127.0.0.1:8000/villagers/{type}

Getting specific villagers:

Use this HTTP request to villagers and pass a parameters as {type} and {id}:

http://127.0.0.1:8000/villagers/{type}/{id}

How to request the data online

Getting all the villagers

Use this HTTP request to all villagers characters:

https://stardew-villagers/villagers

Getting all the villagers using types:

  1. Bachelors
  2. Bachelorettes
  3. None Marriage Candidate
  4. Non-giftable NPCs

Use this HTTP request to villagers and pass a parameters as {type}:

https://stardew-villagers/villagers/{type}

Getting specific villagers:

Use this HTTP request to villagers and pass a parameters as {type} and {id}:

https://stardew-villagers.onrender.com/villagers/{type}/{id}

Contact

Feel free to reach out if you have any questions or suggestions:

Thank you for exploring my Python Fast API!

Visit the actual documentation (https://stardew-villagers.onrender.com/docs)

About

Stardew Valley the Villagers API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published