{
  "openapi": "3.0.1",
  "info": {
    "title": "AER Alberta Energy Regulator Reports & Well Licences MCP",
    "description": "Extract free self-serve Alberta Energy Regulator (AER) daily well licences (ST1), facility licences (ST97), spud/drilling activity (ST49/ST59), monthly energy statistics (ST3), pipeline approvals/notifications (ST96/ST100), and BA operator codes (ST104) as JSON, CSV, or via MCP.",
    "version": "0.1",
    "x-build-id": "XZs1fsFTzoYsZydFA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zertax~aer-alberta-energy-mcp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zertax-aer-alberta-energy-mcp",
        "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/zertax~aer-alberta-energy-mcp/runs": {
      "post": {
        "operationId": "runs-sync-zertax-aer-alberta-energy-mcp",
        "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/zertax~aer-alberta-energy-mcp/run-sync": {
      "post": {
        "operationId": "run-sync-zertax-aer-alberta-energy-mcp",
        "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": {
          "dataset": {
            "title": "AER Report Dataset",
            "enum": [
              "st1_well_licences",
              "st97_facility_licences",
              "st49_spud_drilling",
              "st59_drilling_activity",
              "st3_monthly_stats",
              "st96_pipeline_approvals",
              "st100_pipeline_notifications",
              "st104_ba_codes"
            ],
            "type": "string",
            "description": "Select which official Alberta Energy Regulator (AER) self-serve statistical report to extract.",
            "default": "st1_well_licences"
          },
          "year": {
            "title": "Report Year (Optional)",
            "minimum": 2017,
            "maximum": 2030,
            "type": "integer",
            "description": "Optional calendar year filter (e.g. 2025 or 2026) for multi-year archive reports (ST1, ST97, ST49, ST59, ST3, ST96, ST100). Leave blank to automatically fetch the newest published archive/edition."
          },
          "month": {
            "title": "Report Month 1-12 (Optional)",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Optional month number (1-12) for monthly/daily archives (ST1, ST97, ST49, ST96, ST100). Defaults to latest available monthly archive when omitted."
          },
          "st3Product": {
            "title": "ST3 Product (for st3_monthly_stats)",
            "enum": [
              "oil",
              "gas",
              "ngl",
              "propane",
              "butane",
              "ethane",
              "sulphur"
            ],
            "type": "string",
            "description": "Hydrocarbon commodity workbook to extract when dataset='st3_monthly_stats'.",
            "default": "oil"
          },
          "operatorQuery": {
            "title": "Filter by Licensee / Operator / Contractor",
            "type": "string",
            "description": "Optional case-insensitive substring filter on licensee, operator, permittee, company name, or drilling contractor (e.g. 'Canadian Natural', 'Tourmaline', 'Cenovus', 'ARC')."
          },
          "baCode": {
            "title": "Filter by AER BA Code",
            "type": "string",
            "description": "Optional exact AER Business Associate code filter (e.g. '0HE9', '0001'). Leading zeros are preserved."
          },
          "fieldCentre": {
            "title": "Filter by AER Field Centre",
            "type": "string",
            "description": "Optional case-insensitive filter on AER Field Centre (e.g. 'Grande Prairie', 'Bonnyville', 'Red Deer', 'Medicine Hat')."
          },
          "substance": {
            "title": "Filter by Substance / Fuel Type",
            "type": "string",
            "description": "Optional case-insensitive substring filter on substance or fuel type (e.g. 'CRUDE OIL', 'GAS', 'NG', 'OE', 'BITUMEN')."
          },
          "maxArchives": {
            "title": "Max Archive Files to Download",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Bounds how many newest archive files to scan on multi-archive reports (1 = latest monthly/current archive for fast low-cost runs).",
            "default": 1
          },
          "maxItems": {
            "title": "Max Output Records",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of normalized AER records to output across the run.",
            "default": 250
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}