# River levels and streamflow in Massachusetts

**Use case:** 

Every active USGS gauge in Massachusetts - 139 of them when this example was written, including Cold River AT Florida, MA. Each row has gage height in feet, streamflow in cubic feet per second and water temperature, stamped with the time of the reading. This is the USGS Instantaneous Values service, so an offline gauge returns no row instead of a stale number. Swap the state, or give site numbers.

## Input

```json
{
  "sites": [],
  "states": [
    "ma"
  ],
  "parameterCodes": [
    "00060",
    "00065",
    "00010"
  ],
  "maxRetries": 4
}
```

## Output

```json
{
  "siteCode": {
    "label": "Site",
    "format": "string"
  },
  "siteName": {
    "label": "Gauge",
    "format": "string"
  },
  "stateFips": {
    "label": "State FIPS",
    "format": "string"
  },
  "freshestAgeHours": {
    "label": "Freshest (h)",
    "format": "number"
  },
  "gageHeight": {
    "label": "Gage height",
    "format": "number"
  },
  "gageHeightUnit": {
    "label": "Unit",
    "format": "string"
  },
  "gageHeightAgeHours": {
    "label": "Age (h)",
    "format": "number"
  },
  "gageHeightIsSuspect": {
    "label": "Suspect",
    "format": "boolean"
  },
  "gageHeightIsProvisional": {
    "label": "Provisional",
    "format": "boolean"
  },
  "gageHeightQualifiers": {
    "label": "Quality",
    "format": "string"
  },
  "gageHeightSensor": {
    "label": "Sensor",
    "format": "string"
  },
  "streamflow": {
    "label": "Streamflow",
    "format": "number"
  },
  "streamflowUnit": {
    "label": "Unit",
    "format": "string"
  },
  "streamflowAgeHours": {
    "label": "Age (h)",
    "format": "number"
  },
  "streamflowIsSuspect": {
    "label": "Suspect",
    "format": "boolean"
  },
  "streamflowQualifiers": {
    "label": "Quality",
    "format": "string"
  },
  "waterTemperature": {
    "label": "Water temp (C)",
    "format": "number"
  },
  "parametersObserved": {
    "label": "Measured",
    "format": "number"
  },
  "parametersTotal": {
    "label": "of",
    "format": "number"
  },
  "source": {
    "label": "Source",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [US River Water Level API - Official USGS Streamflow Gauges](https://apify.com/neverempty/us-river-water-levels.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/neverempty/us-river-water-levels.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/neverempty/us-river-water-levels.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
