{
  "openapi": "3.0.1",
  "info": {
    "title": "Environmental Records Report - ASTM E1527 Records Screen PDF",
    "description": "One HTML + PDF Environmental Records Report per US property: ASTM E1527-21 Sec. 8.2 federal records at standard search distances, Sec. 8.3 prior uses, historical topo coverage, tank/spill registries, 20-layer site screen, live drift-gate page, explicit not-included page. $2.50/report + child rows.",
    "version": "1.0",
    "x-build-id": "CcDbj4vRQc0uGdU7V"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/malonestar~environmental-records-report/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-malonestar-environmental-records-report",
        "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/malonestar~environmental-records-report/runs": {
      "post": {
        "operationId": "runs-sync-malonestar-environmental-records-report",
        "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/malonestar~environmental-records-report/run-sync": {
      "post": {
        "operationId": "run-sync-malonestar-environmental-records-report",
        "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": [
          "properties"
        ],
        "properties": {
          "properties": {
            "title": "Properties",
            "type": "array",
            "description": "One report is generated per property. Each item is EITHER {\"address\": \"5980 Lipan St, Denver, CO 80221\", \"label\": \"...\"} (geocoded with the free US Census geocoder) OR {\"lat\": 39.8037, \"lon\": -104.9986, \"label\": \"...\", \"state\": \"CO\" (optional 2-letter hint)}. A property that cannot be resolved to coordinates gets a dataset row with report_status=not_screened and is NOT charged. Each generated report is one $2.50 report-generated event (list price; paid Apify plans pay less) PLUS the five child screeners' own per-result charges on your account (measured $0.98-1.32 per property at 1 mile; capped at $2.40). Before calling any child the run checks that its charge limit covers the report fee plus that $2.40 worst case per property, so one property fits a free plan's $5 monthly credit."
          },
          "layers": {
            "title": "Layers to include",
            "type": "array",
            "description": "Which record layers the report is composed from. Each layer is one Actor-to-Actor call to a published malonestar screener on its latest build. Leave all five selected for the full appendix. A layer whose child screener does not answer is rendered as an explicit 'UNAVAILABLE - NOT SCREENED' page and the report status becomes 'partial'; a report is 'complete' only when every requested layer answered in full.",
            "items": {
              "type": "string",
              "enum": [
                "federal_records",
                "prior_uses",
                "historical_topo",
                "tank_spill",
                "site_screen"
              ],
              "enumTitles": [
                "ASTM Sec. 8.2 federal records (epa-contaminated-site-screener)",
                "ASTM Sec. 8.3 prior uses + state/tribal inventory (historic-land-use-sic-contaminant-screener)",
                "ASTM Sec. 8.3.4 historical topo coverage (usgs-historical-topo-records-review)",
                "Tank / spill registries (state-tank-spill-registry-screener)",
                "20-layer site screen (site-due-diligence-bundle)"
              ]
            }
          },
          "radiusMiles": {
            "title": "Search radius (miles)",
            "minimum": 0.25,
            "maximum": 5,
            "type": "number",
            "description": "Radius for the federal records table, the tank/spill table and the site screen. 1 mile is the largest ASTM E1527-21 Sec. 8.2.1 standard search distance and the working default; the ASTM summary always evaluates each database at its own standard distance regardless. Accepts fractional miles, range 0.25-5."
          },
          "priorUseRadiusMiles": {
            "title": "Prior-use radius (miles)",
            "minimum": 0.02,
            "maximum": 1,
            "type": "number",
            "description": "Radius for the ASTM Sec. 8.3 prior-uses layer. The standard concerns the subject and adjoining properties, so 0.25 mile is the working default; 1 mile is the maximum. Accepts fractional miles, range 0.02-1."
          },
          "topoReviewStartYear": {
            "title": "Topo review start year",
            "minimum": 1880,
            "maximum": 2020,
            "type": "integer",
            "description": "First year of the ASTM Sec. 8.3.4 historical-map review window passed to the topographic layer. 1940 is the standard baseline; set it earlier when the property has an obvious first developed use before 1940. Range 1880-2020."
          },
          "includePdf": {
            "title": "Also render a PDF",
            "type": "boolean",
            "description": "When true (recommended) each report is stored both as HTML and as a PDF in the run's key-value store, and the dataset row carries report_pdf_url. When false only the HTML (and the JSON model) are stored. Does not change billing."
          },
          "maxProperties": {
            "title": "Maximum properties to screen",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Safety cap on how many of the supplied properties are screened and billed in this run. Leave empty to screen every property supplied. Properties beyond the cap get a dataset row with report_status=not_screened and are not charged. The run also caps itself at what the run's charge limit can pay for."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}