{
  "openapi": "3.0.1",
  "info": {
    "title": "Ademe DPE Properties and Details Scraper",
    "description": "Ademe DPE Properties and Details Scraper — Read bounded public French energy-performance diagnostics from the official ADEME Data Fair dataset, with DPE/GES classes, address, surface, construction, energy-use, emissions, and geolocation fields.",
    "version": "1.1",
    "x-build-id": "yXAeoYgnin1zJ9iM2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/realestateapi~ademe-dpe-properties-and-details-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-realestateapi-ademe-dpe-properties-and-details-scraper",
        "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/realestateapi~ademe-dpe-properties-and-details-scraper/runs": {
      "post": {
        "operationId": "runs-sync-realestateapi-ademe-dpe-properties-and-details-scraper",
        "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/realestateapi~ademe-dpe-properties-and-details-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-realestateapi-ademe-dpe-properties-and-details-scraper",
        "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": {
          "sourceAccessConfirmed": {
            "title": "Confirm source-access review",
            "type": "boolean",
            "description": "Operator confirmation that the documented source-access review permits this run. The default false makes no source requests. This attestation does not grant rights or bypass source terms.",
            "default": false
          },
          "limit": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of source-backed DPE certificate records to store.",
            "default": 25
          },
          "query": {
            "title": "ADEME search query",
            "maxLength": 200,
            "type": "string",
            "description": "Optional full-text query sent as the Data Fair q parameter.",
            "default": ""
          },
          "city": {
            "title": "City",
            "maxLength": 120,
            "type": "string",
            "description": "Optional city or commune filter applied to returned source rows.",
            "default": ""
          },
          "postalCode": {
            "title": "Postal code",
            "maxLength": 10,
            "type": "string",
            "description": "Optional exact postal-code filter applied to returned source rows.",
            "default": ""
          },
          "department": {
            "title": "Department code",
            "maxLength": 5,
            "type": "string",
            "description": "Optional exact French department-code filter applied to returned source rows.",
            "default": ""
          },
          "dpeClass": {
            "title": "DPE energy class",
            "pattern": "^$|^[A-G]$",
            "type": "string",
            "description": "Optional uppercase DPE class from A to G. Lowercase values are rejected.",
            "default": ""
          },
          "gesClass": {
            "title": "GES emissions class",
            "pattern": "^$|^[A-G]$",
            "type": "string",
            "description": "Optional uppercase greenhouse-gas emissions class from A to G. Lowercase values are rejected.",
            "default": ""
          },
          "minSurface": {
            "title": "Minimum surface (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Optional minimum habitable surface in square metres."
          },
          "maxSurface": {
            "title": "Maximum surface (m²)",
            "minimum": 0,
            "type": "number",
            "description": "Optional maximum habitable surface in square metres; it must be at least minSurface."
          },
          "yearBuilt": {
            "title": "Construction year",
            "minimum": 1000,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional exact construction year. Construction-period ranges are not converted to a year."
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 30,
            "type": "integer",
            "description": "Timeout for each source request, from 5 to 30 seconds.",
            "default": 30
          },
          "maxRequests": {
            "title": "Maximum source requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Hard cap on source-provided result pages requested.",
            "default": 4
          },
          "maxPages": {
            "title": "Maximum official pages",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Additional termination bound on consecutive official Data Fair pages, independent of maxRequests. Pagination follows only source-published next links; no cursor is invented.",
            "default": 3
          },
          "testMode": {
            "title": "Conservative smoke mode",
            "type": "boolean",
            "description": "When true, caps this run to 3 records, 1 page, and 2 requests without changing saved input. Geographic filters and stable diagnostic-ID dedup remain active.",
            "default": false
          },
          "requestDelayMs": {
            "title": "Delay between requests (milliseconds)",
            "minimum": 1000,
            "maximum": 10000,
            "type": "integer",
            "description": "Minimum delay between source requests, from 1,000 to 10,000 milliseconds.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional standard Apify proxy settings. Leave empty unless proxy use is authorized for this source.",
            "properties": {
              "useApifyProxy": {
                "title": "Use Apify Proxy",
                "description": "Use the Apify Proxy service for permitted requests.",
                "type": "boolean"
              },
              "apifyProxyGroups": {
                "title": "Apify Proxy groups",
                "description": "Optional Apify Proxy groups. Requires useApifyProxy to be true.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "apifyProxyCountry": {
                "title": "Apify Proxy country",
                "description": "Two-letter uppercase country code for Apify Proxy. Requires useApifyProxy to be true.",
                "type": "string",
                "minLength": 2,
                "maxLength": 2,
                "pattern": "^[A-Z]{2}$"
              },
              "proxyUrls": {
                "title": "Custom proxy URLs",
                "description": "Optional HTTP or HTTPS proxy URLs. Do not combine these with Apify Proxy settings.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "default": {},
            "additionalProperties": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}