{
  "openapi": "3.0.1",
  "info": {
    "title": "EPA WaterSense Product Search, UPC Lookup & Monitor",
    "description": "Search and export the official EPA WaterSense labeled product list (≈50K toilets, faucets, showerheads, urinals, irrigation controllers, sprinkler bodies and RO systems). Check UPCs or model numbers in bulk, filter by flow rate, and get alerts for newly labeled or delisted products.",
    "version": "0.1",
    "x-build-id": "emHEe945rVlCvHKPi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/prudent_businessman~epa-watersense-product-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-prudent_businessman-epa-watersense-product-search",
        "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/prudent_businessman~epa-watersense-product-search/runs": {
      "post": {
        "operationId": "runs-sync-prudent_businessman-epa-watersense-product-search",
        "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/prudent_businessman~epa-watersense-product-search/run-sync": {
      "post": {
        "operationId": "run-sync-prudent_businessman-epa-watersense-product-search",
        "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": {
          "categories": {
            "title": "Product categories",
            "type": "array",
            "description": "Leave empty for all categories.",
            "items": {
              "type": "string",
              "enum": [
                "tank_type_toilets",
                "flushometer_valve_toilets",
                "lavatory_faucets",
                "showerheads",
                "urinals",
                "weather_based_irrigation_controllers",
                "soil_moisture_irrigation_controllers",
                "spray_sprinkler_bodies",
                "reverse_osmosis_systems"
              ],
              "enumTitles": [
                "Tank-Type Toilets",
                "Flushometer-Valve Toilets",
                "Bathroom Sink Faucets & Accessories",
                "Showerheads",
                "Urinals",
                "Weather-Based Irrigation Controllers",
                "Soil Moisture-Based Irrigation Controllers",
                "Spray Sprinkler Bodies",
                "Point-of-Use Reverse Osmosis Systems"
              ]
            }
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Brand contains (case-insensitive), e.g. Moen, Kohler, TOTO.",
            "items": {
              "type": "string"
            }
          },
          "upcs": {
            "title": "UPC / GTIN lookup",
            "type": "array",
            "description": "Check whether these UPCs belong to a WaterSense labeled product. Leading zeros are ignored. Unmatched UPCs are reported with watersenseLabeled=false.",
            "items": {
              "type": "string"
            }
          },
          "model_numbers": {
            "title": "Model numbers",
            "type": "array",
            "description": "Exact model numbers (spaces, dashes and dots ignored) or wildcard patterns with * and ?.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Keep products where any keyword appears in brand, model name/number, category or specs.",
            "items": {
              "type": "string"
            }
          },
          "max_flow_rate_gpm": {
            "title": "Max flow rate (gpm)",
            "type": "string",
            "description": "Faucets/showerheads: only products at or below this flow rate, e.g. 1.5"
          },
          "max_flush_volume_gpf": {
            "title": "Max flush volume (gpf)",
            "type": "string",
            "description": "Toilets/urinals: only products at or below this flush volume, e.g. 1.1"
          },
          "only_new": {
            "title": "Monitor mode: only new products",
            "type": "boolean",
            "description": "Output only products added to the WaterSense list since the last run (changeType=added). First run outputs everything as baseline.",
            "default": false
          },
          "report_removed": {
            "title": "Monitor mode: also report delisted products",
            "type": "boolean",
            "description": "In monitor mode, also output products that disappeared from the list (changeType=removed).",
            "default": true
          },
          "output_not_found": {
            "title": "Report UPCs/models not found",
            "type": "boolean",
            "description": "For UPC/model lookups, add a row for each query that matched no WaterSense product.",
            "default": true
          },
          "max_items": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no limit.",
            "default": 0
          },
          "state_store_name": {
            "title": "State store name",
            "type": "string",
            "description": "Named key-value store for monitor state and cached export link.",
            "default": "epa-watersense-state"
          },
          "epa_api_key": {
            "title": "EPA API key (optional)",
            "type": "string",
            "description": "Optional free api.data.gov key (https://api.data.gov/signup/). Only used to fetch the daily export link; without it the Actor uses its own key or DEMO_KEY."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}