API Documentation: Get Level Information
Endpoint
URL:
https://db.lilacdancecenter.com/api/getlevelget_level
Method:
GET
Query Parameters
| Parameter | Type | Description |
|---|---|---|
|
String | The dancer's first name. Required. |
|
String | The dancer's last name. Required. |
|
Example Request:
https://db.lilacdancecenter.com/api/getlevel?firstName=first_name=John&lastName=last_name=Doe
https://db.lilacdancecenter.com/api/getlevel?firstName=John&lastName=Doe&majority=3
Response
The endpoint returns a JSON object containing the dancer's levels for each dance style and their first competition date.
JSON Response Format
{
"smoothLevel"smooth_level": "bronze",
"standardLevel"standard_level": "silver",
"rhythmLevel"rhythm_level": "silver",
"latinLevel"latin_level": "bronze",
"startDate"start_date": "2024-10-192022-03-12T00:00:00.000-05:00",
"level_dates" {
"smooth": {
"newcomer": {
"date": "2022-03-12T00:00:00:0000.000-05:00",
UTC""event_id": 72276,
},
"bronze": { ... },
...
},
"standard": { ... },
...
}
}
Response Parameters
| Field | Type | Description |
|---|---|---|
|
String | The level of the dancer in Smooth style (e.g., bronze, silver, etc.). |
|
String | The level of the dancer in Standard style (e.g., bronze, silver, etc.). |
|
String | The level of the dancer in Rhythm style (e.g., bronze, silver, etc.). |
|
String | The level of the dancer in Latin style (e.g., bronze, silver, etc.). |
|
Date String | The UTC timestamp of the dancer's first competition in the format YYYY-MM-. Ex: 2022-03-12T00:00:00.000-05:00 |
level_dates |
Nested Dictionary | Contains the dates at which this individual reached a level, per style. Also includes the LilacDB event id that caused the level increase for those curious. Event id use: https://db.lilacdancecenter.com/events?event_id=xxxxx |
Behavior
- The API retrieves the levels associated with the provided dancer's first and last name.
- The
field corresponds to the date and time of the dancer's first competitionstartDatestart_date, stored in UTC format..
Example Usage
Request:
GET https://db.lilacdancecenter.com/api/getlevel?firstName=get_level?first_name=Jane&lastName=last_name=Doe
Response:
{
"smoothLevel"smooth_level": "silver",
"standardLevel"standard_level": "gold",
"rhythmLevel"rhythm_level": "bronze",
"latinLevel"latin_level": "silver",
"startDate"start_date": "2023-06-1515T00:00:00.000-05:00",
00:00:00"level_dates": UTC"{ ... }
}
This response indicates that:
- The dancer "Jane Doe" has the following dance levels:
- Smooth: Silver
- Standard: Gold
- Rhythm: Bronze
- Latin: Silver
- Their first competition took place on June 15, 2023.
Notes
Ensure that bothfirstNameandlastNameparameters are provided; otherwise, the API will not return a valid response.The first and last name of the dancermusthave proper capitalization.- Levels are categorized into predefined tiers such as bronze, silver, or gold, as detailed in the MIT Ballroom Dance Team's About YCN Points