Skip to content

A simple and free API to find things to do when you're bored

License

Notifications You must be signed in to change notification settings

uszkaisandor/Bored-API

Repository files navigation

Bored API

Find something better to do faster

About

This project is a server-side rendered Express.js app that has a goal of creating a simple way to find things to do.

Endpoints

The full documentation can be found here, but listed below are a few of the endpoints

Random event

Gets a random event

/api/activity/

Response:

{
  "activity": "Learn Express.js",
  "accessibility": 0.25,
  "type": "education",
  "participants": 1,
  "price": 0.1,
  "link": "https://expressjs.com/",
  "key": "3943506"
}

Get by type

Query for events by a certain type

/api/activity?type=:type

Response:

{
  "activity": "Learn how to play a new sport",
  "accessibility": 0.2,
  "type": "sports",
  "participants": 1,
  "price": 0.1,
  "key": "5808228"
}

Using

To set up your own Bored API, clone the app and run:

npm install
# Start MongoDB
npm run prod
# App started on port 8080

Contributing

All help is welcome! A pull request or a new issue respectively would be very appreciated. If you want to add more activities, add them to database.json and make a pull request.

About

A simple and free API to find things to do when you're bored

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.0%
  • Vue 31.5%
  • HTML 0.5%