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.

What's new with WDFN APIs - Summer 2026 Edition

A new endpoint for peak flows is now available, queries now have additional metadata fields for filtering, and a new UI theme has been released for HTML responses.

Date Posted June 18, 2026 Last Updated June 18, 2026
Author Mike Mahoney
Reading Time 2 minutes Share

It’s been a busy few months for Water Data for the Nation’s Water Data APIs , the services that publish USGS water data in machine-readable formats. This post walks through a few recent updates to these APIs.

Peak flow service now available

We’ve released a new endpoint for peak flow values . This endpoint provides the same data as the legacy peaks service (hosted at https://nwis.waterdata.usgs.gov/usa/nwis/peak ), which will be retired this winter as part of NWISWeb Decommission Campaign 3 .

A data dictionary is available online , with definitions for all the variables returned by this endpoint. The dataRetrieval R package has a new read_waterdata_peaks() function for getting data from this endpoint, and the dataretrieval Python package has a corresponding get_peaks() function.

Sometimes the magnitude of a peak flow might be known, but not the precise time, day, or even month during which the flow occurred. At the same time, the database used by WDFN’s APIs doesn’t allow temporal queries against unknown or partial dates. For example, for some records, records may only show that the peak flow occurred in 1980, but not specifically when in 1980.

In order to enable temporal queries against the peaks endpoint, this endpoint has individual fields for the year, month, day, and time of day that a peak flow occurred. Each of these fields will be null if that specific date part is unknown. The time field returned by this endpoint (used by temporal queries), meanwhile, will set any unknown components of the date to "01", allowing these results to show up in temporal queries. So, in the 1980 example, the time field would show as “1980-01-01” so that the record is able to be queried; however, the month, day, and time_of_day fields will return null values.

Record showing peak flow for a known date.

Example 2024 peak flow record as returned with complete day, month, and time of day values.

Record showing peak flow for an unknown date.

Example 1980 peak flow record as returned with null day, month, and time of day values.

Expanded querying

The /continuous and /daily endpoints now support many more query arguments, allowing queries to use any field returned by the monitoring location endpoint. This means that you can now query these endpoints using state name, hydrologic unit code, and more.

We’ll be expanding this functionality to the /field-measurements, /latest-continuous, /latest-daily, and /latest-field-measurements endpoints in the near future.

Browser UI updates

Last but not least, we’ve overhauled the HTML UI for the APIs, as displayed when loading API links in a web browser. The new UI uses the United States Web Design System throughout, giving it a cohesive appearance that aligns with the rest of WDFN, and attempts to make it easier to find exactly what you’re looking for. In particular, the new API landing page provides a more organized overview of what each endpoint is used for, and the new navigation bar should make it easier to find documentation and useful links when on the API website.

Screenshot of the new Water Data API user interface for Continuous water data.

Screenshot of the new Water Data API user interface for Continuous water data.

We’re continuing to work on and improve these services, and are focused on helping users migrate to the new APIs before WaterServices is decommissioned in Winter 2027. Please reach out to us at wdfn@usgs.gov with any questions or feedback you may have.

Share:

Related Posts

  • What's new with WDFN APIs?

    May 21, 2025

    USGS Water Data APIs Homepage and Informational Webinar are available!

    We have continued to modernize Water Data APIs. Keep visiting this blog for more updates

  • Big changes to USGS Water Data in 2025

    May 28, 2025

    Public USGS Webinar: Water Data for the Nation – New Features and NWISWeb Decommissioning

    In this webinar, we highlight important changes in how we deliver water data. These changes are part of a long-term effort to modernize our Water Data for the Nation (WDFN) systems, improve performance, and better serve both internal and public users.

  • Modernized access for USGS rating curves is now available

    April 28, 2026

    Modernized access for USGS rating curves is now available

    The USGS publishes rating curves describing the relationship between stage and streamflow at a monitoring location. Historically, these curves have been published at the NWISWeb Ratings Depot, available at https://waterdata.usgs.gov/nwisweb/get_ratings .

  • WaterServices APIs will be decommissioned early 2027

    January 7, 2026

    We have released modernized Water Data APIs which will supersede the WaterServices family of APIs. WaterServices will be decommissioned in the first quarter of 2027. We will have more information about the decommission process, which may include intentional service degradation and blackouts, in the second half of 2026. We will not begin any intentional degradation of these services before August 2026.

  • Metadata in Water Data for the Nation

    December 29, 2025

    Introduction

    Metadata are crucial to interpreting and understanding USGS water data. Metadata are data that provides information about other data. They provide important context to the water data you are viewing on WDFN pages or downloading from USGS Water Data APIs . USGS water data metadata includes codes and abbreviations, such as parameter codes, method codes, and observed properties.