{
  "openapi": "3.0.1",
  "info": {
    "title": "France RGE Contractors — Energy Renovation Companies",
    "description": "List French RGE-certified contractors (heat pumps, insulation, solar, windows, energy audits) from the ADEME open-data API. One row per company with phone, email, website, address and all qualifications. Filter by department, work domain or certifying body.",
    "version": "0.1",
    "x-build-id": "Z161ohjU4G3ZPS7Co"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/openregistry~france-rge-contractors/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-openregistry-france-rge-contractors",
        "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/openregistry~france-rge-contractors/runs": {
      "post": {
        "operationId": "runs-sync-openregistry-france-rge-contractors",
        "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/openregistry~france-rge-contractors/run-sync": {
      "post": {
        "operationId": "run-sync-openregistry-france-rge-contractors",
        "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": {
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Department codes, e.g. 75, 35, 2A, 974. Combined with postal codes (either matches).",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "Five-digit postal codes, e.g. 35000.",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Work domains",
            "type": "array",
            "description": "Keep companies holding a valid qualification in at least one of these domains.",
            "items": {
              "type": "string",
              "enum": [
                "Pompe à chaleur : chauffage",
                "Chauffe-Eau Thermodynamique",
                "Isolation par l'intérieur des murs ou rampants de toitures  ou plafonds",
                "Isolation des combles perdus",
                "Isolation des murs par l'extérieur",
                "Isolation des toitures terrasses ou des toitures par l'extérieur",
                "Isolation des planchers bas",
                "Fenêtres, volets, portes donnant sur l'extérieur",
                "Fenêtres de toit",
                "Panneaux solaires photovoltaïques",
                "Chauffage et/ou eau chaude solaire",
                "Poêle ou insert bois",
                "Chaudière bois",
                "Chaudière condensation ou micro-cogénération gaz ou fioul",
                "Radiateurs électriques, dont régulation.",
                "Ventilation mécanique",
                "Audit énergétique Maison individuelle",
                "Audit énergétique Logement collectif",
                "Etude thermique reglementaire",
                "Architecte"
              ],
              "enumTitles": [
                "Heat pumps (heating)",
                "Heat-pump water heaters",
                "Interior insulation of walls, roof slopes, ceilings",
                "Loft insulation",
                "Exterior wall insulation",
                "Flat-roof and exterior roof insulation",
                "Floor insulation",
                "Windows, shutters, exterior doors",
                "Roof windows",
                "Photovoltaic solar panels",
                "Solar heating and hot water",
                "Wood stoves and inserts",
                "Wood boilers",
                "Condensing boilers, micro-cogeneration",
                "Electric radiators and controls",
                "Mechanical ventilation",
                "Energy audit: houses",
                "Energy audit: apartment buildings",
                "Regulatory thermal study",
                "Architects"
              ]
            }
          },
          "workCategories": {
            "title": "Work categories",
            "type": "array",
            "description": "Broader grouping of the work domains.",
            "items": {
              "type": "string",
              "enum": [
                "Travaux d'efficacité énergétique",
                "Installations d'énergies renouvelables",
                "Etudes énergétiques",
                "Rénovation globale"
              ],
              "enumTitles": [
                "Energy-efficiency works",
                "Renewable-energy installations",
                "Energy studies",
                "Whole-house renovation"
              ]
            }
          },
          "certifyingBodies": {
            "title": "Certifying bodies",
            "type": "array",
            "description": "Organisation that issued the qualification.",
            "items": {
              "type": "string",
              "enum": [
                "qualibat",
                "qualitenr",
                "opqibi",
                "cnoa",
                "qualifelec",
                "cerqual",
                "afnor",
                "certibat",
                "opqtecc",
                "lne",
                "qualiclimafroid"
              ],
              "enumTitles": [
                "Qualibat",
                "Qualit'EnR",
                "OPQIBI",
                "CNOA (architects)",
                "Qualifelec",
                "Cerqual",
                "AFNOR",
                "Certibat",
                "OPQTECC",
                "LNE",
                "Qualiclimafroid"
              ]
            }
          },
          "query": {
            "title": "Keyword",
            "type": "string",
            "description": "Full-text search: company name, town, qualification wording…"
          },
          "sirets": {
            "title": "SIREN or SIRET numbers",
            "type": "array",
            "description": "Check given companies: 9-digit SIREN (all establishments) or 14-digit SIRET.",
            "items": {
              "type": "string"
            }
          },
          "householdsOnly": {
            "title": "Works for households only",
            "type": "boolean",
            "description": "Keep only qualifications flagged as open to private customers.",
            "default": false
          },
          "validOnly": {
            "title": "Valid qualifications only",
            "type": "boolean",
            "description": "Leave on to skip qualifications whose end date has passed.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum companies",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The run stops once this many companies are delivered.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}