Tournament API

How to use the API to interact with the website.

Endpoints

Most endpoints are documented in the Swagger UI, which is available here:

Python Client

The crunch-cli offer an API client to easily use do action on the platform:

Usage

The following code export the all the leaderboards from the ADIA Lab Structural Break competition:

The Client.from_env() function will search for the CRUNCH_API_KEY environment variable.

Features

  • Fluent syntax

  • Frequently used routines

  • Typing

  • Maintained by us and always up-to-date

  • Error classes, for easier try-except

Authentication

There are multiple ways to authenticate:

Token Type
Header
Query Parameter

API Key

Authorization: API-Key <token>

?apiKey=<token>

Access Token

Authorization: Bearer <token>

?accessToken=<token>

You can generate an API-Key in the API Management section of your account.

Error

Any message that does not return a 2XX or 3XX error code is considered an error.

All errors are formatted in the following way:

Last updated