{
  "openapi": "3.0.1",
  "info": {
    "title": "Registre foncier du Québec (Fonciq) / Québec land registry",
    "description": "Fonciq, service indépendant : fiches de lot, documents du Registre foncier sur votre accès au Registre, surveillance. Québec land and property data for notaries and firms.",
    "version": "0.0",
    "x-build-id": "behcqV5SSX8EtfmT6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fonciq~fonciq-registre-foncier/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fonciq-fonciq-registre-foncier",
        "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/fonciq~fonciq-registre-foncier/runs": {
      "post": {
        "operationId": "runs-sync-fonciq-fonciq-registre-foncier",
        "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/fonciq~fonciq-registre-foncier/run-sync": {
      "post": {
        "operationId": "run-sync-fonciq-fonciq-registre-foncier",
        "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",
        "required": [
          "apiKey",
          "operation"
        ],
        "properties": {
          "apiKey": {
            "title": "Clé d'API Fonciq / Fonciq API key",
            "type": "string",
            "description": "Votre clé d'API Fonciq (créez-la sur https://fonciq.ca). Envoyée dans l'en-tête Authorization: Bearer. Une clé fq_test_ n'est jamais débitée. / Your Fonciq API key (create it at https://fonciq.ca). Sent as Authorization: Bearer. An fq_test_ key is never charged."
          },
          "operation": {
            "title": "Opération / Operation",
            "enum": [
              "index",
              "plan",
              "lot",
              "acte"
            ],
            "type": "string",
            "description": "Les opérations payantes (« voir fonciq.ca/tarifs ») sont facturées par Fonciq sur votre compte Fonciq et ne s'exécutent que si « Appels payants maximum » est supérieur à 0. La fiche de lot : « voir fonciq.ca/tarifs ». / Paid operations (\"see fonciq.ca/tarifs\") are billed by Fonciq on your Fonciq account and only run when \"Max paid calls\" is above 0. Lot profile: \"see fonciq.ca/tarifs\".",
            "default": "lot"
          },
          "lots": {
            "title": "Lots / Lots",
            "type": "array",
            "description": "Numéros de lot du cadastre du Québec (ex. 1 234 567), adresses civiques ou matricules. Une adresse ou un matricule est d'abord résolu en numéro de lot (voir fonciq.ca/tarifs). Utilisé par Index, Plan et Fiche de lot. / Cadastre du Québec lot numbers, civic addresses or roll numbers. An address or roll number is first resolved to a lot number (see fonciq.ca/tarifs). Used by Index, Plan and Lot profile.",
            "items": {
              "type": "string"
            }
          },
          "actes": {
            "title": "Actes (opération Acte) / Deeds (Deed operation)",
            "type": "array",
            "description": "Pour l'opération Acte : objets {\"registration_number\": \"21 014 436\", \"circonscription\": \"Montréal\"}. / For the Deed operation: objects with registration_number and circonscription."
          },
          "maxPaidCalls": {
            "title": "Appels payants maximum / Max paid calls",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Sécurité : nombre maximal d'appels payants (voir fonciq.ca/tarifs) envoyés pendant cette exécution. À 0 (défaut), aucune opération payante ne s'exécute. / Safety: maximum number of paid calls (see fonciq.ca/tarifs) sent during this run. At 0 (default), no paid operation runs.",
            "default": 0
          },
          "downloadPdfs": {
            "title": "Enregistrer les PDF / Save PDFs",
            "type": "boolean",
            "description": "Enregistre les PDF renvoyés (index, acte) dans le magasin clé-valeur de l'exécution. Lire un PDF déjà livré : voir fonciq.ca/tarifs. / Saves returned PDFs (index, deed) in the run's key-value store. Reading a delivered PDF: see fonciq.ca/tarifs.",
            "default": true
          },
          "includeFloodZones": {
            "title": "Ajouter les zones inondables (gratuit) / Add flood zones (free)",
            "type": "boolean",
            "description": "Ajoute à chaque lot le résultat de l'API gratuite des zones inondables de Fonciq (sans clé; voir fonciq.ca/tarifs). / Adds the result of Fonciq's free flood-zone API to each lot (keyless; see fonciq.ca/tarifs).",
            "default": false
          },
          "rfAccountId": {
            "title": "Compte du Registre (facultatif) / Registry account (optional)",
            "type": "string",
            "description": "Identifiant du compte du Registre foncier ajouté dans les paramètres de l'API Fonciq. Vide : compte par défaut. / Land registry account id added in the Fonciq API settings. Empty: default account."
          },
          "pollTimeoutSec": {
            "title": "Attente maximale d'un index (s) / Max wait for an index (s)",
            "minimum": 0,
            "maximum": 3600,
            "type": "integer",
            "description": "Durée maximale de suivi d'une tâche d'index avant d'écrire la ligne avec son job_id. / Max time to poll an index job before writing the row with its job_id.",
            "default": 300
          },
          "delayMs": {
            "title": "Délai entre les appels (ms) / Delay between calls (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Pause entre deux éléments. Limites : voir fonciq.ca/tarifs. / Pause between items. Limits: see fonciq.ca/tarifs.",
            "default": 1100
          },
          "lang": {
            "title": "Langue des messages / Message language",
            "enum": [
              "fr",
              "en"
            ],
            "type": "string",
            "description": "Langue des messages de l'Actor et de l'API des zones inondables. / Language of Actor messages and the flood-zone API.",
            "default": "fr"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}