{
  "openapi": "3.0.1",
  "info": {
    "title": "Net Zero Air",
    "description": "Compare indoor and outdoor air. Ventilate when the outside holds less heat and less water.",
    "version": "0.0",
    "x-build-id": "KyZ87XqRZFBIWPGdc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sciguy~psychrometrics/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sciguy-psychrometrics",
        "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/sciguy~psychrometrics/runs": {
      "post": {
        "operationId": "runs-sync-sciguy-psychrometrics",
        "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/sciguy~psychrometrics/run-sync": {
      "post": {
        "operationId": "run-sync-sciguy-psychrometrics",
        "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": [
          "units",
          "indoor_dry_bulb",
          "indoor_relative_humidity",
          "outdoor_dry_bulb",
          "outdoor_relative_humidity"
        ],
        "properties": {
          "units": {
            "title": "Units",
            "enum": [
              "metric",
              "imperial"
            ],
            "type": "string",
            "description": "Unit system for every quantity in this request and in the response.",
            "default": "metric"
          },
          "intent": {
            "title": "Intent",
            "enum": [
              "both",
              "cooling",
              "drying"
            ],
            "type": "string",
            "description": "both opens outdoor air only when it is lighter and not wetter. cooling accepts extra moisture if enthalpy is lower. drying accepts extra heat if the outdoor air holds less water.",
            "default": "both"
          },
          "indoor_dry_bulb": {
            "title": "Indoor dry-bulb",
            "type": "number",
            "description": "Indoor air temperature. °C if metric, °F if imperial."
          },
          "indoor_relative_humidity": {
            "title": "Indoor relative humidity",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Indoor relative humidity (%). Omit if you send indoor_humidity_ratio instead."
          },
          "indoor_humidity_ratio": {
            "title": "Indoor humidity ratio",
            "minimum": 0,
            "type": "number",
            "description": "Indoor humidity ratio. kg/kg if metric, grains/lb if imperial. Use this or indoor relative humidity."
          },
          "outdoor_dry_bulb": {
            "title": "Outdoor dry-bulb",
            "type": "number",
            "description": "Outdoor air temperature. °C if metric, °F if imperial."
          },
          "outdoor_relative_humidity": {
            "title": "Outdoor relative humidity",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Outdoor relative humidity (%)."
          },
          "outdoor_humidity_ratio": {
            "title": "Outdoor humidity ratio",
            "minimum": 0,
            "type": "number",
            "description": "Outdoor humidity ratio. kg/kg if metric, grains/lb if imperial."
          },
          "pressure": {
            "title": "Atmospheric pressure",
            "minimum": 0,
            "type": "number",
            "description": "Station pressure shared by both readings. hPa if metric, inHg if imperial. Provide this or elevation."
          },
          "pressure_type": {
            "title": "Pressure type",
            "enum": [
              "absolute",
              "sea_level"
            ],
            "type": "string",
            "description": "absolute is station pressure. sea_level is reduced to station pressure with elevation.",
            "default": "absolute"
          },
          "elevation": {
            "title": "Elevation",
            "type": "number",
            "description": "Site elevation. m if metric, ft if imperial. Used alone to estimate pressure, or with sea-level pressure."
          },
          "enthalpy_margin": {
            "title": "Enthalpy margin",
            "minimum": 0,
            "type": "number",
            "description": "Outdoor enthalpy must be lower than indoor by this much before it counts. kJ/kg if metric, Btu/lb if imperial. Default 0.5 kJ/kg."
          },
          "water_margin": {
            "title": "Water margin",
            "minimum": 0,
            "type": "number",
            "description": "Extra outdoor water ignored before a reading counts as wetter. mL/m³ if metric, fl oz per 1,000 ft³ if imperial. Default 0."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}