Skip to content

Hyperplanning

The /hyperplanning endpoint allows you to display a Hyperplanning schedule information in JSON format from an ICS (calendar) file.

Parameters

ParameterRequiredDescription
urlYesThe URL of the ICS file to use and display. Must be URL-encoded before being sent
detailNoLevel of detail for events (full or list)

Detail Options

OptionDescription
fullDisplays a complete summary with subject, teacher, classes, date, etc.
listDisplays all data in a list

Code Examples

curl -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https%3A%2F%2Fexample.com%2Ffile.ics",
    "detail": "full"
  }' \
  "https://api.sylvain.sh/v4/hyperplanning"

Response Fields

The response format depends on the detail parameter:

detail=full

FieldTypeDescription
summarystring[]Array of summary elements
subjectstringSubject name
teacherstringTeacher name
classesstring[]Array of class names
typestringEvent type
startstringEvent start time (ISO 8601)
endstringEvent end time (ISO 8601)

detail=list

FieldTypeDescription
summarystring[]Array of summary elements
startstringEvent start time (ISO 8601)
endstringEvent end time (ISO 8601)

Default (no detail parameter)

FieldTypeDescription
summarystringEvent summary
startstringEvent start time (ISO 8601)
endstringEvent end time (ISO 8601)

Try It

Error Handling

If parameters are missing or invalid, the API will return an error:

Error MessageDescription
Please provide a valid ICS file URL (?url={URL})The url parameter is missing or invalid