{
  "openapi": "3.0.1",
  "info": {
    "title": "Louisiana Oil & Gas Wells & Drilling Permits (SONRIS)",
    "description": "Search Louisiana's official SONRIS well records by parish, operator, and permit date, or monitor new drilling permits and status changes on a schedule.",
    "version": "0.1",
    "x-build-id": "st62Ot8yh65W864BR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maniginam~louisiana-oil-gas-wells/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maniginam-louisiana-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~louisiana-oil-gas-wells/runs": {
      "post": {
        "operationId": "runs-sync-maniginam-louisiana-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~louisiana-oil-gas-wells/run-sync": {
      "post": {
        "operationId": "run-sync-maniginam-louisiana-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": {
          "parishes": {
            "title": "Parishes",
            "maxItems": 64,
            "uniqueItems": true,
            "type": "array",
            "description": "Pick one or more Louisiana parishes.  Leave empty to search every parish.",
            "items": {
              "type": "string",
              "enum": [
                "ACADIA",
                "ALLEN",
                "ASCENSION",
                "ASSUMPTION",
                "AVOYELLES",
                "BEAUREGARD",
                "BIENVILLE",
                "BOSSIER",
                "CADDO",
                "CALCASIEU",
                "CALDWELL",
                "CAMERON",
                "CATAHOULA",
                "CLAIBORNE",
                "CONCORDIA",
                "DE SOTO",
                "EAST BATON ROUGE",
                "EAST CARROLL",
                "EAST FELICIANA",
                "EVANGELINE",
                "FRANKLIN",
                "GRANT",
                "IBERIA",
                "IBERVILLE",
                "JACKSON",
                "JEFFERSON",
                "JEFFERSON DAVIS",
                "LA SALLE",
                "LAFAYETTE",
                "LAFOURCHE",
                "LINCOLN",
                "LIVINGSTON",
                "MADISON",
                "MOREHOUSE",
                "NATCHITOCHES",
                "ORLEANS",
                "OUACHITA",
                "PLAQUEMINES",
                "POINTE COUPEE",
                "RAPIDES",
                "RED RIVER",
                "RICHLAND",
                "SABINE",
                "ST BERNARD",
                "ST CHARLES",
                "ST HELENA",
                "ST JAMES",
                "ST JOHN THE BAPTIST",
                "ST LANDRY",
                "ST MARTIN",
                "ST MARY",
                "ST TAMMANY",
                "TANGIPAHOA",
                "TENSAS",
                "TERREBONNE",
                "UNION",
                "VERMILION",
                "VERNON",
                "WASHINGTON",
                "WEBSTER",
                "WEST BATON ROUGE",
                "WEST CARROLL",
                "WEST FELICIANA",
                "WINN"
              ]
            }
          },
          "operatorContains": {
            "title": "Operator name contains",
            "pattern": "^[A-Za-z0-9 &.,'()/-]*$",
            "maxLength": 80,
            "type": "string",
            "description": "Case-insensitive text that must appear in the operator name, for example EXPAND or COMSTOCK.  Letters, digits, spaces, and & . , ' ( ) / - only, up to 80 characters.  Leave empty for all operators."
          },
          "permittedSince": {
            "title": "Permitted on or after",
            "type": "string",
            "description": "Earliest permit date (YYYY-MM-DD).  Leave empty for no lower bound."
          },
          "permittedUntil": {
            "title": "Permitted on or before",
            "type": "string",
            "description": "Latest permit date (YYYY-MM-DD), inclusive.  Leave empty for no upper bound."
          },
          "maxResults": {
            "title": "Maximum wells to scan",
            "minimum": 1,
            "maximum": 250000,
            "type": "integer",
            "description": "Upper limit on wells read from SONRIS in this run, newest permits first, then wells with no permit date.  Each published well is charged as one well-record event.",
            "default": 1000
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed wells (monitor mode)",
            "type": "boolean",
            "description": "When on, the Actor remembers each well's status, spud date, and completion date for this exact search and outputs only wells that are new or whose lifecycle moved since the previous run.  Unchanged wells are skipped and not charged.  Wells that drop out of the search are not reported.  Use it 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}