{
  "openapi": "3.0.1",
  "info": {
    "title": "GeoRisk Site Screener: flood risk, contamination, EUDR",
    "description": "Site risk screening for any coordinates, address or plot: flood risk, climate risk (heat, drought), up-gradient contamination for pre-Phase I environmental due diligence, EUDR deforestation and protected areas, and solar potential. A-F grades, a red/yellow/green verdict and a PDF-ready report.",
    "version": "1.0",
    "x-build-id": "P2IlKydgGaXYcuR2a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/translucent_wire~georisk-site-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-translucent_wire-georisk-site-intelligence",
        "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/translucent_wire~georisk-site-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-translucent_wire-georisk-site-intelligence",
        "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/translucent_wire~georisk-site-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-translucent_wire-georisk-site-intelligence",
        "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": {
          "locations": {
            "title": "Sites to screen",
            "type": "array",
            "description": "One object per site. Use latitude + longitude, or an address, or a GeoJSON polygon (the polygon centroid is screened and the plot area is reported). Optional: id (used in report file names) and name. Example: [{\"id\": \"plot-7\", \"name\": \"Warehouse lot\", \"latitude\": 29.7355, \"longitude\": -95.2310}, {\"address\": \"Kaukauna, Wisconsin\"}]."
          },
          "addresses": {
            "title": "Addresses (quick list)",
            "type": "array",
            "description": "Optional: paste street addresses or place names, one per line. Each is geocoded with OpenStreetMap and screened like a site.",
            "items": {
              "type": "string"
            }
          },
          "useCase": {
            "title": "Use case (sets the score weights)",
            "enum": [
              "general",
              "real_estate",
              "solar",
              "eudr",
              "insurance"
            ],
            "type": "string",
            "description": "Changes how the combined risk score weighs each category and which findings count as deal-breakers.",
            "default": "general"
          },
          "radiusMeters": {
            "title": "Search radius for contamination sources and receptors (m)",
            "minimum": 250,
            "maximum": 5000,
            "type": "integer",
            "description": "Radius around each site for fuel stations, dry cleaners, industrial land, landfills, wetlands, rivers, protected areas and forest. 1,500 m is close to the ASTM E1527-21 search distances for most record types.",
            "default": 1500
          },
          "generateReports": {
            "title": "Branded executive report (HTML, print to PDF)",
            "type": "boolean",
            "description": "Creates one self-contained executive scorecard per site with gauges, the elevation matrix, the up/down-gradient source table and the solar ROI math. The link is in each result row.",
            "default": true
          },
          "climateYears": {
            "title": "Climate history (years)",
            "minimum": 3,
            "maximum": 30,
            "type": "integer",
            "description": "How many full past years of ERA5 daily reanalysis to analyse for heat, rain, drought and solar irradiation.",
            "default": 10
          },
          "floodHistoryYears": {
            "title": "River discharge history (years)",
            "minimum": 5,
            "maximum": 40,
            "type": "integer",
            "description": "Years of daily GloFAS river discharge used for percentiles, annual peaks and the Gumbel 10-year and 100-year flood estimates.",
            "default": 20
          },
          "solarSystemKwp": {
            "title": "Reference solar system size (kWp)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "System size used for annual MWh, revenue, payback, LCOE and NPV.",
            "default": 500
          },
          "performanceRatio": {
            "title": "Performance ratio",
            "pattern": "^[0-9]*\\.?[0-9]+$",
            "type": "string",
            "description": "Share of irradiation turned into AC energy after all losses (0.5 to 0.95). 0.78 is a common conservative value.",
            "default": "0.78"
          },
          "tiltGainFactor": {
            "title": "Tilt gain factor",
            "pattern": "^[0-9]*\\.?[0-9]+$",
            "type": "string",
            "description": "Multiplier from horizontal to tilted-panel irradiation. 1.0 = horizontal (conservative); about 1.10-1.20 for fixed optimal tilt at mid latitudes; about 1.25-1.35 for single-axis trackers.",
            "default": "1.0"
          },
          "electricityPriceUsdPerKwh": {
            "title": "Electricity price or PPA tariff (USD per kWh)",
            "pattern": "^[0-9]*\\.?[0-9]+$",
            "type": "string",
            "description": "Value of each kWh produced (retail price saved or PPA tariff).",
            "default": "0.12"
          },
          "solarCapexUsdPerWp": {
            "title": "Installed cost (USD per Wp)",
            "pattern": "^[0-9]*\\.?[0-9]+$",
            "type": "string",
            "description": "All-in installed cost per watt-peak used for capex, payback, LCOE and NPV.",
            "default": "0.90"
          },
          "opexPercentOfCapex": {
            "title": "Yearly O&M cost (% of capex)",
            "pattern": "^[0-9]*\\.?[0-9]+$",
            "type": "string",
            "description": "Operation and maintenance cost per year as a percentage of capex.",
            "default": "1.5"
          },
          "discountRatePercent": {
            "title": "Discount rate (%)",
            "pattern": "^[0-9]*\\.?[0-9]+$",
            "type": "string",
            "description": "Discount rate for LCOE and NPV.",
            "default": "7"
          },
          "degradationPercentPerYear": {
            "title": "Panel degradation (% per year)",
            "pattern": "^[0-9]*\\.?[0-9]+$",
            "type": "string",
            "description": "Yearly output loss of the panels.",
            "default": "0.5"
          },
          "lifetimeYears": {
            "title": "Project lifetime (years)",
            "minimum": 5,
            "maximum": 50,
            "type": "integer",
            "description": "Years used for LCOE and NPV.",
            "default": 25
          },
          "gridEmissionFactorKgPerKwh": {
            "title": "Grid emission factor (kg CO2 per kWh)",
            "pattern": "^[0-9]*\\.?[0-9]+$",
            "type": "string",
            "description": "Used for CO2 avoided per year. About 0.4 is a world average; use your grid's value.",
            "default": "0.40"
          },
          "brandName": {
            "title": "Your company name on the report",
            "type": "string",
            "description": "Shown in the report header (white-label)."
          },
          "brandLogoUrl": {
            "title": "Logo URL (https)",
            "type": "string",
            "description": "Public https link to your logo (PNG, JPG or SVG)."
          },
          "brandColor": {
            "title": "Brand colour",
            "type": "string",
            "description": "Hex colour for headings and accents, for example #0b5cab.",
            "default": "#0b5cab"
          },
          "preparedFor": {
            "title": "Prepared for (client name)",
            "type": "string",
            "description": "Optional client name printed on each report."
          },
          "brandContact": {
            "title": "Contact line",
            "type": "string",
            "description": "Optional contact line for the report header, for example your email and website."
          },
          "openMeteoApiKey": {
            "title": "Open-Meteo API key (optional, adds river flow and air quality)",
            "type": "string",
            "description": "Without a key, the Actor uses open-licence data: OpenStreetMap, open terrain tiles (SRTM / 3DEP / EU-DEM) and NASA POWER climate and solar. Add your own key from a paid Open-Meteo plan (open-meteo.com/en/pricing) to also get 20 years of river discharge, the 30-day river forecast and air quality vs WHO, and Copernicus DEM / ERA5 data. The key is stored encrypted and never written to the results."
          },
          "llmProvider": {
            "title": "AI-written executive summary",
            "enum": [
              "auto",
              "none",
              "openai",
              "gemini"
            ],
            "type": "string",
            "description": "Optional. The built-in summary works without any AI. Choose a provider and add your own key to have the summary rewritten from the computed facts only.",
            "default": "auto"
          },
          "openaiApiKey": {
            "title": "OpenAI API key",
            "type": "string",
            "description": "Your own OpenAI key. Stored encrypted by Apify and never written to the results."
          },
          "geminiApiKey": {
            "title": "Gemini API key",
            "type": "string",
            "description": "Your own Google AI Studio key. Stored encrypted by Apify and never written to the results."
          },
          "llmModel": {
            "title": "AI model name",
            "type": "string",
            "description": "Optional model name. Defaults: gpt-4.1-mini (OpenAI) or gemini-2.5-flash (Gemini)."
          },
          "maxConcurrency": {
            "title": "Sites screened in parallel",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Keep this low (1-5): the public data services have fair-use limits.",
            "default": 3
          },
          "maxSites": {
            "title": "Maximum sites per run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Safety cap on the number of sites screened in one run.",
            "default": 500
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}