{
  "openapi": "3.0.1",
  "info": {
    "title": "US Orphaned Oil & Gas Wells (USGS Database)",
    "description": "Search about 130,000 documented unplugged orphaned oil and gas wells in 28 US states from the USGS database.  Filter by state, county, status, type, API number, or land owner, or monitor changes.",
    "version": "0.1",
    "x-build-id": "zSXFg6vPKIaQvz0hV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maniginam~us-orphan-oil-gas-wells/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maniginam-us-orphan-oil-gas-wells",
        "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/maniginam~us-orphan-oil-gas-wells/runs": {
      "post": {
        "operationId": "runs-sync-maniginam-us-orphan-oil-gas-wells",
        "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/maniginam~us-orphan-oil-gas-wells/run-sync": {
      "post": {
        "operationId": "run-sync-maniginam-us-orphan-oil-gas-wells",
        "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": {
          "states": {
            "title": "States",
            "type": "array",
            "description": "Pick one or more of the 28 states in the USGS database.  Leave empty to search every state.",
            "items": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AZ",
                "AR",
                "CA",
                "CO",
                "IL",
                "IN",
                "KS",
                "KY",
                "LA",
                "MI",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NM",
                "NY",
                "ND",
                "OH",
                "OK",
                "PA",
                "TN",
                "TX",
                "UT",
                "WV",
                "WY"
              ],
              "enumTitles": [
                "Alabama",
                "Alaska",
                "Arizona",
                "Arkansas",
                "California",
                "Colorado",
                "Illinois",
                "Indiana",
                "Kansas",
                "Kentucky",
                "Louisiana",
                "Michigan",
                "Mississippi",
                "Missouri",
                "Montana",
                "Nebraska",
                "Nevada",
                "New Mexico",
                "New York",
                "North Dakota",
                "Ohio",
                "Oklahoma",
                "Pennsylvania",
                "Tennessee",
                "Texas",
                "Utah",
                "West Virginia",
                "Wyoming"
              ]
            }
          },
          "counties": {
            "title": "Counties",
            "maxItems": 20,
            "type": "array",
            "description": "County, parish, or borough names, such as Harris, St. Mary, or Kern.  The word County or Parish is optional, and St. and Saint both match.  Combine with states when a county name exists in more than one state.",
            "items": {
              "type": "string",
              "maxLength": 60
            }
          },
          "statusKeywords": {
            "title": "Status contains",
            "maxItems": 20,
            "type": "array",
            "description": "Keep wells whose status contains any of these words, ignoring case, such as orphan, abandoned, or plugged.  Status wording comes from each state, so try a short word.",
            "items": {
              "type": "string",
              "maxLength": 60
            }
          },
          "wellTypeKeywords": {
            "title": "Well type contains",
            "maxItems": 20,
            "type": "array",
            "description": "Keep wells whose type contains any of these words, ignoring case, such as oil, gas, injection, or dry.",
            "items": {
              "type": "string",
              "maxLength": 60
            }
          },
          "apiNumbers": {
            "title": "API numbers start with",
            "maxItems": 20,
            "type": "array",
            "description": "Keep wells whose API number starts with any of these digits, for example 42 for Texas or 42201 for Harris County, Texas.  Dashes and spaces are ignored.",
            "items": {
              "type": "string"
            }
          },
          "surfaceOwners": {
            "title": "Surface owners",
            "type": "array",
            "description": "Keep wells whose surface land owner is one of these.  DOI covers BLM and other Interior land, USDA covers the Forest Service, DOD covers military land, and NTVPIC means Native American land.",
            "items": {
              "type": "string",
              "enum": [
                "DOI",
                "USDA",
                "DOD",
                "state",
                "private",
                "local government",
                "NTVPIC",
                "undetermined"
              ]
            }
          },
          "minLatitude": {
            "title": "Minimum latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Keep wells at or north of this latitude."
          },
          "maxLatitude": {
            "title": "Maximum latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Keep wells at or south of this latitude."
          },
          "minLongitude": {
            "title": "Minimum longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Keep wells at or east of this longitude.  Longitudes in the US are negative, for example -95.8."
          },
          "maxLongitude": {
            "title": "Maximum longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Keep wells at or west of this longitude."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Most wells to publish, and to charge for, in one run.  In monitor mode this counts only new or changed wells.",
            "default": 1000
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed wells (monitor mode)",
            "type": "boolean",
            "description": "Remember the wells this search has returned and publish only wells that are new or whose status, type, name, county, location, or identifier changed.  Wells that are plugged and removed from the database, or no longer orphaned, are not reported.  Use with a schedule.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}