SkiReg

SkiReg.com Event Search API

This returns event search results similar to the event calendar in JSON format.

Endpoint

Requests should be GET requests directed to http://www.SkiReg.com/api/search.

Parameters

All parameters are passed via query string and are optional. Parameter names are case-sensitive. Results are limited to the first 100 matches and ordered chronologically ascending.

ParameterNotes
name A string of characters to search for in the event name, i.e. "Gloucester"
region A region to restrict the search to. Legal values for this are the set of choices in the "Event Location" drop down box on the event search page above the first set of dashes, i.e. "New England" is valid but "American Samoa" is not.
states A comma-separated list of two-character state abbreviations to restrict the search to, i.e. "ME,NH,VT"
loc A base location for the search. If this is included, results will have a "distance" property that represents how far away each result is from the given point. Points should be specified in the format "lat|long".
distance Restricts search results to those within distance miles of loc. If loc is not specified, this has no effect.
eventtype A comma-separated list of event types to restrict the search to. Legal values for this are the set of choices in the "Event Type" drop down box on the event search page above the first set of dashes, i.e. "MTB Races" is valid but "BUMPS Hillclimb Series" is not.
permit An exact USAC permit # to match, i.e. "2014-2735"
startpage The page of results to start with, counting by 100. i.e. a startpage of "2" will return the 200-300th results for that search, if they exist.
year Restricts search to results within a given calendar year (i.e. "2014"). If absent, results will include all future events.

Response

The response is a JSON-formatted object with two properties, "ResultCount" and "MatchingEvents." We assume you can figure out what they are.