{
  "openapi": "3.0.1",
  "info": {
    "title": "France Pige Pro — FSBO Real Estate Leads Across 4 Portals",
    "description": "Find FSBO (private-owner) property leads in France. Runs SeLoger, Bien'ici, Logic-Immo and LeBonCoin, dedupes each property across portals by a postcode + surface + price fingerprint, and flags every result private-seller or agency-listed. New-listing delta and optional agency enrichment.",
    "version": "0.1",
    "x-build-id": "ph2jdWNkH0DwkMP6n"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/studio-amba~france-pige-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-studio-amba-france-pige-pro",
        "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/studio-amba~france-pige-pro/runs": {
      "post": {
        "operationId": "runs-sync-studio-amba-france-pige-pro",
        "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/studio-amba~france-pige-pro/run-sync": {
      "post": {
        "operationId": "run-sync-studio-amba-france-pige-pro",
        "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": [
          "location"
        ],
        "properties": {
          "location": {
            "title": "Location (city or department)",
            "type": "string",
            "description": "French city or department to search, e.g. 'Paris', 'Lyon', 'Bordeaux', 'Gironde'. Drives all selected portals."
          },
          "transactionType": {
            "title": "Transaction",
            "enum": [
              "sale",
              "rent"
            ],
            "type": "string",
            "description": "Sale (ventes) or rent (locations).",
            "default": "sale"
          },
          "propertyType": {
            "title": "Property type (optional)",
            "enum": [
              "",
              "apartment",
              "house",
              "land",
              "parking",
              "commercial"
            ],
            "type": "string",
            "description": "Restrict to one property type. Leave empty for all types.",
            "default": ""
          },
          "portals": {
            "title": "Portals",
            "type": "array",
            "description": "Which French portals to run and deduplicate across. Bien'ici and LeBonCoin are the reliable, data-rich default. SeLoger and Logic-Immo are agency-heavy but anti-bot-fragile and often return sparse or empty rows; add them for broader agency coverage, accepting lower data quality.",
            "items": {
              "type": "string",
              "enum": [
                "bienici",
                "leboncoin",
                "seloger",
                "logicimmo"
              ],
              "enumTitles": [
                "Bien'ici",
                "LeBonCoin",
                "SeLoger",
                "Logic-Immo"
              ]
            },
            "default": [
              "bienici",
              "leboncoin"
            ]
          },
          "sellerFilter": {
            "title": "Seller filter",
            "enum": [
              "all",
              "fsbo_only",
              "agency_only"
            ],
            "type": "string",
            "description": "Return all properties, only FSBO (private-owner) leads, or only agency-listed properties.",
            "default": "all"
          },
          "onlyNew": {
            "title": "Only new listings since last run",
            "type": "boolean",
            "description": "Return only properties not seen in a previous run. Backed by a per-account key-value store. Leave off for a full snapshot.",
            "default": false
          },
          "onlyWithContact": {
            "title": "Only listings with a contact",
            "type": "boolean",
            "description": "Return only properties where a phone contact is exposed (seller phone or, with agency enrichment, an agency phone).",
            "default": false
          },
          "enrichAgencies": {
            "title": "Enrich agencies via PagesJaunes",
            "type": "boolean",
            "description": "Cross-reference agency-listed properties against PagesJaunes for the agency phone, and look up each agency name in the French company register for its SIRET. Adds one extra portal run, so runs take longer. Off by default.",
            "default": false
          },
          "minPrice": {
            "title": "Min price (EUR)",
            "type": "integer",
            "description": "Lower price bound passed to the portals that support it. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Max price (EUR)",
            "type": "integer",
            "description": "Upper price bound passed to the portals that support it. Leave empty for no maximum."
          },
          "maxItemsPerSource": {
            "title": "Max items per portal",
            "type": "integer",
            "description": "Cap on listings pulled from each portal before dedup.",
            "default": 40
          },
          "timeoutPerSourceSecs": {
            "title": "Per-portal timeout (seconds)",
            "type": "integer",
            "description": "How long to wait for each portal run before treating it as failed.",
            "default": 150
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Passed through to the child portal scrapers. French residential proxy is strongly recommended (SeLoger, Logic-Immo and LeBonCoin are anti-bot-protected).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}