{
  "openapi": "3.0.1",
  "info": {
    "title": "BreeamPulse — BRE GreenBookLive, BREEAM & EN 15804 EPD API",
    "version": "1.0",
    "x-build-id": "I048Dbt9Ca12uxa6A"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/clestigon~breeampulse-greenbooklive-breeam-epd-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-clestigon-breeampulse-greenbooklive-breeam-epd-api",
        "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/clestigon~breeampulse-greenbooklive-breeam-epd-api/runs": {
      "post": {
        "operationId": "runs-sync-clestigon-breeampulse-greenbooklive-breeam-epd-api",
        "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/clestigon~breeampulse-greenbooklive-breeam-epd-api/run-sync": {
      "post": {
        "operationId": "run-sync-clestigon-breeampulse-greenbooklive-breeam-epd-api",
        "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": {
          "targetSchemes": {
            "title": "Target BRE Global / BREEAM Schemes",
            "type": "array",
            "description": "Select which official BRE Global GreenBookLive schemes to extract: 'epd_members' (EN 15804 Verified EPD Members & BREG EN EPD Certificates - id=272/260), 'breeam_assessments' (Certified BREEAM Building Assessments - id=202), 'breeam_assessors' (BREEAM Licensed Assessors - id=214), 'breeam_ap' (BREEAM Accredited Professionals - id=172), 'site_sustainability' (Site Sustainability Managers - id=317).",
            "items": {
              "type": "string",
              "enum": [
                "epd_members",
                "breeam_assessments",
                "breeam_assessors",
                "breeam_ap",
                "site_sustainability"
              ],
              "enumTitles": [
                "EN 15804 Verified EPD Members & BREG EN EPD Certificates (id=272/260)",
                "Certified BREEAM Building Assessments (id=202)",
                "BREEAM Licensed Assessors Directory (id=214)",
                "BREEAM Accredited Professionals - BREEAM AP (id=172)",
                "Site Sustainability Managers - SSM (id=317)"
              ]
            },
            "default": [
              "epd_members",
              "breeam_assessments",
              "breeam_assessors",
              "breeam_ap"
            ]
          },
          "searchQuery": {
            "title": "Company / Assessor / Building / Certificate Keyword",
            "type": "string",
            "description": "Optional filter by company name, assessor organisation, building name, or BREG EN EPD / BREEAM certificate number (e.g., 'Klasse', 'Cares', 'Steel', 'London', 'BREG EN EPD').",
            "default": ""
          },
          "country": {
            "title": "Country Filter",
            "type": "string",
            "description": "Optional country filter across 75+ countries in GreenBookLive (e.g., 'United Kingdom', 'Germany', 'Netherlands', 'Spain', 'Sweden', 'United States', 'Singapore').",
            "default": ""
          },
          "breeamRating": {
            "title": "BREEAM Rating Filter (For Building Assessments)",
            "type": "string",
            "description": "Optional BREEAM rating filter for building assessments ('Outstanding', 'Excellent', 'Very good', 'Good', 'Pass', 'Acceptable').",
            "default": ""
          },
          "directUrls": {
            "title": "Direct GreenBookLive Scheme or Member URLs (Optional)",
            "type": "array",
            "description": "Optional list of direct GreenBookLive URLs (e.g., https://www.greenbooklive.com/search/scheme.jsp?id=300 or https://www.greenbooklive.com/search/scheme.jsp?id=417) to extract immediately.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "enrichWebsiteContacts": {
            "title": "1-Click HTTP Website Contact Enricher (Optional)",
            "type": "boolean",
            "description": "When enabled, performs a lightweight HTTP check on discovered member/assessor websites to extract additional public business emails, LinkedIn company URLs, and phone numbers.",
            "default": false
          },
          "maxItems": {
            "title": "Max Certified Records to Extract",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of certified products, EPDs, BREEAM buildings, or assessor records to output. Keep small (10-25) for fast AI agent / MCP queries.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}