REST Web Services
This tool provides a simple way to generate syntactically correct URLs to use with the Beta USGS Statistic 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.
URL argument names and values are not case sensitive, ex: ?agencyCd=usgs, ?AGENCYCD=usgs, ?agencycd=USGS can all be used and are equivalent. See the full service description for details.
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.
URL argument name is format. Select the output format desired. If there is no format argument in the generated URL, the most currently supported version of USGS RDB format is returned. Example: &format=rdb. Formats available:
The version of the format wanted, if available, can be appended using the syntax: &format=<format_type>,<version_number>. The version number is optional but its use is encouraged because it means your application is less likely to break. If you do not specify the version number in your syntax, the most recently implemented version in that format will be returned instead. In some cases, if there is no known version of a format, 1.0 is used to distinguish it.
Optional filters, if used, further reduce the list of sites returned.
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.
Generate the URL
Run the Generated URL
(Note: if you do not see the XML in the output, please View Source.)