This tool provides a simple way to generate syntactically correct URLs to use with the USGS Site web service. Use it to get comfortable with the service before creating your own applications. Press the question mark icon for help with a particular field.
Simply enter the values you want in the fields below. Press Generate the URL button at the bottom to get the resulting URL. To see the results in your browser, next press the Run the Generated URL button.
You must have Javascript enabled for your browser to use this tool.
URL argument name is siteOutput. If you would like to see expanded site information, check this box. This argument is ignored for visually oriented output formats like Mapper, Google Earth and Google Maps. The default is basic. Use expanded to get expanded site information. Example: &siteOutput=expanded. Note: for performance reasons, &siteOutput=expanded cannot be used if seriesCatalogOutput=true or with any values for outputDataTypeCd.
URL argument name is seriesCatalogOutput. This argument is ignored for visually oriented output formats like Mapper, Google Earth and Google Maps. If you would like to see all the period of record information for the sites selected, check this box. You will see detailed information, such as a continuous range of dates served by a site for one or more data types, for example, the begin and end dates that streamflow (parameter 00060) was recorded at a site. Note: if you select any data types for output (see below) the period of record data will also appear. In that case specifying this argument is unnecessary. The default is false. The only legal values for this argument are true and false. Example: &seriesCatalogOutput=true. &seriesCatalogOutput=true is equivalent to &outputDataTypeCd=all. Note: for performance reasons, &siteOutput=expanded cannot be used if seriesCatalogOutput=true.
Show period of record information about these data types:
URL argument name is outputDataTypeCd. This will add period of record information to certain output formats (GML, RDB and JSON) that summarize information about the data types requested. The default is all data types. Some output formats are designed for visual use (Google Earth, Google Maps and Mapper). Consequently with these formats you will not see data type code information.
Default information: If seriesCatalogOutput is true, all period of record information is shown by default. If seriesCatalogOutput is false, unless you override it using one of the values below, no period of record information is shown.
Note: for performance reasons, &siteOutput=expanded cannot be used if with any values for outputDataTypeCd.
Here are the various output data type codes available. These can be selected individually or can be added as comma separated values if desired. Example: &outputDataTypeCd=iv,dv
all - default (see above for qualifications). This is equivalent to &seriesCatalogOutput=true.
iv - Instantaneous values (time-series measurements typically recorded by automated equipment at frequent intervals (e.g., hourly)
uv - Unit values (alias for iv)
rt - Real-time data (alias for iv)
dv - Daily values (once daily measurements or summarized information for a particular day, such as daily maximum, minimum and mean)
pk - Peaks measurements of water levels and streamflow for surface water sites (such as during floods, may be either an automated or a manual measurement)
sv - Site visits (irregular manual surface water measurements, excluding peak measurements)
gw - Groundwater levels measured at irregular, discrete intervals. For recorded, time series groundwater levels, use iv or id.
qw - Water-quality data from discrete sampling events and analyzed in the field or in a laboratory. For recorded time series water-quality data, use iv or id.
id - Historical instantaneous values (sites in the USGS Instantaneous Data Archive
)
aw - Sites monitored by the USGS Active Groundwater Level Network 
ad - Sites included in USGS Annual Water Data Reports 
Caution: queries that return large sets of data may cause your browser to slow down or lock as it attempts to download and format large sets of data for display. When testing services in a browser, it is suggested that you create queries that should return relatively small sets of data. When creating an application you will typically use a program like curl
, wget
or the Windows task scheduler
to retrieve data, which should acquire data more quickly than a browser.
(Note: if you do not see the XML in the output, please View Source.)