{
  "openapi": "3.0.1",
  "info": {
    "title": "RGE France · Artisan Emails & Directors",
    "description": "Two jobs: find certified RGE artisans in a French department, or enrich SIRETs you already have. Every row: qualifications, named director, phone, email. No login, no API key.",
    "version": "1.11",
    "x-build-id": "RnaLWobBB9cQYewF4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/corent1robert~rge-siren-enrich/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-corent1robert-rge-siren-enrich",
        "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/corent1robert~rge-siren-enrich/runs": {
      "post": {
        "operationId": "runs-sync-corent1robert-rge-siren-enrich",
        "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/corent1robert~rge-siren-enrich/run-sync": {
      "post": {
        "operationId": "run-sync-corent1robert-rge-siren-enrich",
        "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": {
          "mode": {
            "title": "Job",
            "enum": [
              "territory",
              "sirets"
            ],
            "type": "string",
            "description": "**Find RGE artisans** — pick a French department and trade. Build a call list from the official France Rénov directory.\n\n**Enrich SIRETs** — paste SIRET / SIREN numbers you already have. Keep only companies still on the current RGE list.",
            "default": "territory"
          },
          "department": {
            "title": "Department",
            "enum": [
              "01",
              "02",
              "03",
              "04",
              "05",
              "06",
              "07",
              "08",
              "09",
              "10",
              "11",
              "12",
              "13",
              "14",
              "15",
              "16",
              "17",
              "18",
              "19",
              "2A",
              "2B",
              "21",
              "22",
              "23",
              "24",
              "25",
              "26",
              "27",
              "28",
              "29",
              "30",
              "31",
              "32",
              "33",
              "34",
              "35",
              "36",
              "37",
              "38",
              "39",
              "40",
              "41",
              "42",
              "43",
              "44",
              "45",
              "46",
              "47",
              "48",
              "49",
              "50",
              "51",
              "52",
              "53",
              "54",
              "55",
              "56",
              "57",
              "58",
              "59",
              "60",
              "61",
              "62",
              "63",
              "64",
              "65",
              "66",
              "67",
              "68",
              "69",
              "70",
              "71",
              "72",
              "73",
              "74",
              "75",
              "76",
              "77",
              "78",
              "79",
              "80",
              "81",
              "82",
              "83",
              "84",
              "85",
              "86",
              "87",
              "88",
              "89",
              "90",
              "91",
              "92",
              "93",
              "94",
              "95",
              "971",
              "972",
              "973",
              "974",
              "976"
            ],
            "type": "string",
            "description": "French department your team covers. Default **69 — Rhône** (Lyon metro). **Ignored** in Enrich SIRETs.",
            "default": "69"
          },
          "trade": {
            "title": "Trade (RGE qualification)",
            "enum": [
              "all",
              "renewables",
              "energy_efficiency",
              "global_renovation",
              "energy_studies",
              "heat_pump_heating",
              "thermodynamic_dhw",
              "solar_pv",
              "solar_thermal",
              "wood_boiler",
              "wood_stove",
              "condensing_boiler",
              "geothermal_study",
              "insulation_ite",
              "insulation_attics",
              "insulation_internal",
              "insulation_floors",
              "insulation_roofs",
              "windows",
              "roof_windows",
              "ventilation",
              "electric_radiators",
              "full_renovation",
              "architect",
              "audit_house",
              "audit_collective"
            ],
            "type": "string",
            "description": "The work you sell into. Grouped options (Renewables, energy-efficiency) are the fastest start. Default **Heat pumps**. **Ignored** in Enrich SIRETs.",
            "default": "heat_pump_heating"
          },
          "sirets": {
            "title": "SIRET or SIREN list",
            "type": "array",
            "description": "One **14-digit SIRET** or **9-digit SIREN** per line. A SIREN expands to every labelled workshop of that company. Example: `80170137600015`. **Required** in Enrich SIRETs; **ignored** in Find RGE artisans.",
            "items": {
              "type": "string"
            }
          },
          "howMany": {
            "title": "How many artisans?",
            "enum": [
              "preview",
              "call_list",
              "all"
            ],
            "type": "string",
            "description": "**Quick look** — 25 workshops, under a minute.\n\n**Call list** — 250 workshops, about a week of outbound.\n\n**All matching workshops** — every RGE hit for this run. In Find artisans that is the whole department; in Enrich that is every pasted ID still on the list.",
            "default": "preview"
          },
          "rowDepth": {
            "title": "What to include on each row",
            "enum": [
              "directors",
              "directory",
              "website"
            ],
            "type": "string",
            "description": "**Call-ready (default)** — official directory + named gérant ($4.99 / 1k Free).\n\n**Directory only** — quals, phone, email. No gérant name. Billed cheaper ($3.49 / 1k Free).\n\n**Full** — also visit the artisan website (mentions légales → confirmed SIREN + company + extra contacts). Add-on, only when a real company site is crawled — not Qualit’EnR.",
            "default": "directors"
          },
          "enrichDirectors": {
            "title": "Named directors (API)",
            "type": "boolean",
            "description": "API-only. Prefer **What to include**. Ignored when rowDepth is set.",
            "default": true
          },
          "enrichWebsiteContacts": {
            "title": "Visit website (API)",
            "type": "boolean",
            "description": "API-only. Prefer **What to include**. Ignored when rowDepth is set.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}