This is the main search method of events. Searches break down as follows:
{city} - All events that are located in this {city}
/Events/?city=Washington&api_key=xxx
{state} - All events in this {state}
/Events/?state=DC&api_key=xxx
{zipcode} - (Requires distance) trail is within that distance miles of that zipcode {zipcode.
/Events/?zipcode=20001&api_key=xxx
{dma} - Search by dma
/Events/?dma=dma&api_key=xxx
{startDate} - The {startDate} of the event and any events after that start on or after that date and within the end date.
/Events/?api_key=xxxs&startDate=01-01-2017
{endDate} - The {endDate} of range from start date. Will find dates within that range
/Events/?api_key=xxxs&endDate=01-01-2017
{keyword} - This finds any keyword in the event title or organizer title.
/Events/?keyword=walking&api_key=xxx
{sort} - This will sort it by alphabetical event name or by state or the start date of the event
/Events/?sort=event_name&api_key=xxx
{tag} This will search the tags of the event for a match.
/Events/?tag=run&api_key=xxx
{promoted} - This will determine if the event is promoted or not by either Y for yes or N for no.
/Events/?promoted=Y&api_key=xxx
{status} - This will search for events with certain statuses such as Active(A) or Cancelled(C).
/Events/?status=A&api_key=xxx
{start}
JSON Request:
Request Body is empty
JSON Response:
{
"city": "Washington",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
"directionsParking": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
"endDate": "2017-04-30 15:52:33Z",
"eventCode": "1",
"eventID": 1,
"eventImgID": 122,
"eventTitle": "Bike To Work DC",
"eventType": "R",
"organizerID": 1,
"promotedFlag": true,
"startDate": "2017-04-28 15:52:33Z",
"state": "DC",
"status": "A",
"submitterID": 9300544,
"tags": [
"bike"
],
"trailID": 6825131,
"website": "dcbikers.org"
}
XML Request:
XML Response: