{
  "openapi": "3.0.1",
  "info": {
    "title": "Louisiana Orphan Oil & Gas Wells (SONRIS / OSR)",
    "description": "Search Louisiana's official Act 404 orphan well inventory by parish, operator, and orphan date, or monitor newly orphaned wells and status changes on a schedule.",
    "version": "0.1",
    "x-build-id": "PtpMwtjlnrQTPooxX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maniginam~louisiana-orphan-wells/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maniginam-louisiana-orphan-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-orphan-wells/runs": {
      "post": {
        "operationId": "runs-sync-maniginam-louisiana-orphan-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-orphan-wells/run-sync": {
      "post": {
        "operationId": "run-sync-maniginam-louisiana-orphan-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 of record, for example STANDARD or JONES.  Letters, digits, spaces, and & . , ' ( ) / - only, up to 80 characters.  Leave empty for all operators."
          },
          "orphanedSince": {
            "title": "Orphaned on or after",
            "type": "string",
            "description": "Earliest well status date (YYYY-MM-DD), which is when SONRIS recorded the well as orphaned.  Leave empty for no lower bound."
          },
          "orphanedUntil": {
            "title": "Orphaned on or before",
            "type": "string",
            "description": "Latest well status date (YYYY-MM-DD), inclusive.  Leave empty for no upper bound."
          },
          "maxResults": {
            "title": "Maximum orphan wells to scan",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Upper limit on orphan wells read from SONRIS in this run, newest status dates first, then wells with no status date.  Each published well is charged as one orphan-well-record event.",
            "default": 1000
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed orphan wells (monitor mode)",
            "type": "boolean",
            "description": "When on, the Actor remembers each orphan well's status, status date, and orphan status codes for this exact search and outputs only wells that are new or whose orphan status moved since the previous run.  Unchanged wells are skipped and not charged.  Wells that are no longer orphaned (for example plugged) 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}