Unofficial API for Super Smash Bros. Ultimate Fighters, implementing web scrapping from Fighters | Super Smash Bros. Ultimate - Official Site.
This project was developed with Javascript, using Puppeteer and Express.js, currently hosted here with Render.
Note
Pull request are welcome to help the API grow.
Warning
Because of the application being hosted in Render, sometimes request may take 50 seconds or more to be completed, if you don't want this, run the project locally.
- You can use the API making a request to the hosted Render domain.
- You can clone the project locally and follow the next steps.
-
Clone the project.
-
Install dependencies.
npm install
Note
The current API Fighters data will be inside characters.json
.
-
If you want to get the data again, using Puppeteer to perform web scrapping, use the seed command, this will execute the code inside
seed.js
.npm run seed
-
If you only want to start making requests you can run the Express.js API by running the start command.
npm run start
Currently GET requests are permitted to get ALL of the fighters and get fighters by their fighterNumber
Request Type | Endpoint | Description |
---|---|---|
GET | /api/characters | GET all fighters |
GET | /api/characters/[id] | GET specific fighter by their id(fighterNumber) |
GET | /api/characters/series/[seriesName] | GET specific series by their id |
GET | /api/characters/name/[name] | GET specific fighter by name |