Skip to main content

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

    How are we doing? We want to hear from you. Take our quick survey to tell us what you think.

API Versioning

USGS water data APIs are hosted at https://api.waterdata.usgs.gov/ogcapi/v1/. The "v1" at the end of the URL indicates the version of the APIs that you're accessing. v1 is the current version.

We aim to not release any breaking changes within a single version of an API. This means that any query which currently succeeds against the v1 of the APIs should continue to succeed against v1, though you might need to make some updates when we release a future version. It doesn't mean that we won't make changes to the API's interface or that the underlying data a query searches for won't change.

A breaking change is something that causes a query which previously succeeded to start failing. Examples of breaking changes include:

Each of these changes have the potential to cause existing queries to fail. As such, we will endeavour to avoid making any of these changes within a single version of the APIs.

Not all significant changes will cause query failure, however, and as such can be implemented within a single API version. Examples of non-breaking changes include:

Note that we also do not guarantee the order that results are returned in, or the order that fields are sorted in within a response object.

To the greatest extent possible we will release non-breaking changes within a version to help users anticipate breaking changes that might occur across versions. For instance, user feedback has indicated that the "begin" and "end" fields available from the /time-series-metadata endpoint would be more useful if they were in UTC and contained time zone information. In this situation, we may add fields to the v1 /time-series-metadata endpoint implementing this change (for example, "begin_utc" and "end_utc") while maintaining the existing "begin" and "end" fields, while a future version's field may redefine the data provided by "begin" and "end" fields instead.

When a new version is released, it will operate concurrently with the older version for a period of time to allow you to migrate over. We will not maintain older versions of the API indefinitely. New version releases and decommission dates for older versions will both be announced on the WDFN blog and through the WDFN newsletter.