A web application for exploring water meter data from the Metropolitan Water District of Southern California (MWD). Browse agencies, search meters, view real-time flow data, and visualize historical usage with interactive charts.
The Metropolitan Water District of Southern California provides public access to water delivery data through their WINS (Water Information System) API. This explorer makes that data accessible through an intuitive interface, allowing anyone to:
- Browse member agencies - View the 27 member agencies and their sub-agencies that receive water from MWD
- Explore meters - Search through service connections and meters across Southern California
- View real-time data - See current flow rates for any meter
- Analyze historical data - Visualize 15-minute interval flow and volume data with interactive charts
- Test the API - Use the built-in playground to construct and test API calls
Overview of the system with quick stats on agencies, meters, and active connections.
Browse all member agencies and retail agencies. View their service connections, filter by status (active/retired), and see connection details like capacity, feeder, and reading type.
Search for specific meters, view detailed connection information, and analyze interval data with:
- Flow charts - Line charts showing flow rate (CFS) over time
- Volume charts - Bar charts showing water volume (acre-feet) per interval
- Cumulative charts - Area charts showing total volume delivered over a date range
- Data export - Download data as CSV or JSON
Test API endpoints directly, view responses, and generate code snippets for your own applications.
All data is provided by the Metropolitan Water District of Southern California through their public WINS API.
- API Documentation: https://webservices.mwdsc.org/wins/Public/Help
- Data Provider: Metropolitan Water District of Southern California
The WINS API provides access to:
- Member and sub-agency information
- Service connection details
- Real-time flow readings
- Historical interval data (15-minute intervals)
- Meter readings
Built with:
- React - UI framework
- TypeScript - Type safety
- Vite - Build tool
- Tailwind CSS - Styling
- React Query - Data fetching and caching
- Recharts - Charts and visualizations
- React Router - Navigation
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run build
# Preview production build
npm run previewThis project is configured to deploy to GitHub Pages automatically.
- Push your code to GitHub
- Go to your repository Settings → Pages
- Under Build and deployment, set Source to GitHub Actions
Once configured, every push to main will automatically:
- Build the project
- Deploy to GitHub Pages
Your site will be available at: https://<username>.github.io/MWD-API-Explorer/
To deploy manually:
# Build the project
npm run build
# The dist/ folder contains the built siteThen push the dist/ contents to a gh-pages branch, or use the GitHub Actions workflow included in .github/workflows/deploy.yml.
The base path in vite.config.ts is set to /MWD-API-Explorer/. If your repository has a different name, update this value to match.
This project is open source. The data displayed is public information provided by MWD.
This application is not affiliated with or endorsed by the Metropolitan Water District of Southern California. It is an independent tool for exploring publicly available data.