{
  "openapi": "3.0.1",
  "info": {
    "title": "Colorado Water Rights & Well Permits - DWR Registers",
    "description": "Colorado DWR registers (public open data): 310k decreed water rights with decreed uses, priority dates, rate and location, plus 651k well permit applications with status, driller, depth and yield. A well's wdid keys the water right against it. Search by county, structure, source or status.",
    "version": "0.0",
    "x-build-id": "be5HBOkME0Hr3gax1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~co-water-rights/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-co-water-rights",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/j0401~co-water-rights/runs": {
      "post": {
        "operationId": "runs-sync-j0401-co-water-rights",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/j0401~co-water-rights/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-co-water-rights",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "wdid": {
            "title": "Water district ID (exact)",
            "type": "string",
            "description": "Exact WDID, e.g. '0100753'. Keys a water right and the wells linked to it.",
            "default": ""
          },
          "waterRightName": {
            "title": "Water right name (contains)",
            "type": "string",
            "description": "Substring match on the decreed right's name.",
            "default": ""
          },
          "structureType": {
            "title": "Structure type",
            "type": "string",
            "description": "Exact structure type, e.g. 'Ditch', 'Well', 'Reservoir', 'Spring'.",
            "default": ""
          },
          "waterSource": {
            "title": "Water source (contains)",
            "type": "string",
            "description": "Substring match on the source, e.g. 'LARAMIE', 'SOUTH PLATTE'.",
            "default": ""
          },
          "county": {
            "title": "County",
            "type": "string",
            "description": "Colorado county name (case-insensitive), e.g. 'DOUGLAS'.",
            "default": ""
          },
          "division": {
            "title": "Water division",
            "type": "integer",
            "description": "DWR division number (1-7)."
          },
          "waterDistrict": {
            "title": "Water district",
            "type": "integer",
            "description": "DWR water district number."
          },
          "caseNo": {
            "title": "Case number (contains)",
            "type": "string",
            "description": "Substring match on the water court case number.",
            "default": ""
          },
          "planType": {
            "title": "Plan type",
            "type": "string",
            "description": "Exact plan type code.",
            "default": ""
          },
          "receipt": {
            "title": "Well receipt no. (exact)",
            "type": "string",
            "description": "Exact DWR receipt number for a well application.",
            "default": ""
          },
          "permit": {
            "title": "Well permit no. (exact)",
            "type": "string",
            "description": "Exact well permit number.",
            "default": ""
          },
          "currentStatus": {
            "title": "Well status",
            "type": "string",
            "description": "Exact well status, e.g. 'Well Constructed', 'Permit Issued', 'Well Abandoned'.",
            "default": ""
          },
          "contactName": {
            "title": "Well contact (contains)",
            "type": "string",
            "description": "Substring match on the permit contact / owner name.",
            "default": ""
          },
          "designatedBasin": {
            "title": "Designated basin (contains)",
            "type": "string",
            "description": "Substring match on the designated groundwater basin.",
            "default": ""
          },
          "associatedUses": {
            "title": "Associated uses (contains)",
            "type": "string",
            "description": "Substring match on the permitted well uses.",
            "default": ""
          },
          "associatedAquifers": {
            "title": "Associated aquifers (contains)",
            "type": "string",
            "description": "Substring match on the aquifers the well draws from.",
            "default": ""
          },
          "appropriatedFrom": {
            "title": "Appropriation date from",
            "type": "string",
            "description": "Earliest appropriation date (rights), YYYY-MM-DD.",
            "default": ""
          },
          "appropriatedTo": {
            "title": "Appropriation date to",
            "type": "string",
            "description": "Latest appropriation date (rights), YYYY-MM-DD.",
            "default": ""
          },
          "issuedFrom": {
            "title": "Permit issued from",
            "type": "string",
            "description": "Earliest well permit issued date, YYYY-MM-DD.",
            "default": ""
          },
          "issuedTo": {
            "title": "Permit issued to",
            "type": "string",
            "description": "Latest well permit issued date, YYYY-MM-DD.",
            "default": ""
          },
          "minRate": {
            "title": "Min decreed rate",
            "type": "number",
            "description": "Smallest max decreed rate (rights)."
          },
          "maxRate": {
            "title": "Max decreed rate",
            "type": "number",
            "description": "Largest max decreed rate (rights)."
          },
          "minVolume": {
            "title": "Min volumetric limit",
            "type": "number",
            "description": "Smallest total volumetric limit (rights)."
          },
          "maxVolume": {
            "title": "Max volumetric limit",
            "type": "number",
            "description": "Largest total volumetric limit (rights)."
          },
          "minDepth": {
            "title": "Min well depth",
            "type": "number",
            "description": "Shallowest well depth (wells)."
          },
          "maxDepth": {
            "title": "Max well depth",
            "type": "number",
            "description": "Deepest well depth (wells)."
          },
          "minYield": {
            "title": "Min well yield (gpm)",
            "type": "number",
            "description": "Smallest reported yield in gpm (wells)."
          },
          "maxYield": {
            "title": "Max well yield (gpm)",
            "type": "number",
            "description": "Largest reported yield in gpm (wells)."
          },
          "corpus": {
            "title": "Corpus",
            "enum": [
              "rights",
              "wells"
            ],
            "type": "string",
            "description": "rights = decreed water rights (310k). wells = well permit applications (651k). Filters below apply to the corpus you pick.",
            "default": "rights"
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "rows",
              "aggregate",
              "profile"
            ],
            "type": "string",
            "description": "rows = records matching your filters. aggregate = one count row per group (see groupBy). profile = one water right plus every well linked to it (requires wdid).",
            "default": "rows"
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "",
              "adjudicationType",
              "county",
              "currentStatus",
              "designatedBasin",
              "division",
              "locationType",
              "managementDistrict",
              "permitCategory",
              "planType",
              "structureType",
              "waterDistrict"
            ],
            "type": "string",
            "description": "Aggregate by a dimension of the chosen corpus. Available keys differ per corpus (rights: structureType/county/division/; wells: currentStatus/county/).",
            "default": ""
          },
          "maxResults": {
            "title": "Max records",
            "minimum": 0,
            "type": "integer",
            "description": "Cap the number of records returned (0 = default 50). Records are charged individually; there is no per-run charge cap.",
            "default": 50
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}