Skip to content

Davvii1/super-smash-bros-ultimate-api

Repository files navigation

Super Smash Bros. Ultimate API

SSBU Logo

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.

Table of content

Using the API

  1. You can use the API making a request to the hosted Render domain.
  2. You can clone the project locally and follow the next steps.

Run project locally

  1. Clone the project.

  2. Install dependencies.

    npm install
    

Note

The current API Fighters data will be inside characters.json.

  1. 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
    
  2. If you only want to start making requests you can run the Express.js API by running the start command.

    npm run start
    

Supported Requests

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