Bored API Documentation

Welcome to the Bored API by the App Brewery. This is a teaching tool for students of the App Brewery. API Requests are rate limited to 100 requests every 15 minutes.

Get a Random Activity

Returns a randomly selected activity from the available activities.

Example Request:

GET https://bored-api.appbrewery.com/random

Example Response:

{
  "activity": "Learn Express.js",
  "availability": 0.25,
  "type": "education",
  "participants": 1,
  "price": 0.1,
  "accessibility": "Few to no challenges",
  "duration": "hours",
  "kidFriendly": true,
  "link": "https://expressjs.com/",
  "key": "3943506"
}

Filter Activities

Returns a list of activities filtered by type and/or participants.

Query Parameters:

Example Request:

GET https://bored-api.appbrewery.com/filter?type=education

Example Response:

[
  {
    "activity": "Learn Express.js",
    "availability": 0.25,
    "type": "education",
    "participants": 1,
    "price": 0.1,
    "accessibility": "Few to no challenges",
    "duration": "hours",
    "kidFriendly": true,
    "link": "https://expressjs.com/",
    "key": "3943506"
  },
  {
    "activity": "Learn React.js",
    "availability": 0.5,
    "type": "education",
    "participants": 1,
    "price": 0.2,
    "accessibility": "Some challenges",
    "duration": "hours",
    "kidFriendly": true,
    "link": "https://reactjs.org/",
    "key": "7890123"
  }
]

Get Activity by Key

Returns the activity with the specified key.

URL Parameters:

Example Request:

GET https://bored-api.appbrewery.com/activity/3943506

Example Response:

{
  "activity": "Learn Express.js",
  "availability": 0.25,
  "type": "education",
  "participants": 1,
  "price": 0.1,
  "accessibility": "Few to no challenges",
  "duration": "hours",
  "kidFriendly": true,
  "link": "https://expressjs.com/",
  "key": "3943506"
}