{
  "openapi": "3.0.1",
  "info": {
    "title": "Oscaro Scraper: Pièces Auto Prices, Refs & Reviews by Vehicle",
    "description": "Scrape Oscaro car parts by part name, OE reference, or by vehicle, across oscaro.com, oscaro.es and oscaro.pt. Get prices, brand, manufacturer references, OEM cross-references grouped by car brand, specs, stock, images, ratings and full customer reviews. Track price and stock changes. No login.",
    "version": "0.1",
    "x-build-id": "Ee2lIMorn5D4VMCQ2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~oscaro-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-oscaro-product-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/getascraper~oscaro-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-oscaro-product-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/getascraper~oscaro-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-oscaro-product-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": {
          "queries": {
            "title": "Search queries",
            "type": "array",
            "description": "What to look up on Oscaro, one per line: a part name (plaquette de frein), an OE or manufacturer reference (P 85 020), an MPN, or an EAN. Leave empty if you only use a vehicle or Start URLs.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Oscaro pages to scrape directly: a search results URL, a category or part-group page, or a single product page. Useful when you already have the exact Oscaro link. The incumbent scrapers mostly make you type a query instead.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "vehicleMake": {
            "title": "Vehicle make",
            "type": "string",
            "description": "Narrow the part search to one car make, for example Renault. No other Oscaro scraper lets you search by vehicle: here it is combined with your query to find parts that fit that car."
          },
          "vehicleModel": {
            "title": "Vehicle model",
            "type": "string",
            "description": "The car model, for example Clio. Used together with the make to target the part search at one vehicle."
          },
          "vehicleEngine": {
            "title": "Vehicle engine or version",
            "type": "string",
            "description": "The engine or version, for example 1.5 dCi. Helps match parts to the exact motorisation when a model has several."
          },
          "vehicleYear": {
            "title": "Vehicle year",
            "minimum": 1950,
            "maximum": 2030,
            "type": "integer",
            "description": "The vehicle's year, for example 2016. Narrows the search to parts listed for that production year."
          },
          "region": {
            "title": "Storefront",
            "enum": [
              "FR",
              "ES",
              "PT"
            ],
            "type": "string",
            "description": "Which Oscaro storefront to scrape: France (oscaro.com), Spain (oscaro.es), or Portugal (oscaro.pt). Prices and availability differ per country. sian.agency scrapes France only.",
            "default": "FR"
          },
          "brand": {
            "title": "Brand",
            "type": "string",
            "description": "Keep only parts from one manufacturer, for example BOSCH or VALEO. Leave empty to return every brand that matches the query."
          },
          "availableOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Return only parts Oscaro shows as available to order, skipping out-of-stock results.",
            "default": false
          },
          "promoOnly": {
            "title": "On promotion only",
            "type": "boolean",
            "description": "Return only parts currently on promotion or discounted below their public price.",
            "default": false
          },
          "includeDetails": {
            "title": "Enrich with product detail pages",
            "type": "boolean",
            "description": "Open each product's page to add the full specification table, the complete list of compatible vehicles (not just a count), all manufacturer cross-references, EAN, rating, and customer reviews. This loads one page per product, so it is slower and costs more. Off by default.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of parts to return across all queries and URLs. Kept low by default so a test run stays fast and cheap; raise it for a full scrape.",
            "default": 10
          },
          "onlyNewOrChanged": {
            "title": "Monitor: only new or changed parts",
            "type": "boolean",
            "description": "On repeat runs, emit only parts that are new or whose price or stock changed since the last run with the same Monitor state name. Ideal for scheduled price and stock tracking.",
            "default": false
          },
          "stateName": {
            "title": "Monitor state name",
            "type": "string",
            "description": "A label for the saved baseline that monitor mode compares against. Use different names to track separate searches independently. Only matters when monitoring is on.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Oscaro is behind Cloudflare and is reliably reachable only through a residential proxy in the storefront's country. The default (French residential) is strongly recommended; change it only if you know what you are doing.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}