Return to Request frontend or API Services
Documentation for /cgi-bin/request/scan.py
This application provides a simple interface to download SCAN data for a specified period of time. The data is returned in a simple text format that can be easily imported into a spreadsheet or other data analysis software.
Changelog
- 2025-02-23: Initial implementation
Example Requests
Get all SCAN data for 2024
CGI Arguments
The following table lists the CGI arguments that are accepted by this service. A HTTP GET request is required. Fields of type Multi-Params or CSV value can accept either a comma separated list or multiple parameter and value combinations. For example, ?foo=1&foo=2 is equivalent to ?foo=1,2.
| Field | Type | Description |
|---|---|---|
| stations | Multi-Params or CSV value (required) | Either provide a single value, multiple parameters each with a single value, or a comma-separated list of values. The context here is a list of station identifiers. All lowercase letters are converted to uppercase. |
| vars | Multi-Params or CSV value | List of variables to include in the output. |
| sts | string | Start of the period of interest. |
| ets | string | End of the period of interest. |
| delim | string | Delimiter to use in the output file. |
| what | string | Download or view. |
| year1 | integer | Start year when sts is not provided. |
| month1 | integer | Start month when sts is not provided. |
| day1 | integer or null | Day of the month |
| hour1 | integer | Start hour when sts is not provided. |
| year2 | integer | End year when ets is not provided. |
| month2 | integer | End month when ets is not provided. |
| day2 | integer or null | Day of the month |
| hour2 | integer | End hour when ets is not provided. |