{
  "openapi": "3.0.1",
  "info": {
    "title": "Deprecated · Planity Client Scraper",
    "description": "Deprecated. Not a Store product. Paid listing cannot be unpublished without cancelling monetization.",
    "version": "1.0",
    "x-build-id": "NOslOsgWZpccRQFJn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/corent1robert~planity-client-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-corent1robert-planity-client-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/corent1robert~planity-client-scraper/runs": {
      "post": {
        "operationId": "runs-sync-corent1robert-planity-client-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/corent1robert~planity-client-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-corent1robert-planity-client-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",
        "required": [
          "email",
          "password"
        ],
        "properties": {
          "email": {
            "title": "Email Planity Pro",
            "type": "string",
            "description": "Votre email de connexion Planity Pro",
            "default": "nicolaskerndefraiteur@gmail.com"
          },
          "password": {
            "title": "Mot de passe Planity Pro",
            "type": "string",
            "description": "Votre mot de passe Planity Pro"
          },
          "planityUrl": {
            "title": "URLs des centres Planity",
            "type": "array",
            "description": "URLs publiques de vos centres Planity (ex: https://www.planity.com/votre-centre)",
            "default": [
              "https://www.planity.com/latelier-du-drainage-lymphatique-by-tehani-paris-09-75009",
              "https://www.planity.com/atelier-du-drainage-lymphatique-by-tehani-paris-16-75016"
            ],
            "items": {
              "type": "string"
            }
          },
          "getUpcomingAppointments": {
            "title": "Récupérer les rendez-vous à venir",
            "type": "boolean",
            "description": "Active la détection des nouvelles réservations de séances découverte (60 jours à venir)",
            "default": true
          },
          "googleSheetsEnabled": {
            "title": "Activer Google Sheets",
            "type": "boolean",
            "description": "Active l'intégration avec Google Sheets pour stocker les rendez-vous",
            "default": true
          },
          "googleSheetsSpreadsheetId": {
            "title": "ID du Google Sheet",
            "type": "string",
            "description": "L'ID de votre Google Sheet (visible dans l'URL: https://docs.google.com/spreadsheets/d/ID_ICI/edit)",
            "default": "1VT63yamkNzf1B1Tp0qpUuJUUKfg3J5zdJ2AUQIwxnwg"
          },
          "googleSheetsCredentials": {
            "title": "Credentials Google Sheets (Service Account)",
            "type": "object",
            "description": "JSON des credentials du Service Account Google (pour l'API Google Sheets)",
            "default": {
              "type": "service_account",
              "project_id": "corentinrobertcom-database",
              "private_key_id": "50bdf55c112e08bbbbfe8b7f34df1b40fb382058",
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hHPg\nf8LJnIWJEDvq9FumJPEjtTjotMF/TzGW1q5fm6mZVJU/AAzPNnpU9tBMw3G8GUZr\nsPr+EGEkpQKBgGgytNUYfIxc3Dj8CJM6BclEZ6uELKefOF1246OMOaqkOvtHPRi7\n72FiNeWLY1drx0E2kKk1wqW+uHQUCYhcfXcVveiTW2/znotK5uFWKHm5GV3mIlzk\n1h6Mgxa0jkQXxLTxZKMyhYvxNUNLtZvhbydxhX1No6nsPqDDZVbrIZRhAoGANjQ7\niORCCxMjqHAnM/bXQOg2wp0l/AO53nTObvzaQU2K/kXq1pbMocYTlZS3cVdIaf5J\njVRZk6plqohO9iT/0glVnte364G4KrhEQ66PI25KxuuPQhZ2DfKwSx5V9Bj0JqZd\nlSwUtrRWVIWuJKkBDkjlx+FxLRLKbMxitcp4EaUCgYEAmLg05sySs8ZRaL5JqjKu\nZjCpb3AVlMOIcIuSzOLzRBeuWkVKwUrb1CY996NzvNE/Tq/VUx+nYWVw1FECaCBT\nuxTWX6Frf+acdDnflZ0TxbsxhmgPMCHB/cmE9OBQK/0d8/RPg8djDh6y5qVmSIyy\nHd2xe2ajhX88U6fmkJI9/DM=\n-----END PRIVATE KEY-----\n",
              "client_email": "corentinrobertdatabase@corentinrobertcom-database.iam.gserviceaccount.com",
              "client_id": "116428132516500742833",
              "auth_uri": "https://accounts.google.com/o/oauth2/auth",
              "token_uri": "https://oauth2.googleapis.com/token",
              "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
              "client_x509_cert_url": "https://www.googleapis.com/oauth2/v1/metadata/x509/corentinrobertdatabase%40corentinrobertcom-database.iam.gserviceaccount.com"
            }
          },
          "webhookUrls": {
            "title": "URLs des webhooks CRM",
            "type": "object",
            "description": "URLs des webhooks pour envoyer les leads dans votre CRM selon le statut. Format JSON: {\"new\": \"https://...\", \"modified\": \"https://...\", \"deleted\": \"https://...\"}. Par défaut pour Go High Level, mais fonctionne avec tous les CRM supportant les webhooks (HubSpot, Pipedrive, Salesforce, etc.).",
            "default": {
              "new": "https://services.leadconnectorhq.com/hooks/ROVGh0fh1zxAUsuVQrmT/webhook-trigger/FIlDPbIchhntN0HjgLmT",
              "modified": "https://services.leadconnectorhq.com/hooks/ROVGh0fh1zxAUsuVQrmT/webhook-trigger/khzsx8d5kyKHyVf7ZYk2",
              "deleted": "https://services.leadconnectorhq.com/hooks/ROVGh0fh1zxAUsuVQrmT/webhook-trigger/529102d1-7aac-45c7-800f-bc4cfbe23149"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}