API Documentation
This page contains documentation for the application programming interface (API) that powers the interactive state water plan application. All methods are available via standard HTML requests and are CORS-enabled so that cross-browser requests can be made. All water volumes are given in units of acre-feet/year
. Unless otherwise specified, all methods return JSON responses.
For any questions regarding the data or how to apply it, please contact: WRPdatarequests@twdb.texas.gov.
Data Methods
Methods to retrieve raw and summary water planning data.
-
Get all water planning data and summaries.
Notes: Setting the query string to
omitRows=true
will omit raw data rows. -
Get regional summary data by water usage type.
-
Get water planning data and summaries for the region identified by {regionLetter}.
Notes: Setting the query string to
omitRows=true
will omit raw data rows. -
Get water planning data and summaries for the county identified by {countyName}.
Notes: Setting the query string to
omitRows=true
will omit raw data rows. -
Get water planning data and summaries for the entity identified by {entityId}.
Notes: Setting the query string to
omitRows=true
will omit raw data rows. -
Get water source data and summaries for the water source identified by {sourceId}.
Notes: Setting the query string to
omitRows=true
will omit raw data rows. -
Get water planning data and summaries for all entities of the usage type identified by {usageType}.
Notes: Setting the query string to
omitRows=true
will omit raw data rows. -
Get project data and summaries for the project identified by {projectId}.
Notes: Setting the query string to
omitRows=true
will omit raw data rows. -
Get WMS data based on WMS Id.
Notes: Setting the query string to
omitRows=true
will omit raw data rows. -
Get WMS type data based on WMS Type.
Notes: Setting the query string to
omitRows=true
will omit raw data rows.
Entities Methods
Methods to retrieve entity (water user group) information.
-
GET /api/v1/entities
Get all water user group entities.
-
Get the water user group entity identified by {entityId}.
-
Find a water user group entity by name or partial name.
Notes: Use the
name={nameOrPartial}
query parameter to provide a name or partial name. -
Get all water user group entities in the region identified by {regionLetter}.
-
Get all water user group entities in the county identified by {countyName}.
Places Methods
Methods to retrieve places (regional water planning areas, counties, etc.) information.
-
Get the list of regions that contain the county identified by {countyName}
-
Get the list of counties that contain the entity identified by {entityId}
-
Get the list of regions that contain the entity identified by {entityId}
Sources Methods
Methods to retrieve ground and surface water source information.
-
GET /api/v1/sources
Get all ground and surface water sources.
-
Get the water source identified by {sourceId}.
-
Find a ground or surface water source by name or partial name.
Notes: Use the
name={nameOrPartial}
query parameter to provide a name or partial name. -
Get all ground and surface water sources as multiple singlepart geometry records in a GeoJSON formatted response.
-
Get the water source identified by {sourceId} as multiple singlepart geometry records in a GeoJSON formatted response.
Projects Methods
Methods to retrieve water management strategies projects information.
-
GET /api/v1/projects
Get all water management strategy projects.
-
Get the water management strategy project identified by {projectId}.
-
Find a water management strategy project by name or partial name.
Notes: Use the
name={nameOrPartial}
query parameter to provide a name or partial name. -
Get all water management strategy projects sponsored by the region identified by {regionLetter}.
-
Get all water management strategy projects in the water user group region identified by {regionLetter}.
WMS Methods
Method to retrieve water management strategies
-
GET /api/v1/wms
Get all wmses
-
Get one wms.
-
Get WMS by name.
WmsType Methods
Method to return water management strategies by type
-
Get all WMS by type