API documentation
Fedocal provides a small read-only API.
The API supports GET and POST requests with the same arguments.
A trailing slash is optional on all API endpoints. There is no difference between using one and not using one.
Responses are always served as application/json
(unless JSONP
is explicitly requested, in which case fedocal returns the
appropriate application/javascript
).
Retrieve calendars
The /api/calendars/
endpoint returns the meetings meeting the
provided criteria.
Response format
Sample response:
Retrieve meetings
The /api/meetings/
endpoint returns the meetings meeting the
provided criteria.
Response format
Sample response:
The meeting_time_start
, meeting_time_end
, meeting_date
and
meeting_date_end
contain time in "UTC". The meeting_timezone
indicates
the timezone the meeting is registered with. If the meeting_timezone
is not
"UTC", the meeting time will change according to DST rules of the specified
timezone.
The arguments
item in the root dictionary contains all possible
arguments, and displays the value used (the default if the argument
was not provided).
Time arguments
Below is a table describing what timeframe messages are received from depending on what combination of time options you provide.
start |
end |
Message timeframe |
---|---|---|
no | no | the last 30 days and the coming 180 days |
yes | no | from start until the coming 180 days |
no | yes | the last 30 days until end |
yes | yes | between start and end |
start
Return results starting at date
start
(prefered format is "+%Y-%m-%d" seedate "+%Y-%m-%d"
).Default: 30 days ago
date "+%Y-%m-%d" -d "30 days ago"
end
Return results ending at date
end
(prefered format is "+%Y-%m-%d" seedate "+%Y-%m-%d"
).Default: coming 180 days
date "+%Y-%m-%d" -d "180 days"
Filter arguments
calendar
Restrict the meetings to a specific calendar.
Default: all calendars
region
Restrict the meeting to a specific region.
If the calendar does not have support for regions enabled, no meetings will be found matching this criteria and no meetings will be returned.
Default: all regions