This API endpoint allows reading a list of events from a calendar.
Available Endpoints
Read
GET
http://events.unl.edu/api/v2/calendar/{calendar_id}/events/
This endpoint is for getting a list of posted events from a calendar. This will include past events that may have already occurred.
HTTP Method
GET
Authentication Requirements
None
Request Data
-
calendar_id
string | number Required PathID or shortname of the calendar the events will be from. This will go into the path of the request. -
limit
number queryThis is the number of events you want to receive. Max limit is 500 and default is 100. -
offset
number queryThis offset is to be used to get the next batch of events beyond the initial limit.
Response Data
-
Status
numberStatus code for the request. -
Message
stringStatus message for the request. -
Data
Array of Event Objects | nullThe list of the calendar's events data or null on error.-
id
stringThe ID of the event. -
title
string | nullThe title of the event or null if none is set. -
subtitle
string | nullThe subtitle of the event or null if none is set. -
description
string | nullThe description of the event or null if none is set. -
webpage
string | nullThe webpage of the event or null if none is set. This will always be a URL. -
private-public
'private' | 'public' | nullThe status of the event's publicity or null if none is set. This will always be public or private. -
listing-contact-name
string | nullThe event's listed contact's name or null if none is set. -
listing-contact-phone
string | nullThe event's listed contact's phone number or null if none is set. -
listing-contact-email
string | nullThe event's listed contact's email or null if none is set. -
listing-contact-url
string | nullThe event's listed contact's url or null if none is set. This will always be a URL. -
listing-contact-type
'person' | 'organization' | nullThe type of the event's listed contact or null if none is set. This will always be a person or organization. -
canceled
boolIf the event has been canceled. -
calendar-event-status
stringThe event status of that event on that calendar. -
original-calendar
Calendar ObjectThe original calendar the event was posted on.-
id
stringThe ID of the calendar. -
name
stringThe name of the calendar. -
short-name
stringThe short name of the calendar. This can be used in the URL of other events API v2 requests. -
default-timezone
stringThe default timezone of the calendar. This can be overridden by event's data times. -
webpage
string | nullThe webpage of the calendar or null if none is set. -
email-list
string | nullThe list of emails for the calendar or null if none is set. Emails will be separated by commas. -
event-release-preference
stringThe release process for events after they are created on the calendar. -
recommendations-within-account
boolWhether users on the same account can recommend events to this calendar.
-
-
eventtypes
Array of Event Type ObjectsA list of all the event types this event has attached to it. This list will only have one item in it.-
ID
StringID of the event type record. -
Name
StringName of the event type record.
-
-
audiences
Array of Audience ObjectsA list of all the audiences this event has attached to it.-
ID
StringID of the audience record. -
Name
StringName of the audience record.
-
-
image-url
string | nullThe URL of the image of the event or null if none are set. This will always be a URL. -
occurrences
Array of Event Occurrence ObjectsA list of all the occurrences of the event.-
id
stringThe ID of the occurrence date time. This ID can be used to look up events. -
start-time
stringThe start time of the occurrence date time. This is in the ISO 8601 format. -
end-time
string | nullThe end time of the occurrence date time or null if none is set. This is in the ISO 8601 format. -
is-all-day
boolWhether the event occurrence is all day or at a specific time. -
event-timezone
stringThe timezone of the event occurrence. This will override the calendar's default timezone. -
is-recurring
boolWhether the event occurrence has recurrences or not. -
canceled
boolWhether the event occurrence has been canceled or not. -
event-additional-public-info
string | nullThe additional info for the event occurrence or null if none is set. -
event-room
string | nullThe room the event occurrence will take place or null if none is set. This will override the location's room. -
event-directions
string | nullThe directions for the event occurrence or null if none is set. This will override the location's directions. -
event-location-additional-public-info
string | nullThe additional info for the event occurrence's location or null if none is set. This will override the location's additional public info. -
event-virtual-additional-public-info
string | nullThe additional info for the event occurrence's virtual location or null if none is set. This will override the virtual location's additional public info. -
location
Location Object | nullThe location of the event occurrence or null if none is set.-
id
stringThe ID of the location. -
name
string | nullThe name of the location or null if none is set. -
address-1
string | nullThe street address of the location or null if none is set. -
address-2
string | nullThe additional address of the location or null if none is set. -
city
string | nullThe city of the location or null if none is set. -
state
string | nullThe state of the location or null if none is set. This will always be the 2 letter abbreviation of the state. -
zip
string | nullThe zip of the location or null if none is set. This will always be ≤ 10 characters long. -
map-url
string | nullThe url of the map graphical interface of the location or null if none is set. This will always be a URL. -
webpage
string | nullThe web page of the location or null if none is set. This will always be a URL. -
hours
string | nullThe hours of the location or null if none is set. -
phone
string | nullThe phone number of the location or null if none is set. -
default-room
string | nullThe room of the location or null if none is set. This will be overridden on events.unl.edu if the event has a room set. -
default-directions
string | nullThe directions of the location or null if none is set. This will be overridden on events.unl.edu if the event has a directions set. -
default-additional-public-info
string | nullThe additional public info of the location or null if none is set. This will be overridden on events.unl.edu if the event has specific location additional public info set. -
user-id
string | nullThe user UID that the location is saved to or null if none is set. -
calendar-id
string | nullThe calendar ID that the location is saved to or null if none is set.
-
-
virtual-location
Virtual Location Object | nullThe virtual location of the event occurrence or null if none is set.-
id
stringThe ID of the virtual location. -
name
stringThe name of the virtual location. -
url
stringThe url of the virtual location. -
default-additional-public-info
string | nullThe additional public info of the virtual location or null if none is set. This will be overridden on events.unl.edu if the event has specific virtual location additional public info set. -
user-id
string | nullThe user UID that the virtual location is saved to or null if none is set. -
calendar-id
string | nullThe calendar ID that the virtual location is saved to or null if none is set.
-
-
recurring-dates
Array of Recurrence ObjectsA list of the event occurrence recurrences.-
id
stringThe ID of the recurrence record. This ID can be used to look up events. -
recurring-date
stringThe date of the recurrence. This is in YYYY-MM-DD format. -
recurrence-id
stringThe ID of the recurrence relative to the occurrence. -
ongoing
boolWhether the recurrence is ongoing. -
canceled
boolWhether this recurrence is canceled or not.
-
-
-
Example Code
async function eventsAPI() { const response = await fetch('https://events.unl.edu/api/v2/calendar/3809/events/'); // const response = await fetch('https://events.unl.edu/api/v2/calendar/wdn_monthly/events/'); if (response.ok) { const response_json = await response.json(); console.log(response_json.data); } }
curl -X GET 'https://events.unl.edu/api/v2/calendar/3809/events/'
function eventsAPI() { $url = 'https://events.unl.edu/api/v2/calendar/3809/events/'; // $url = 'https://events.unl.edu/api/v2/calendar/wdn_monthly/events/'; // Make an HTTP GET request using file_get_contents $response = file_get_contents($url); if ($response !== false) { // Decode the JSON response $responseData = json_decode($response, true); // Check if JSON decoding was successful if ($responseData !== null) { // Access the 'data' field in the response JSON var_dump($responseData); } else { echo 'JSON decoding error'; } } else { echo 'Error fetching data'; } }
Read (Search)
GET
http://events.unl.edu/api/v2/calendar/{calendar_id}/events/search/
This endpoint will preform a search on the calendar's events. These will be the same results as preforming a search on the events website.
HTTP Method
GET
Authentication Requirements
None
Request Data
-
calendar_id
string | number Required PathID or shortname of the calendar the events will be from. This will go into the path of the request. -
q
string queryThe search query to preform. This could be a string to search for, a date or date range, or a location or virtual location name. -
limit
number queryThis is the number of events you want to receive. Max limit is 500 and default is 100. -
offset
number queryThis offset is to be used to get the next batch of events beyond the initial limit. -
audience
string queryFilters searched events based on their audiences. This will be the name of the audiences and to add multiple they will ne comma separated. -
type
string queryFilters searched events based on their event type. This will be the name of the event types and to add multiple they will ne comma separated.
Response Data
-
Status
numberStatus code for the request. -
Message
stringStatus message for the request. -
Data
Array of Event Objects | nullThe list of the calendar's events data or null on error.-
id
stringThe ID of the event. -
title
string | nullThe title of the event or null if none is set. -
subtitle
string | nullThe subtitle of the event or null if none is set. -
description
string | nullThe description of the event or null if none is set. -
webpage
string | nullThe webpage of the event or null if none is set. This will always be a URL. -
private-public
'private' | 'public' | nullThe status of the event's publicity or null if none is set. This will always be public or private. -
listing-contact-name
string | nullThe event's listed contact's name or null if none is set. -
listing-contact-phone
string | nullThe event's listed contact's phone number or null if none is set. -
listing-contact-email
string | nullThe event's listed contact's email or null if none is set. -
listing-contact-url
string | nullThe event's listed contact's url or null if none is set. This will always be a URL. -
listing-contact-type
'person' | 'organization' | nullThe type of the event's listed contact or null if none is set. This will always be a person or organization. -
canceled
boolIf the event has been canceled. -
calendar-event-status
stringThe event status of that event on that calendar. -
original-calendar
Calendar ObjectThe original calendar the event was posted on.-
id
stringThe ID of the calendar. -
name
stringThe name of the calendar. -
short-name
stringThe short name of the calendar. This can be used in the URL of other events API v2 requests. -
default-timezone
stringThe default timezone of the calendar. This can be overridden by event's data times. -
webpage
string | nullThe webpage of the calendar or null if none is set. -
email-list
string | nullThe list of emails for the calendar or null if none is set. Emails will be separated by commas. -
event-release-preference
stringThe release process for events after they are created on the calendar. -
recommendations-within-account
boolWhether users on the same account can recommend events to this calendar.
-
-
eventtypes
Array of Event Type ObjectsA list of all the event types this event has attached to it. This list will only have one item in it.-
ID
StringID of the event type record. -
Name
StringName of the event type record.
-
-
audiences
Array of Audience ObjectsA list of all the audiences this event has attached to it.-
ID
StringID of the audience record. -
Name
StringName of the audience record.
-
-
image-url
string | nullThe URL of the image of the event or null if none are set. This will always be a URL. -
occurrences
Array of Event Occurrence ObjectsA list of all the occurrences of the event.-
id
stringThe ID of the occurrence date time. This ID can be used to look up events. -
start-time
stringThe start time of the occurrence date time. This is in the ISO 8601 format. -
end-time
string | nullThe end time of the occurrence date time or null if none is set. This is in the ISO 8601 format. -
is-all-day
boolWhether the event occurrence is all day or at a specific time. -
event-timezone
stringThe timezone of the event occurrence. This will override the calendar's default timezone. -
is-recurring
boolWhether the event occurrence has recurrences or not. -
canceled
boolWhether the event occurrence has been canceled or not. -
event-additional-public-info
string | nullThe additional info for the event occurrence or null if none is set. -
event-room
string | nullThe room the event occurrence will take place or null if none is set. This will override the location's room. -
event-directions
string | nullThe directions for the event occurrence or null if none is set. This will override the location's directions. -
event-location-additional-public-info
string | nullThe additional info for the event occurrence's location or null if none is set. This will override the location's additional public info. -
event-virtual-additional-public-info
string | nullThe additional info for the event occurrence's virtual location or null if none is set. This will override the virtual location's additional public info. -
location
Location Object | nullThe location of the event occurrence or null if none is set.-
id
stringThe ID of the location. -
name
string | nullThe name of the location or null if none is set. -
address-1
string | nullThe street address of the location or null if none is set. -
address-2
string | nullThe additional address of the location or null if none is set. -
city
string | nullThe city of the location or null if none is set. -
state
string | nullThe state of the location or null if none is set. This will always be the 2 letter abbreviation of the state. -
zip
string | nullThe zip of the location or null if none is set. This will always be ≤ 10 characters long. -
map-url
string | nullThe url of the map graphical interface of the location or null if none is set. This will always be a URL. -
webpage
string | nullThe web page of the location or null if none is set. This will always be a URL. -
hours
string | nullThe hours of the location or null if none is set. -
phone
string | nullThe phone number of the location or null if none is set. -
default-room
string | nullThe room of the location or null if none is set. This will be overridden on events.unl.edu if the event has a room set. -
default-directions
string | nullThe directions of the location or null if none is set. This will be overridden on events.unl.edu if the event has a directions set. -
default-additional-public-info
string | nullThe additional public info of the location or null if none is set. This will be overridden on events.unl.edu if the event has specific location additional public info set. -
user-id
string | nullThe user UID that the location is saved to or null if none is set. -
calendar-id
string | nullThe calendar ID that the location is saved to or null if none is set.
-
-
virtual-location
Virtual Location Object | nullThe virtual location of the event occurrence or null if none is set.-
id
stringThe ID of the virtual location. -
name
stringThe name of the virtual location. -
url
stringThe url of the virtual location. -
default-additional-public-info
string | nullThe additional public info of the virtual location or null if none is set. This will be overridden on events.unl.edu if the event has specific virtual location additional public info set. -
user-id
string | nullThe user UID that the virtual location is saved to or null if none is set. -
calendar-id
string | nullThe calendar ID that the virtual location is saved to or null if none is set.
-
-
recurring-dates
Array of Recurrence ObjectsA list of the event occurrence recurrences.-
id
stringThe ID of the recurrence record. This ID can be used to look up events. -
recurring-date
stringThe date of the recurrence. This is in YYYY-MM-DD format. -
recurrence-id
stringThe ID of the recurrence relative to the occurrence. -
ongoing
boolWhether the recurrence is ongoing. -
canceled
boolWhether this recurrence is canceled or not.
-
-
-
Example Code
async function eventsAPI() { const response = await fetch('https://events.unl.edu/api/v2/calendar/3809/events/search/?q=wdn&audience=students,staff,faculty&type=meeting'); // const response = await fetch('https://events.unl.edu/api/v2/calendar/wdn_monthly/events/search/?q=wdn&audience=students,staff,faculty&type=meeting'); if (response.ok) { const response_json = await response.json(); console.log(response_json.data); } }
curl -X GET ''https://events.unl.edu/api/v2/calendar/3809/events/search/?q=wdn&audience=students,staff,faculty&type=meeting''
function eventsAPI() { $url = ''https://events.unl.edu/api/v2/calendar/3809/events/search/?q=wdn&audience=students,staff,faculty&type=meeting''; // $url = ''https://events.unl.edu/api/v2/calendar/wdn_monthly/events/search/?q=wdn&audience=students,staff,faculty&type=meeting''; // Make an HTTP GET request using file_get_contents $response = file_get_contents($url); if ($response !== false) { // Decode the JSON response $responseData = json_decode($response, true); // Check if JSON decoding was successful if ($responseData !== null) { // Access the 'data' field in the response JSON var_dump($responseData); } else { echo 'JSON decoding error'; } } else { echo 'Error fetching data'; } }
Read (By Location)
GET
http://events.unl.edu/api/v2/calendar/{calendar_id}/events/location/{location_id}/
This endpoint will find all events at a particular location by its id.
HTTP Method
GET
Authentication Requirements
None
Request Data
-
calendar_id
string | number Required PathID or shortname of the calendar the events will be from. This will go into the path of the request. -
location_id
number Required PathThe location to filter the events by.
Response Data
-
Status
numberStatus code for the request. -
Message
stringStatus message for the request. -
Data
Array of Event Objects | nullThe list of the calendar's events data or null on error.-
id
stringThe ID of the event. -
title
string | nullThe title of the event or null if none is set. -
subtitle
string | nullThe subtitle of the event or null if none is set. -
description
string | nullThe description of the event or null if none is set. -
webpage
string | nullThe webpage of the event or null if none is set. This will always be a URL. -
private-public
'private' | 'public' | nullThe status of the event's publicity or null if none is set. This will always be public or private. -
listing-contact-name
string | nullThe event's listed contact's name or null if none is set. -
listing-contact-phone
string | nullThe event's listed contact's phone number or null if none is set. -
listing-contact-email
string | nullThe event's listed contact's email or null if none is set. -
listing-contact-url
string | nullThe event's listed contact's url or null if none is set. This will always be a URL. -
listing-contact-type
'person' | 'organization' | nullThe type of the event's listed contact or null if none is set. This will always be a person or organization. -
canceled
boolIf the event has been canceled. -
calendar-event-status
stringThe event status of that event on that calendar. -
original-calendar
Calendar ObjectThe original calendar the event was posted on.-
id
stringThe ID of the calendar. -
name
stringThe name of the calendar. -
short-name
stringThe short name of the calendar. This can be used in the URL of other events API v2 requests. -
default-timezone
stringThe default timezone of the calendar. This can be overridden by event's data times. -
webpage
string | nullThe webpage of the calendar or null if none is set. -
email-list
string | nullThe list of emails for the calendar or null if none is set. Emails will be separated by commas. -
event-release-preference
stringThe release process for events after they are created on the calendar. -
recommendations-within-account
boolWhether users on the same account can recommend events to this calendar.
-
-
eventtypes
Array of Event Type ObjectsA list of all the event types this event has attached to it. This list will only have one item in it.-
ID
StringID of the event type record. -
Name
StringName of the event type record.
-
-
audiences
Array of Audience ObjectsA list of all the audiences this event has attached to it.-
ID
StringID of the audience record. -
Name
StringName of the audience record.
-
-
image-url
string | nullThe URL of the image of the event or null if none are set. This will always be a URL. -
occurrences
Array of Event Occurrence ObjectsA list of all the occurrences of the event.-
id
stringThe ID of the occurrence date time. This ID can be used to look up events. -
start-time
stringThe start time of the occurrence date time. This is in the ISO 8601 format. -
end-time
string | nullThe end time of the occurrence date time or null if none is set. This is in the ISO 8601 format. -
is-all-day
boolWhether the event occurrence is all day or at a specific time. -
event-timezone
stringThe timezone of the event occurrence. This will override the calendar's default timezone. -
is-recurring
boolWhether the event occurrence has recurrences or not. -
canceled
boolWhether the event occurrence has been canceled or not. -
event-additional-public-info
string | nullThe additional info for the event occurrence or null if none is set. -
event-room
string | nullThe room the event occurrence will take place or null if none is set. This will override the location's room. -
event-directions
string | nullThe directions for the event occurrence or null if none is set. This will override the location's directions. -
event-location-additional-public-info
string | nullThe additional info for the event occurrence's location or null if none is set. This will override the location's additional public info. -
event-virtual-additional-public-info
string | nullThe additional info for the event occurrence's virtual location or null if none is set. This will override the virtual location's additional public info. -
location
Location Object | nullThe location of the event occurrence or null if none is set.-
id
stringThe ID of the location. -
name
string | nullThe name of the location or null if none is set. -
address-1
string | nullThe street address of the location or null if none is set. -
address-2
string | nullThe additional address of the location or null if none is set. -
city
string | nullThe city of the location or null if none is set. -
state
string | nullThe state of the location or null if none is set. This will always be the 2 letter abbreviation of the state. -
zip
string | nullThe zip of the location or null if none is set. This will always be ≤ 10 characters long. -
map-url
string | nullThe url of the map graphical interface of the location or null if none is set. This will always be a URL. -
webpage
string | nullThe web page of the location or null if none is set. This will always be a URL. -
hours
string | nullThe hours of the location or null if none is set. -
phone
string | nullThe phone number of the location or null if none is set. -
default-room
string | nullThe room of the location or null if none is set. This will be overridden on events.unl.edu if the event has a room set. -
default-directions
string | nullThe directions of the location or null if none is set. This will be overridden on events.unl.edu if the event has a directions set. -
default-additional-public-info
string | nullThe additional public info of the location or null if none is set. This will be overridden on events.unl.edu if the event has specific location additional public info set. -
user-id
string | nullThe user UID that the location is saved to or null if none is set. -
calendar-id
string | nullThe calendar ID that the location is saved to or null if none is set.
-
-
virtual-location
Virtual Location Object | nullThe virtual location of the event occurrence or null if none is set.-
id
stringThe ID of the virtual location. -
name
stringThe name of the virtual location. -
url
stringThe url of the virtual location. -
default-additional-public-info
string | nullThe additional public info of the virtual location or null if none is set. This will be overridden on events.unl.edu if the event has specific virtual location additional public info set. -
user-id
string | nullThe user UID that the virtual location is saved to or null if none is set. -
calendar-id
string | nullThe calendar ID that the virtual location is saved to or null if none is set.
-
-
recurring-dates
Array of Recurrence ObjectsA list of the event occurrence recurrences.-
id
stringThe ID of the recurrence record. This ID can be used to look up events. -
recurring-date
stringThe date of the recurrence. This is in YYYY-MM-DD format. -
recurrence-id
stringThe ID of the recurrence relative to the occurrence. -
ongoing
boolWhether the recurrence is ongoing. -
canceled
boolWhether this recurrence is canceled or not.
-
-
-
Example Code
async function eventsAPI() { const response = await fetch('https://events.unl.edu/api/v2/calendar/3809/events/location/29092/'); // const response = await fetch('https://events.unl.edu/api/v2/calendar/wdn_monthly/events/location/29092/'); if (response.ok) { const response_json = await response.json(); console.log(response_json.data); } }
curl -X GET 'https://events.unl.edu/api/v2/calendar/3809/events/location/29092/'
function eventsAPI() { $url = 'https://events.unl.edu/api/v2/calendar/3809/events/location/29092/'; // $url = 'https://events.unl.edu/api/v2/calendar/wdn_monthly/events/location/29092/'; // Make an HTTP GET request using file_get_contents $response = file_get_contents($url); if ($response !== false) { // Decode the JSON response $responseData = json_decode($response, true); // Check if JSON decoding was successful if ($responseData !== null) { // Access the 'data' field in the response JSON var_dump($responseData); } else { echo 'JSON decoding error'; } } else { echo 'Error fetching data'; } }
Read (By Virtual Location)
GET
http://events.unl.edu/api/v2/calendar/{calendar_id}/events/virtual-location/{location_id}/
This endpoint will find all events at a particular virtual location by its id.
HTTP Method
GET
Authentication Requirements
None
Request Data
-
calendar_id
string | number Required PathID or shortname of the calendar the events will be from. This will go into the path of the request. -
location_id
number Required PathThe location to filter the events by.
Response Data
-
Status
numberStatus code for the request. -
Message
stringStatus message for the request. -
Data
Array of Event Objects | nullThe list of the calendar's events data or null on error.-
id
stringThe ID of the event. -
title
string | nullThe title of the event or null if none is set. -
subtitle
string | nullThe subtitle of the event or null if none is set. -
description
string | nullThe description of the event or null if none is set. -
webpage
string | nullThe webpage of the event or null if none is set. This will always be a URL. -
private-public
'private' | 'public' | nullThe status of the event's publicity or null if none is set. This will always be public or private. -
listing-contact-name
string | nullThe event's listed contact's name or null if none is set. -
listing-contact-phone
string | nullThe event's listed contact's phone number or null if none is set. -
listing-contact-email
string | nullThe event's listed contact's email or null if none is set. -
listing-contact-url
string | nullThe event's listed contact's url or null if none is set. This will always be a URL. -
listing-contact-type
'person' | 'organization' | nullThe type of the event's listed contact or null if none is set. This will always be a person or organization. -
canceled
boolIf the event has been canceled. -
calendar-event-status
stringThe event status of that event on that calendar. -
original-calendar
Calendar ObjectThe original calendar the event was posted on.-
id
stringThe ID of the calendar. -
name
stringThe name of the calendar. -
short-name
stringThe short name of the calendar. This can be used in the URL of other events API v2 requests. -
default-timezone
stringThe default timezone of the calendar. This can be overridden by event's data times. -
webpage
string | nullThe webpage of the calendar or null if none is set. -
email-list
string | nullThe list of emails for the calendar or null if none is set. Emails will be separated by commas. -
event-release-preference
stringThe release process for events after they are created on the calendar. -
recommendations-within-account
boolWhether users on the same account can recommend events to this calendar.
-
-
eventtypes
Array of Event Type ObjectsA list of all the event types this event has attached to it. This list will only have one item in it.-
ID
StringID of the event type record. -
Name
StringName of the event type record.
-
-
audiences
Array of Audience ObjectsA list of all the audiences this event has attached to it.-
ID
StringID of the audience record. -
Name
StringName of the audience record.
-
-
image-url
string | nullThe URL of the image of the event or null if none are set. This will always be a URL. -
occurrences
Array of Event Occurrence ObjectsA list of all the occurrences of the event.-
id
stringThe ID of the occurrence date time. This ID can be used to look up events. -
start-time
stringThe start time of the occurrence date time. This is in the ISO 8601 format. -
end-time
string | nullThe end time of the occurrence date time or null if none is set. This is in the ISO 8601 format. -
is-all-day
boolWhether the event occurrence is all day or at a specific time. -
event-timezone
stringThe timezone of the event occurrence. This will override the calendar's default timezone. -
is-recurring
boolWhether the event occurrence has recurrences or not. -
canceled
boolWhether the event occurrence has been canceled or not. -
event-additional-public-info
string | nullThe additional info for the event occurrence or null if none is set. -
event-room
string | nullThe room the event occurrence will take place or null if none is set. This will override the location's room. -
event-directions
string | nullThe directions for the event occurrence or null if none is set. This will override the location's directions. -
event-location-additional-public-info
string | nullThe additional info for the event occurrence's location or null if none is set. This will override the location's additional public info. -
event-virtual-additional-public-info
string | nullThe additional info for the event occurrence's virtual location or null if none is set. This will override the virtual location's additional public info. -
location
Location Object | nullThe location of the event occurrence or null if none is set.-
id
stringThe ID of the location. -
name
string | nullThe name of the location or null if none is set. -
address-1
string | nullThe street address of the location or null if none is set. -
address-2
string | nullThe additional address of the location or null if none is set. -
city
string | nullThe city of the location or null if none is set. -
state
string | nullThe state of the location or null if none is set. This will always be the 2 letter abbreviation of the state. -
zip
string | nullThe zip of the location or null if none is set. This will always be ≤ 10 characters long. -
map-url
string | nullThe url of the map graphical interface of the location or null if none is set. This will always be a URL. -
webpage
string | nullThe web page of the location or null if none is set. This will always be a URL. -
hours
string | nullThe hours of the location or null if none is set. -
phone
string | nullThe phone number of the location or null if none is set. -
default-room
string | nullThe room of the location or null if none is set. This will be overridden on events.unl.edu if the event has a room set. -
default-directions
string | nullThe directions of the location or null if none is set. This will be overridden on events.unl.edu if the event has a directions set. -
default-additional-public-info
string | nullThe additional public info of the location or null if none is set. This will be overridden on events.unl.edu if the event has specific location additional public info set. -
user-id
string | nullThe user UID that the location is saved to or null if none is set. -
calendar-id
string | nullThe calendar ID that the location is saved to or null if none is set.
-
-
virtual-location
Virtual Location Object | nullThe virtual location of the event occurrence or null if none is set.-
id
stringThe ID of the virtual location. -
name
stringThe name of the virtual location. -
url
stringThe url of the virtual location. -
default-additional-public-info
string | nullThe additional public info of the virtual location or null if none is set. This will be overridden on events.unl.edu if the event has specific virtual location additional public info set. -
user-id
string | nullThe user UID that the virtual location is saved to or null if none is set. -
calendar-id
string | nullThe calendar ID that the virtual location is saved to or null if none is set.
-
-
recurring-dates
Array of Recurrence ObjectsA list of the event occurrence recurrences.-
id
stringThe ID of the recurrence record. This ID can be used to look up events. -
recurring-date
stringThe date of the recurrence. This is in YYYY-MM-DD format. -
recurrence-id
stringThe ID of the recurrence relative to the occurrence. -
ongoing
boolWhether the recurrence is ongoing. -
canceled
boolWhether this recurrence is canceled or not.
-
-
-
Example Code
async function eventsAPI() { const response = await fetch('https://events.unl.edu/api/v2/calendar/3809/events/virtual-location/12345/'); // const response = await fetch('https://events.unl.edu/api/v2/calendar/wdn_monthly/events/virtual-location/12345/'); if (response.ok) { const response_json = await response.json(); console.log(response_json.data); } }
curl -X GET 'https://events.unl.edu/api/v2/calendar/3809/events/virtual-location/12345/'
function eventsAPI() { $url = 'https://events.unl.edu/api/v2/calendar/3809/events/virtual-location/12345/'; // $url = 'https://events.unl.edu/api/v2/calendar/wdn_monthly/events/virtual-location/12345/'; // Make an HTTP GET request using file_get_contents $response = file_get_contents($url); if ($response !== false) { // Decode the JSON response $responseData = json_decode($response, true); // Check if JSON decoding was successful if ($responseData !== null) { // Access the 'data' field in the response JSON var_dump($responseData); } else { echo 'JSON decoding error'; } } else { echo 'Error fetching data'; } }
Read (Pending)
GET
http://events.unl.edu/api/v2/calendar/{calendar_id}/events/pending/
This endpoint is for getting a list of the pending events from a calendar.
HTTP Method
GET
Authentication Requirements
You must add a header to the request with the header key being Authentication
and the value being your API Token.
Request Data
-
calendar_id
string | number Required PathID or shortname of the calendar the events will be from. This will go into the path of the request. -
limit
number queryThis is the number of events you want to receive. Max limit is 500 and default is 100. -
offset
number queryThis offset is to be used to get the next batch of events beyond the initial limit.
Response Data
-
Status
numberStatus code for the request. -
Message
stringStatus message for the request. -
Data
Array of Event Objects | nullThe list of the calendar's pending events data or null on error.-
id
stringThe ID of the event. -
title
string | nullThe title of the event or null if none is set. -
subtitle
string | nullThe subtitle of the event or null if none is set. -
description
string | nullThe description of the event or null if none is set. -
webpage
string | nullThe webpage of the event or null if none is set. This will always be a URL. -
private-public
'private' | 'public' | nullThe status of the event's publicity or null if none is set. This will always be public or private. -
listing-contact-name
string | nullThe event's listed contact's name or null if none is set. -
listing-contact-phone
string | nullThe event's listed contact's phone number or null if none is set. -
listing-contact-email
string | nullThe event's listed contact's email or null if none is set. -
listing-contact-url
string | nullThe event's listed contact's url or null if none is set. This will always be a URL. -
listing-contact-type
'person' | 'organization' | nullThe type of the event's listed contact or null if none is set. This will always be a person or organization. -
canceled
boolIf the event has been canceled. -
calendar-event-status
stringThe event status of that event on that calendar. -
original-calendar
Calendar ObjectThe original calendar the event was posted on.-
id
stringThe ID of the calendar. -
name
stringThe name of the calendar. -
short-name
stringThe short name of the calendar. This can be used in the URL of other events API v2 requests. -
default-timezone
stringThe default timezone of the calendar. This can be overridden by event's data times. -
webpage
string | nullThe webpage of the calendar or null if none is set. -
email-list
string | nullThe list of emails for the calendar or null if none is set. Emails will be separated by commas. -
event-release-preference
stringThe release process for events after they are created on the calendar. -
recommendations-within-account
boolWhether users on the same account can recommend events to this calendar.
-
-
eventtypes
Array of Event Type ObjectsA list of all the event types this event has attached to it. This list will only have one item in it.-
ID
StringID of the event type record. -
Name
StringName of the event type record.
-
-
audiences
Array of Audience ObjectsA list of all the audiences this event has attached to it.-
ID
StringID of the audience record. -
Name
StringName of the audience record.
-
-
image-url
string | nullThe URL of the image of the event or null if none are set. This will always be a URL. -
occurrences
Array of Event Occurrence ObjectsA list of all the occurrences of the event.-
id
stringThe ID of the occurrence date time. This ID can be used to look up events. -
start-time
stringThe start time of the occurrence date time. This is in the ISO 8601 format. -
end-time
string | nullThe end time of the occurrence date time or null if none is set. This is in the ISO 8601 format. -
is-all-day
boolWhether the event occurrence is all day or at a specific time. -
event-timezone
stringThe timezone of the event occurrence. This will override the calendar's default timezone. -
is-recurring
boolWhether the event occurrence has recurrences or not. -
canceled
boolWhether the event occurrence has been canceled or not. -
event-additional-public-info
string | nullThe additional info for the event occurrence or null if none is set. -
event-room
string | nullThe room the event occurrence will take place or null if none is set. This will override the location's room. -
event-directions
string | nullThe directions for the event occurrence or null if none is set. This will override the location's directions. -
event-location-additional-public-info
string | nullThe additional info for the event occurrence's location or null if none is set. This will override the location's additional public info. -
event-virtual-additional-public-info
string | nullThe additional info for the event occurrence's virtual location or null if none is set. This will override the virtual location's additional public info. -
location
Location Object | nullThe location of the event occurrence or null if none is set.-
id
stringThe ID of the location. -
name
string | nullThe name of the location or null if none is set. -
address-1
string | nullThe street address of the location or null if none is set. -
address-2
string | nullThe additional address of the location or null if none is set. -
city
string | nullThe city of the location or null if none is set. -
state
string | nullThe state of the location or null if none is set. This will always be the 2 letter abbreviation of the state. -
zip
string | nullThe zip of the location or null if none is set. This will always be ≤ 10 characters long. -
map-url
string | nullThe url of the map graphical interface of the location or null if none is set. This will always be a URL. -
webpage
string | nullThe web page of the location or null if none is set. This will always be a URL. -
hours
string | nullThe hours of the location or null if none is set. -
phone
string | nullThe phone number of the location or null if none is set. -
default-room
string | nullThe room of the location or null if none is set. This will be overridden on events.unl.edu if the event has a room set. -
default-directions
string | nullThe directions of the location or null if none is set. This will be overridden on events.unl.edu if the event has a directions set. -
default-additional-public-info
string | nullThe additional public info of the location or null if none is set. This will be overridden on events.unl.edu if the event has specific location additional public info set. -
user-id
string | nullThe user UID that the location is saved to or null if none is set. -
calendar-id
string | nullThe calendar ID that the location is saved to or null if none is set.
-
-
virtual-location
Virtual Location Object | nullThe virtual location of the event occurrence or null if none is set.-
id
stringThe ID of the virtual location. -
name
stringThe name of the virtual location. -
url
stringThe url of the virtual location. -
default-additional-public-info
string | nullThe additional public info of the virtual location or null if none is set. This will be overridden on events.unl.edu if the event has specific virtual location additional public info set. -
user-id
string | nullThe user UID that the virtual location is saved to or null if none is set. -
calendar-id
string | nullThe calendar ID that the virtual location is saved to or null if none is set.
-
-
recurring-dates
Array of Recurrence ObjectsA list of the event occurrence recurrences.-
id
stringThe ID of the recurrence record. This ID can be used to look up events. -
recurring-date
stringThe date of the recurrence. This is in YYYY-MM-DD format. -
recurrence-id
stringThe ID of the recurrence relative to the occurrence. -
ongoing
boolWhether the recurrence is ongoing. -
canceled
boolWhether this recurrence is canceled or not.
-
-
-
Example Code
async function eventsAPI() { const response = await fetch('https://events.unl.edu/api/v2/calendar/3809/events/pending/', { headers: { 'Authentication': MY_API_TOKEN, } }); // const response = await fetch('https://events.unl.edu/api/v2/calendar/wdn_monthly/events/pending/', { // headers: { // 'Authentication': MY_API_TOKEN, // } // }); if (response.ok) { const response_json = await response.json(); console.log(response_json.data); } }
curl -X GET 'https://events.unl.edu/api/v2/calendar/3809/events/pending/' \ -H 'Authentication: MY_API_TOKEN'
function eventsAPI() { $apiToken = 'MY_API_TOKEN'; $url = 'https://events.unl.edu/api/v2/calendar/3809/events/pending/'; //$url = 'https://events.unl.edu/api/v2/calendar/wdn_monthly/events/pending/'; $headers = array( 'Authentication: ' . $apiToken, ); // Initialize cURL session $ch = curl_init(); // Set cURL options curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); // Execute cURL session and get the response $response = curl_exec($ch); // Check if cURL request was successful if ($response === false) { // Handle cURL error echo 'cURL Error: ' . curl_error($ch); } else { $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($httpCode === 200) { // Successful response $responseData = json_decode($response, true); var_dump($responseData); } else { // Error response echo 'API Error: ' . $response; } } // Close cURL session curl_close($ch); }
Read (Archived)
GET
http://events.unl.edu/api/v2/calendar/{calendar_id}/events/archived/
This endpoint is for getting a list of the archived events from a calendar.
HTTP Method
GET
Authentication Requirements
You must add a header to the request with the header key being Authentication
and the value being your API Token.
Request Data
-
calendar_id
string | number Required PathID or shortname of the calendar the events will be from. This will go into the path of the request. -
limit
number queryThis is the number of events you want to receive. Max limit is 500 and default is 100. -
offset
number queryThis offset is to be used to get the next batch of events beyond the initial limit.
Response Data
-
Status
numberStatus code for the request. -
Message
stringStatus message for the request. -
Data
Array of Event Objects | nullThe list of the calendar's archived events data or null on error.-
id
stringThe ID of the event. -
title
string | nullThe title of the event or null if none is set. -
subtitle
string | nullThe subtitle of the event or null if none is set. -
description
string | nullThe description of the event or null if none is set. -
webpage
string | nullThe webpage of the event or null if none is set. This will always be a URL. -
private-public
'private' | 'public' | nullThe status of the event's publicity or null if none is set. This will always be public or private. -
listing-contact-name
string | nullThe event's listed contact's name or null if none is set. -
listing-contact-phone
string | nullThe event's listed contact's phone number or null if none is set. -
listing-contact-email
string | nullThe event's listed contact's email or null if none is set. -
listing-contact-url
string | nullThe event's listed contact's url or null if none is set. This will always be a URL. -
listing-contact-type
'person' | 'organization' | nullThe type of the event's listed contact or null if none is set. This will always be a person or organization. -
canceled
boolIf the event has been canceled. -
calendar-event-status
stringThe event status of that event on that calendar. -
original-calendar
Calendar ObjectThe original calendar the event was posted on.-
id
stringThe ID of the calendar. -
name
stringThe name of the calendar. -
short-name
stringThe short name of the calendar. This can be used in the URL of other events API v2 requests. -
default-timezone
stringThe default timezone of the calendar. This can be overridden by event's data times. -
webpage
string | nullThe webpage of the calendar or null if none is set. -
email-list
string | nullThe list of emails for the calendar or null if none is set. Emails will be separated by commas. -
event-release-preference
stringThe release process for events after they are created on the calendar. -
recommendations-within-account
boolWhether users on the same account can recommend events to this calendar.
-
-
eventtypes
Array of Event Type ObjectsA list of all the event types this event has attached to it. This list will only have one item in it.-
ID
StringID of the event type record. -
Name
StringName of the event type record.
-
-
audiences
Array of Audience ObjectsA list of all the audiences this event has attached to it.-
ID
StringID of the audience record. -
Name
StringName of the audience record.
-
-
image-url
string | nullThe URL of the image of the event or null if none are set. This will always be a URL. -
occurrences
Array of Event Occurrence ObjectsA list of all the occurrences of the event.-
id
stringThe ID of the occurrence date time. This ID can be used to look up events. -
start-time
stringThe start time of the occurrence date time. This is in the ISO 8601 format. -
end-time
string | nullThe end time of the occurrence date time or null if none is set. This is in the ISO 8601 format. -
is-all-day
boolWhether the event occurrence is all day or at a specific time. -
event-timezone
stringThe timezone of the event occurrence. This will override the calendar's default timezone. -
is-recurring
boolWhether the event occurrence has recurrences or not. -
canceled
boolWhether the event occurrence has been canceled or not. -
event-additional-public-info
string | nullThe additional info for the event occurrence or null if none is set. -
event-room
string | nullThe room the event occurrence will take place or null if none is set. This will override the location's room. -
event-directions
string | nullThe directions for the event occurrence or null if none is set. This will override the location's directions. -
event-location-additional-public-info
string | nullThe additional info for the event occurrence's location or null if none is set. This will override the location's additional public info. -
event-virtual-additional-public-info
string | nullThe additional info for the event occurrence's virtual location or null if none is set. This will override the virtual location's additional public info. -
location
Location Object | nullThe location of the event occurrence or null if none is set.-
id
stringThe ID of the location. -
name
string | nullThe name of the location or null if none is set. -
address-1
string | nullThe street address of the location or null if none is set. -
address-2
string | nullThe additional address of the location or null if none is set. -
city
string | nullThe city of the location or null if none is set. -
state
string | nullThe state of the location or null if none is set. This will always be the 2 letter abbreviation of the state. -
zip
string | nullThe zip of the location or null if none is set. This will always be ≤ 10 characters long. -
map-url
string | nullThe url of the map graphical interface of the location or null if none is set. This will always be a URL. -
webpage
string | nullThe web page of the location or null if none is set. This will always be a URL. -
hours
string | nullThe hours of the location or null if none is set. -
phone
string | nullThe phone number of the location or null if none is set. -
default-room
string | nullThe room of the location or null if none is set. This will be overridden on events.unl.edu if the event has a room set. -
default-directions
string | nullThe directions of the location or null if none is set. This will be overridden on events.unl.edu if the event has a directions set. -
default-additional-public-info
string | nullThe additional public info of the location or null if none is set. This will be overridden on events.unl.edu if the event has specific location additional public info set. -
user-id
string | nullThe user UID that the location is saved to or null if none is set. -
calendar-id
string | nullThe calendar ID that the location is saved to or null if none is set.
-
-
virtual-location
Virtual Location Object | nullThe virtual location of the event occurrence or null if none is set.-
id
stringThe ID of the virtual location. -
name
stringThe name of the virtual location. -
url
stringThe url of the virtual location. -
default-additional-public-info
string | nullThe additional public info of the virtual location or null if none is set. This will be overridden on events.unl.edu if the event has specific virtual location additional public info set. -
user-id
string | nullThe user UID that the virtual location is saved to or null if none is set. -
calendar-id
string | nullThe calendar ID that the virtual location is saved to or null if none is set.
-
-
recurring-dates
Array of Recurrence ObjectsA list of the event occurrence recurrences.-
id
stringThe ID of the recurrence record. This ID can be used to look up events. -
recurring-date
stringThe date of the recurrence. This is in YYYY-MM-DD format. -
recurrence-id
stringThe ID of the recurrence relative to the occurrence. -
ongoing
boolWhether the recurrence is ongoing. -
canceled
boolWhether this recurrence is canceled or not.
-
-
-
Example Code
async function eventsAPI() { const response = await fetch('https://events.unl.edu/api/v2/calendar/3809/events/archived/', { headers: { 'Authentication': MY_API_TOKEN, } }); // const response = await fetch('https://events.unl.edu/api/v2/calendar/wdn_monthly/events/archived/', { // headers: { // 'Authentication': MY_API_TOKEN, // } // }); if (response.ok) { const response_json = await response.json(); console.log(response_json.data); } }
curl -X GET 'https://events.unl.edu/api/v2/calendar/3809/events/archived/' \ -H 'Authentication: MY_API_TOKEN'
function eventsAPI() { $apiToken = 'MY_API_TOKEN'; $url = 'https://events.unl.edu/api/v2/calendar/3809/events/archived/'; //$url = 'https://events.unl.edu/api/v2/calendar/wdn_monthly/events/archived/'; $headers = array( 'Authentication: ' . $apiToken, ); // Initialize cURL session $ch = curl_init(); // Set cURL options curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); // Execute cURL session and get the response $response = curl_exec($ch); // Check if cURL request was successful if ($response === false) { // Handle cURL error echo 'cURL Error: ' . curl_error($ch); } else { $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); if ($httpCode === 200) { // Successful response $responseData = json_decode($response, true); var_dump($responseData); } else { // Error response echo 'API Error: ' . $response; } } // Close cURL session curl_close($ch); }
- Printer-friendly version
- Log in to post comments