Categories: Development

Olypi is a free Tokyo Olympics API

Olypi is a free to use Tokyo 2020 Olympics API for schedules, sports, events, weather and more.

No signup is required and no browser tracking is done.

The Data is “obtained” from the Tokyo Olympics website, whilst the weather is from openWeather.

Full list of endpoints.

Usage

Using the API is through GET requests only with a query done via the ?call= parameter on the data’s category.

id= can also be used for some calls when you want to be specific.

All data returned is in JSON format.

An example getting the information for sport with the id 28:

https://olypi.com/sports/?call=GetSport&id=28link

Or getting all the locations:

https://olypi.com/locations/?call=GetAllLocationslink

An example of the output from https://olypi.com/schedule/?call=SportEvents&id=28link

{
  "result": [
    {
      "id": 1259,
      "sport_id": 28,
      "event": "Women's 10km",
      "location_id": 27,
      "start": "2021-08-04 06:30:00",
      "end": "2021-08-04 09:10:00",
      "start_utc": "2021-08-03 20:30:00",
      "end_utc": "2021-08-03 23:10:00",
      "completed": false,
      "is_medal": false,
      "is_final": false,
      "is_ceremony": false
    },
    {
      "id": 1260,
      "sport_id": 28,
      "event": "Women's Victory Ceremony",
      "location_id": 27,
      "start": "2021-08-04 06:30:00",
      "end": "2021-08-04 09:10:00",
      "start_utc": "2021-08-03 20:30:00",
      "end_utc": "2021-08-03 23:10:00",
      "completed": false,
      "is_medal": false,
      "is_final": false,
      "is_ceremony": true
    },
    {
      "id": 1261,
      "sport_id": 28,
      "event": "Men's 10km",
      "location_id": 27,
      "start": "2021-08-05 06:30:00",
      "end": "2021-08-05 09:10:00",
      "start_utc": "2021-08-04 20:30:00",
      "end_utc": "2021-08-04 23:10:00",
      "completed": false,
      "is_medal": false,
      "is_final": false,
      "is_ceremony": false
    },
    {
      "id": 1262,
      "sport_id": 28,
      "event": "Men's Victory Ceremony",
      "location_id": 27,
      "start": "2021-08-05 06:30:00",
      "end": "2021-08-05 09:10:00",
      "start_utc": "2021-08-04 20:30:00",
      "end_utc": "2021-08-04 23:10:00",
      "completed": false,
      "is_medal": false,
      "is_final": false,
      "is_ceremony": true
    }
  ],
  "success": true,
  "call": "SportEvents",
  "id": 28
}

 

Share
Tags: APITokyoWeb

Recent Posts

Kennington reservoir drained drone images

A drained and empty Kennington reservoir images from a drone in early July 2024. The…

2 years ago

Merrimu Reservoir drone images

Merrimu Reservoir from drone. Click images to view larger.

2 years ago

Early September spring shots

Some early September spring shots from a bushwalk, It is still too early for wildflowers.

3 years ago

Cloning an NVMe to SK Hynix Platinum P41 NVMe

I recently needed to clone over a smaller NVMe to a 2TB SK Hynix Platinum…

3 years ago

Using Laravel’s deleteDirectory to delete folders and their contents

If you ever needed a simple solution in Laravel to delete an entire directory and…

3 years ago

How to allow only 1 user to register in a Laravel application

How to enforce only one user to register or be registered in a Laravel web…

3 years ago