sfomuseum.millsfield.flights.getAirports
Description
Return the unique list of airports for flights that have to or from SFO. Try this method in the API Explorer.
HTTP Request method
GET
Arguments
- access_token (
string) — A valid OAuth2 access token (required) - format (
string) — The format in which to return the data. Supported formats are json, jsonp. The default format is json. - start_date (
string) — A valid YYYY-MM-DD date string. Only return airports with flights on or after this date. - end_date (
string) — A valid YYYY-MM-DD date string. Only return airports with flights on or before this date. - abbreviated (
boolean) — Return abbreviated records with only the following properties: wof:id, wof:name, wof:concordances, sfomuseum:count_flights
Errors
In addition to default error codes common to all methods this API method defines the following additional error codes:
900— Invalid start date901— Invalid end date902— Invalid end date (preceeds start date)
Example request — or take this API method for a spin
curl -X GET 'https://api.sfomuseum.org/rest/?method=sfomuseum.millsfield.flights.getAirports&access_token=<TOKEN>&start_date=<START_DATE>&end_date=<END_DATE>&abbreviated=<ABBREVIATED>'