Query basic Pal stats and Pal breeding combinations
To start using the API, follow these steps:
- Sign up for RapidAPI.
- Subscribe to the Palworld API.
- Obtain your API key from RapidAPI.
- Make requests to the desired endpoints.
Please visit RapidAPI for usage.
The API uses API key authentication. To authenticate your requests, include your API key in the request headers.
100 requests per day. Might change this later.
Current parameters include the following:
{
"data": {
"id": 1,
"image": "https://static.wikia.nocookie.net/palworld/images/0/01/Lamball_menu.png/",
"pal": "Lamball",
"wiki": "https://palworld.fandom.com/wiki/Lamball"
},
"status": "success"
}
{
"data": {
"id": 1,
"pal": "Lamball",
"skills": {
"skill_0": {
"desc": "Lamball's special skill. Curls into a ball, rolling after any enemies in its way. Becomes dizzy and unable to move after the attack ends.",
"name": "roly_poly",
"power": 35,
"type": "neutral"
},
...
}
},
"status": "success"
}
{
"data": {
"genus": "humanoid",
"id": 1,
"name": "Lamball",
"price": 1000,
"rarity": 1,
"size": "xs",
"type_0": "neutral",
"type_1": null
},
"status": "success"
}
{
"father": "Lamball",
"mother": "Cattiva"
}
{
"data": {
"drop 0": "wool",
"drop 1": "lamball_mutton",
"drop 2": null,
"drop 3": null,
"id": 1,
"name": "Lamball"
},
"status": "success"
}
{
"data": {
"id": 1,
"level_0": 1,
"level_1": 1,
"level_2": 1,
"level_3": null,
"level_4": null,
"level_5": null,
"level_6": null,
"name": "Lamball",
"suitability_0": "handiwork",
"suitability_1": "transporting",
"suitability_2": "farming",
"suitability_3": null,
"suitability_4": null,
"suitability_5": null,
"suitability_6": null
},
"status": "success"
}
You will need to manually migrate the data found in data into a postgress DB. The table names are the same as the file names. Put your db instance url in a .env file in the root directory of the project.
palworld-api
|
├── .env
├── .git
├── .gitignore
├── Cargo.lock
├── Cargo.toml
├── Dockerfile
├── data
├── src
└── target
The variable should be set up as follows.
DATABASE_URL=[your database url]
To build the project just run:
cargo run
You can thest endpoints via curl or postman
curl localhost:8000/api/pal_suitabilities/Lamball
Please follow these steps
- Create a new branch for your feature or bug fix.
- Make your changes and create PR
- I'll review the PR and once it gets merged an automatic build will start and deploy to google cloud