{
  "openapi": "3.0.1",
  "info": {
    "title": "KeymarkPulse — CEN Heat Pump & Solar KEYMARK Certified API",
    "version": "1.0",
    "x-build-id": "mgPGfxosb1k6RbYc4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/clestigon~keymarkpulse-cen-heat-pump-solar-keymark-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-clestigon-keymarkpulse-cen-heat-pump-solar-keymark-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~keymarkpulse-cen-heat-pump-solar-keymark-api/runs": {
      "post": {
        "operationId": "runs-sync-clestigon-keymarkpulse-cen-heat-pump-solar-keymark-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~keymarkpulse-cen-heat-pump-solar-keymark-api/run-sync": {
      "post": {
        "operationId": "run-sync-clestigon-keymarkpulse-cen-heat-pump-solar-keymark-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": {
          "datasetType": {
            "title": "Dataset Type",
            "enum": [
              "all",
              "heatpump_subtypes",
              "certificate_holders",
              "certification_bodies"
            ],
            "type": "string",
            "description": "Select the KEYMARK registry view to query: Heat Pump Certified Subtypes & Models, Certificate Holders (160+ Manufacturers), Empowered Certification Bodies, or All Combined.",
            "default": "all"
          },
          "certificateHolder": {
            "title": "Certificate Holder / Manufacturer Filter",
            "type": "string",
            "description": "Optional manufacturer or brand filter (e.g., 'Vaillant', 'Viessmann', 'Daikin', 'Bosch', 'Mitsubishi', 'Nibe', 'Panasonic', 'ait-deutschland', 'LG', 'Samsung', 'Stiebel Eltron'). Leave empty for all holders.",
            "default": ""
          },
          "heatPumpType": {
            "title": "Heat Pump Type / Refrigerant Loop Filter",
            "enum": [
              "all",
              "Outdoor Air/Water",
              "Brine/Water",
              "Water/Water",
              "Exhaust Air/Water",
              "Domestic Hot Water (DHW)"
            ],
            "type": "string",
            "description": "Filter by heat pump category or heat source/sink configuration.",
            "default": "all"
          },
          "country": {
            "title": "Country / Market Filter",
            "type": "string",
            "description": "Optional country name or ISO code filter (e.g., 'Germany', 'DE', 'Sweden', 'France', 'Italy', 'United Kingdom', 'Japan', 'China'). Leave empty for all countries.",
            "default": ""
          },
          "certificationBody": {
            "title": "Certification Body / Prefix Filter",
            "type": "string",
            "description": "Optional certification body name or registration code prefix (e.g., '011' or 'DIN CERTCO', '041' or 'BRE Global', '037' or 'SZU', '012' or 'IMA', '047' or 'UL'). Leave empty for all.",
            "default": ""
          },
          "searchQuery": {
            "title": "Keyword / Registration Number / Standard Search",
            "type": "string",
            "description": "Optional keyword, model name, registration number (e.g., '041-K001-26', '011-1W'), or standard (e.g., 'EN 14825', 'EN 14511', 'EN 12102', 'EN 16147', 'R290').",
            "default": ""
          },
          "exportFormatPreset": {
            "title": "Output Format Preset (Airtable / n8n / ESG Analytics)",
            "enum": [
              "standard",
              "airtable",
              "b2b_leads_only"
            ],
            "type": "string",
            "description": "Select field flattening preset for downstream B2B HVAC procurement, EU green subsidy verification (BAFA, Boiler Upgrade Scheme, MaPrimeRenov), or CRM workflows.",
            "default": "standard"
          },
          "maxItems": {
            "title": "Max Items to Extract",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of certified records to extract and charge via Pay-Per-Event ($6.00 per 1,000 records).",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify Proxy settings for high-volume extraction across keymark.eu and heatpumpkeymark.com.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}