{
  "openapi": "3.0.1",
  "info": {
    "title": "Pap.fr 🇫🇷 [$1.5💰] French Private-Seller RE Scraper",
    "description": "🔥 $1.5/1K · Pap.fr scraper for private French sellers — 30+ fields per row from rich JSON-LD: price · m² · rooms · DPE · lat-lng · seller · breadcrumb hierarchy (région/département/ville). Filter mode + URL mode + price-band split (lift the ~370-result cap). Apify Residential FR. No browser",
    "version": "0.0",
    "x-build-id": "mGFPam21Z5A5HHbBY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~pap-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-pap-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/memo23~pap-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-pap-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/memo23~pap-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-pap-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": {
          "startUrls": {
            "title": "Pap.fr URLs",
            "type": "array",
            "description": "Accepted URL shapes:\n• Listing — `/annonce/{transaction}-{rest}-g{geoId}` (e.g. `/annonce/vente-immobiliere-paris-75-g439`). Variants: `vente-appartements-…`, `vente-maisons-…`, `locations-appartement-…`. Pagination via `-pN` suffix.\n• Property detail — `/annonces/{slug}-r{numericId}` (e.g. `/annonces/appartement-paris-15e-75015-r453301302`).",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations (city names or g{N} IDs)",
            "uniqueItems": true,
            "type": "array",
            "description": "Either a city name (e.g. `Paris`, `Lyon`, `Marseille`, `Nice`, `Bordeaux`, `Toulouse` — ~30 known) or a raw Pap.fr geo ID like `g439` (Paris) or `439`. Unknown cities are skipped with a warning.",
            "items": {
              "type": "string"
            }
          },
          "distributionType": {
            "title": "Transaction type",
            "enum": [
              "Buy",
              "Rent"
            ],
            "type": "string",
            "description": "Buy = vente, Rent = location.",
            "default": "Buy"
          },
          "estateTypes": {
            "title": "Property types",
            "uniqueItems": true,
            "type": "array",
            "description": "Filter by property type. Leave empty for both Apartment + House (Pap.fr default).",
            "items": {
              "type": "string",
              "enum": [
                "Apartment",
                "House"
              ]
            }
          },
          "priceMin": {
            "title": "Min price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Lower price bound in euros."
          },
          "priceMax": {
            "title": "Max price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Upper price bound in euros."
          },
          "roomsMin": {
            "title": "Min rooms (pièces)",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum number of rooms (pièces). 1 = studio, 2 = 1-bed, 3 = 2-bed, etc."
          },
          "splitByPrice": {
            "title": "🚀 Split by price bands (break Pap.fr's 300-result cap)",
            "type": "boolean",
            "description": "The iOS API hard-caps each search at 300 results. When ON, the actor issues 5 narrower searches at log-distributed price cut-points instead of one — multiplying total yield ~5×. Default bands tuned for the French private-seller market: [0–150K], [150K–300K], [300K–500K], [500K–800K], [800K+]. If you set both `priceMin` and `priceMax`, the range is split into 5 equal bands instead.\n\n(Power users: `priceBands: N` can be passed via API to override the 5-band default. Not exposed in the UI to keep things simple.)",
            "default": false
          },
          "maxItems": {
            "title": "Maximum items to scrape",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on property rows emitted.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of property pages processed in parallel.",
            "default": 10
          },
          "minConcurrency": {
            "title": "Min concurrency",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum number of pages processed in parallel.",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "type": "integer",
            "description": "Per-URL retry budget. iOS API calls retry up to 4 times with proxy rotation; HTML enrichment retries the same.",
            "default": 5
          },
          "forceHtmlDetail": {
            "title": "Force HTML for detail rows (escape hatch)",
            "type": "boolean",
            "description": "Default: false (iOS API for every detail). When true, fetches every detail row via Pap.fr's HTML page (schema.org Product JSON-LD) instead of the iOS API. Slower (~70 KB vs ~3 KB per row) but provides street-level address, the `additionalProperties[]` amenity list, and the 7-level breadcrumb on every row. Useful if Pap.fr ever changes the iOS API contract.",
            "default": false
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Residential FR is the default (Pap.fr is France-focused; direct works too but residential FR is most reliable). UK/DE/US residential proxies also work — Pap.fr's anti-bot is mild compared to SeLoger.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}