{
  "openapi": "3.0.1",
  "info": {
    "title": "InciWeb Wildfire & Incident Scraper",
    "description": "Scrape InciWeb (inciweb.wildfire.gov) - the official U.S. federal incident information system for wildfires, prescribed fires, and burned-area response. Browse active incidents, filter by state/type/containment, or fetch full incident detail by ID.",
    "version": "1.0",
    "x-build-id": "07imxddmQmzyNXrSc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~inciweb-wildfire-incident-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-inciweb-wildfire-incident-scraper",
        "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/crawlerbros~inciweb-wildfire-incident-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-inciweb-wildfire-incident-scraper",
        "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/crawlerbros~inciweb-wildfire-incident-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-inciweb-wildfire-incident-scraper",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "browse",
              "byIncidentIds"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "browse"
          },
          "searchQuery": {
            "title": "Search by incident name (mode=browse)",
            "type": "string",
            "description": "Free-text search matched against incident names, e.g. `fire`, `complex`, `creek`."
          },
          "state": {
            "title": "State / territory (mode=browse)",
            "enum": [
              "",
              "Alabama",
              "Alaska",
              "Arizona",
              "Arkansas",
              "California",
              "Colorado",
              "Connecticut",
              "Delaware",
              "District of Columbia",
              "Florida",
              "Georgia",
              "Hawaii",
              "Idaho",
              "Illinois",
              "Indiana",
              "Iowa",
              "Kansas",
              "Kentucky",
              "Louisiana",
              "Maine",
              "Maryland",
              "Massachusetts",
              "Michigan",
              "Minnesota",
              "Mississippi",
              "Missouri",
              "Montana",
              "Nebraska",
              "Nevada",
              "New Hampshire",
              "New Jersey",
              "New Mexico",
              "New York",
              "North Carolina",
              "North Dakota",
              "Ohio",
              "Oklahoma",
              "Oregon",
              "Pennsylvania",
              "Rhode Island",
              "South Carolina",
              "South Dakota",
              "Tennessee",
              "Texas",
              "Utah",
              "Vermont",
              "Virginia",
              "Washington",
              "West Virginia",
              "Wisconsin",
              "Wyoming",
              "Puerto Rico",
              "Guam",
              "American Samoa",
              "U.S. Virgin Islands",
              "Northern Mariana Islands"
            ],
            "type": "string",
            "description": "Restrict results to a single U.S. state or territory.",
            "default": ""
          },
          "incidentType": {
            "title": "Incident type (mode=browse)",
            "enum": [
              "",
              "Wildfire",
              "Prescribed Fire",
              "Burned Area Emergency Response",
              "Complex",
              "All Hazard",
              "Other"
            ],
            "type": "string",
            "description": "Restrict results to a single incident type.",
            "default": ""
          },
          "containmentStatus": {
            "title": "Containment status (mode=browse)",
            "enum": [
              "",
              "Uncontained",
              "Partially Contained",
              "Fully Contained"
            ],
            "type": "string",
            "description": "Restrict results by containment percentage. Incidents that don't report a containment percentage always pass through regardless of this filter.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort by (mode=browse)",
            "enum": [
              "field_last_209_update",
              "title",
              "field_incident_type",
              "field_state",
              "field_incident_size"
            ],
            "type": "string",
            "description": "Field to sort the incident list by before applying maxItems.",
            "default": "field_last_209_update"
          },
          "sortOrder": {
            "title": "Sort order (mode=browse)",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Ascending or descending sort order.",
            "default": "desc"
          },
          "incidentIds": {
            "title": "Incident IDs / slugs / URLs (mode=byIncidentIds)",
            "type": "array",
            "description": "Accepts InciWeb incident URLs (`https://inciweb.wildfire.gov/incident-information/<slug>`), bare slugs (`casrf-dillon-fire`), or numeric node IDs (`325729`).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on emitted records. In `browse` mode this is capped in practice by how many incidents InciWeb is currently tracking nationwide (it only lists incidents with an active managing unit/IMT -- typically 50-150 at once, more during peak wildfire season, occasionally near 0 in the off-season). InciWeb's `/accessible-view` list is not paginated server-side, so the actor always returns every currently tracked incident that matches your filters, up to this cap -- it will never silently under-fetch below the true live total.",
            "default": 20
          },
          "includeNews": {
            "title": "Include news updates",
            "type": "boolean",
            "description": "Fetch each incident's news-update feed (situation reports, daily/evening updates) and attach it as `newsUpdates`. Adds one extra request per incident.",
            "default": false
          },
          "includeClosures": {
            "title": "Include road/area closures",
            "type": "boolean",
            "description": "Fetch each incident's closure orders (roads, trails, areas) and attach them as `closures`, including the order number when published. Adds one extra request per incident.",
            "default": false
          },
          "includePhotos": {
            "title": "Include photo gallery",
            "type": "boolean",
            "description": "Fetch each incident's photo gallery and attach it as `photos` (image URL, caption, date). Adds one extra request per incident.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}