Bored API Documentation

Base URL

https://bored-backend.vercel.app/api

Endpoints

GET /randomactivity

Returns a random activity.

Response

{
  "activity": "Learn a new programming language",
  "type": "education",
  "participants": 1,
  "price": 0,
  "link": "",
  "key": "3943506",
  "accessibility": 0.1
}

GET /activity?type=:type

Returns a random activity of the specified type.

Parameters

Response

{
  "activity": "Write a short story",
  "type": "recreational",
  "participants": 1,
  "price": 0,
  "link": "",
  "key": "1234567",
  "accessibility": 0.1
}

POST /activity

Adds an activity to the database.

Sources

Originally based on drewthonnes' Bored-API that stopped working in 2024. Credit is also due to The AppBrewery and ChatGPT.
Made for educatinoal purposes, check out the code at my GitHub.