{
  "openapi": "3.0.1",
  "info": {
    "title": "Leboncoin & Vinted Scraper 🇫🇷 | Prices, Deals & Arbitrage",
    "description": "Scrape Leboncoin and Vinted in one run: prices, photos, location, seller. Datadome-safe with residential proxies. Turn on Deal Radar to flag underpriced listings and cross-platform bargains. Pay per result.",
    "version": "0.1",
    "x-build-id": "eOEKuO0eHEUVXPMRs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/excellence_scraping~leboncoin-vinted-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-excellence_scraping-leboncoin-vinted-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/excellence_scraping~leboncoin-vinted-scraper/runs": {
      "post": {
        "operationId": "runs-sync-excellence_scraping-leboncoin-vinted-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/excellence_scraping~leboncoin-vinted-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-excellence_scraping-leboncoin-vinted-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": [
          "queries"
        ],
        "properties": {
          "platform": {
            "title": "Platform",
            "enum": [
              "leboncoin",
              "vinted",
              "both"
            ],
            "type": "string",
            "description": "Which site(s) to scrape.",
            "default": "leboncoin"
          },
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "One or more keyword searches (e.g. \"iphone 13\", \"canapé cuir\").",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Leboncoin category",
            "type": "string",
            "description": "Leboncoin category name (e.g. TOUTES_CATEGORIES, ELECTRONIQUE_TELEPHONES_OBJETS_CONNECTES). Ignored for Vinted.",
            "default": "TOUTES_CATEGORIES"
          },
          "priceMin": {
            "title": "Min price (€)",
            "type": "integer",
            "description": "Lower price bound in euros. 0 = no lower bound.",
            "default": 0
          },
          "priceMax": {
            "title": "Max price (€)",
            "type": "integer",
            "description": "Upper price bound in euros. 0 = no upper bound.",
            "default": 0
          },
          "lat": {
            "title": "Latitude",
            "type": "number",
            "description": "Leboncoin geo center latitude (default: Paris).",
            "default": 48.8566
          },
          "lng": {
            "title": "Longitude",
            "type": "number",
            "description": "Leboncoin geo center longitude (default: Paris).",
            "default": 2.3522
          },
          "radius": {
            "title": "Radius (m)",
            "type": "integer",
            "description": "Search radius around the geo center, in meters.",
            "default": 12000
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "NEWEST",
              "RELEVANCE",
              "PRICE"
            ],
            "type": "string",
            "description": "Result ordering.",
            "default": "NEWEST"
          },
          "pages": {
            "title": "Pages per query",
            "maximum": 10,
            "type": "integer",
            "description": "Number of result pages to fetch per query (35 listings per page).",
            "default": 1
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Hard cap on results pushed.",
            "default": 200
          },
          "dealRadar": {
            "title": "Deal Radar 💸",
            "type": "boolean",
            "description": "Flag underpriced listings (is_deal) — great for reselling and arbitrage.",
            "default": false
          },
          "dealRatio": {
            "title": "Deal threshold",
            "type": "number",
            "description": "A listing is a deal if its price is ≤ this × the median price for its search (e.g. 0.7 = 30% below median). Needs Deal Radar on.",
            "default": 0.7
          },
          "dealFloorRatio": {
            "title": "Deal price floor",
            "type": "number",
            "description": "Ignore listings priced below this × median as noise (a €4 case is not a discounted phone). Default 0.35.",
            "default": 0.35
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential proxy is strongly recommended for Leboncoin (Datadome). FR country recommended.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}