{
  "openapi": "3.0.1",
  "info": {
    "title": "Gulf Coast USACE Permits & Wetland Determinations Monitor",
    "description": "Search U.S. Army Corps of Engineers regulatory permits, pending applications, and approved wetland jurisdictional determinations across the New Orleans, Galveston, Mobile, Jacksonville, and Vicksburg districts, or monitor new and changed records on a schedule.",
    "version": "0.1",
    "x-build-id": "d0auoQZ2hcbKcSH7C"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maniginam~gulf-coast-usace-permits/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maniginam-gulf-coast-usace-permits",
        "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~gulf-coast-usace-permits/runs": {
      "post": {
        "operationId": "runs-sync-maniginam-gulf-coast-usace-permits",
        "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~gulf-coast-usace-permits/run-sync": {
      "post": {
        "operationId": "run-sync-maniginam-gulf-coast-usace-permits",
        "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": {
          "districts": {
            "title": "USACE districts",
            "maxItems": 5,
            "uniqueItems": true,
            "type": "array",
            "description": "Pick one or more Gulf Coast Corps districts: MVN New Orleans (Louisiana), SWG Galveston (coastal Texas), SAM Mobile (Alabama, Mississippi coast, and the Florida panhandle), SAJ Jacksonville (peninsular Florida), and MVK Vicksburg (Mississippi, north Louisiana, and south Arkansas).  Leave empty to search all five.",
            "items": {
              "type": "string",
              "enum": [
                "MVN",
                "SWG",
                "SAM",
                "SAJ",
                "MVK"
              ],
              "enumTitles": [
                "MVN - New Orleans",
                "SWG - Galveston",
                "SAM - Mobile",
                "SAJ - Jacksonville",
                "MVK - Vicksburg"
              ]
            }
          },
          "recordTypes": {
            "title": "Record types",
            "maxItems": 9,
            "uniqueItems": true,
            "type": "array",
            "description": "Which USACE public records to search.  Leave empty for final permit decisions, pending applications, and approved jurisdictional determinations.",
            "items": {
              "type": "string",
              "enum": [
                "issued",
                "pending",
                "jds",
                "s408",
                "wrda",
                "dwhs",
                "nepa_ea",
                "nepa_eis",
                "emergency"
              ],
              "enumTitles": [
                "Final individual permit decision",
                "Pending individual permit application",
                "Approved jurisdictional determination",
                "Section 408 permission request",
                "Section 214 funded action",
                "Gulf restoration funded action",
                "NEPA environmental assessment",
                "NEPA environmental impact statement",
                "Emergency or natural disaster action"
              ]
            }
          },
          "dateFrom": {
            "title": "Action date on or after",
            "type": "string",
            "description": "Earliest action date (YYYY-MM-DD).  The action date is the decision date for permits, the determination date for jurisdictional determinations, the received date for pending applications, and the event begin date for emergency actions.  Records with no action date are left out when a date range is set.  Leave empty for no lower bound."
          },
          "dateTo": {
            "title": "Action date on or before",
            "type": "string",
            "description": "Latest action date (YYYY-MM-DD), inclusive.  Leave empty for no upper bound."
          },
          "permitTypes": {
            "title": "Permit types",
            "maxItems": 7,
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only these permit types.  Applies to permit decisions and pending applications; other record types have no permit type and are left out when this is set.  Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Standard Permit",
                "Letter of Permission",
                "Nationwide Permit",
                "Regional General Permit",
                "Programmatic General Permit",
                "Permit Modification",
                "Pre-Application Consultation"
              ]
            }
          },
          "statusContains": {
            "title": "Status contains",
            "pattern": "^[A-Za-z0-9 ()/,.-]*$",
            "maxLength": 80,
            "type": "string",
            "description": "Case-insensitive text that must appear in the record status, for example Issued, Denied, Withdrawn, or Under Construction.  Letters, digits, spaces, and ( ) / , . - only, up to 80 characters.  Leave empty for all statuses."
          },
          "keyword": {
            "title": "Keyword",
            "maxLength": 400,
            "type": "string",
            "description": "Words that must appear somewhere in the record, such as an applicant, project, or parish name (for example Cameron or pipeline).  Matching is case-insensitive and every word must match.  Up to 8 words.  Leave empty for no keyword filter."
          },
          "boundingBox": {
            "title": "Map area (bounding box)",
            "maxLength": 120,
            "type": "string",
            "description": "Optional area as west,south,east,north in decimal degrees, for example -94.1,28.9,-88.8,33.1 for Louisiana.  Records without coordinates are left out when an area is set.  Leave empty for the whole district."
          },
          "maxResults": {
            "title": "Maximum records to publish",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Upper limit on records published in this run.  USACE lists records district by district, newest first within each district for permits, applications, and determinations.  Each published record is charged as one usace-permit-record event.",
            "default": 1000
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed records (monitor mode)",
            "type": "boolean",
            "description": "When on, the Actor remembers each record's status, action date, permit type, determination type, public notice date, final EA date, and document link for this exact search, and outputs only records that are new or changed since the previous run.  Unchanged records are skipped and not charged.  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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}