{
  "openapi": "3.0.1",
  "info": {
    "title": "OEM Parts Catalogue Scraper",
    "description": "Scrape Mercedes-Benz OEM parts from mercedes-benz.oempartsonline.ca by model year or by catalogue, diagram and part URLs. Get part numbers, MSRP and sale prices (CAD), fitment (model, trim, engine), category, position, descriptions and diagram images. Export to JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "ks78HtwZVfkB5cHrD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/barking_kelp~mercedes-parts-parser/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-barking_kelp-mercedes-parts-parser",
        "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/barking_kelp~mercedes-parts-parser/runs": {
      "post": {
        "operationId": "runs-sync-barking_kelp-mercedes-parts-parser",
        "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/barking_kelp~mercedes-parts-parser/run-sync": {
      "post": {
        "operationId": "run-sync-barking_kelp-mercedes-parts-parser",
        "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": {
          "stores": {
            "title": "Stores",
            "type": "string",
            "description": "Which storefronts to collect: a name, a comma-separated list, or \"all\" for every one of the 23. Left empty it collects mercedes, as it always has. The names are: mercedes, gm, ford, mopar, bmw, audi, subaru, honda, mitsubishi, toyota, mazda, volvo, porsche, nissan, acura, hyundai, kia, lexus, infiniti, vw, landrover, jaguar, smart."
          },
          "years": {
            "title": "Model years",
            "type": "string",
            "description": "Which model years: \"2026\", a range \"1984-2010\", a mixture \"1999,2005-2007\", or \"all\" for every year a store carries. Stores do not all carry the same years, and a year a store never had is skipped with a note rather than failing the run."
          },
          "makes": {
            "title": "Makes",
            "type": "string",
            "description": "Only these makes, comma-separated -- for the stores that carry several (GM has buick, cadillac, chevrolet and gmc; Ford has ford and lincoln; Mopar has chrysler, dodge, jeep and ram). Empty means every make the store carries that year."
          },
          "discovery": {
            "title": "How pages are found",
            "enum": [
              "auto",
              "sitemap",
              "walk"
            ],
            "type": "string",
            "description": "Leave this alone unless you have a reason. \"Automatic\" reads the store's sitemap when it lists catalogue pages and walks its vehicle navigation when it does not -- which is how eleven of the stores have to be collected, and it also covers a year a store's sitemap does not reach. The other two pin it to one method and report instead of switching.",
            "default": "auto"
          },
          "startUrls": {
            "title": "Catalogue pages (optional)",
            "type": "array",
            "description": "Crawl these catalogue pages, every diagram of each, instead of reading the sitemap. Prefilled with one small page (2026 CLE53 AMG, Suspension → Front Suspension: one diagram) as a quick example — clear it to crawl the whole year.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "diagramUrls": {
            "title": "Diagrams (optional)",
            "type": "array",
            "description": "Links to single diagrams, e.g. https://mercedes-benz.oempartsonline.ca/v-2026-.../body--aperture-panel?assembly=2 — only that diagram's rows are collected. A link without ?assembly= collects the whole page.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "partUrls": {
            "title": "Parts (optional)",
            "type": "array",
            "description": "Links to part pages, e.g. https://mercedes-benz.oempartsonline.ca/oem-parts/mercedes-benz-oil-filter-2761800009 — one record each (recordType \"part\"): title, price, position, description.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxPages": {
            "title": "Max pages per store",
            "minimum": 0,
            "type": "integer",
            "description": "Stop scheduling new catalogue pages, diagrams and part links for a store after this many, counted across resumes: a run that is interrupted and continued does not start the allowance again. **Per store**, so a run over several of them gets this much of each rather than spending it all on whichever store comes first. Walking a store's navigation to find its pages does not count against it -- that is discovery, and one page of a walked store takes a few requests to reach. It also does not cap the part pages a page's own rows link to, and one page can link to a hundred and fifty of them, so this bounds how much of a catalogue is covered rather than how many requests a run makes. Use Max results for that. 0 = no limit.",
            "default": 0
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop as soon as this many records are in the dataset (catalogue rows plus parts by link); the crawl closes right away. It means \"at most this many\": records already stored by an interrupted run count towards it, and a resumed run can re-store a few of them. A page's part pages are fetched before its rows are stored, so a small limit still pays for one whole page, and a high Max concurrency pays for everything else in flight when the limit is reached. 0 = no limit.",
            "default": 0
          },
          "transport": {
            "title": "Transport",
            "enum": [
              "unblocker",
              "apifyProxy",
              "superScraper",
              "webFetch",
              "custom"
            ],
            "type": "string",
            "description": "Which service fetches each page. This Actor runs no browser in any of them, and nothing else about the crawl changes with the choice. \"Apify Unblocker\" is a proxy group of Apify's own, billed per successful request. \"Apify Proxy\" is the plain proxy groups below. \"Super Scraper API\" and \"Web Fetch\" are Apify's own Actors, called over their standby API. \"Custom\" is any other service you have, given as a proxy URL or an endpoint. Each provider states its own price; what a run spends is reported as SUMMARY.requestsMade.",
            "default": "unblocker"
          },
          "unlockerCountry": {
            "title": "Exit country",
            "pattern": "^([A-Za-z]{2})?$",
            "type": "string",
            "description": "Two-letter country code for the exit IP, e.g. CA for the Canadian storefront. Leave empty to let the provider choose: naming a country shrinks the IP pool and can work worse, not better."
          },
          "unlockerApiKey": {
            "title": "Unlocker API key",
            "type": "string",
            "description": "For \"Super Scraper API\" and \"Web Fetch\" (an Apify API token; the run's own APIFY_TOKEN is used when this is empty) or for a custom unlocker's endpoint."
          },
          "unlockerProxyUrl": {
            "title": "Custom unlocker proxy URL",
            "type": "string",
            "description": "Transport \"custom\", proxy mode: http://user:pass@host:port of any unlocker sold as a proxy. Takes precedence over the endpoint below."
          },
          "unlockerEndpoint": {
            "title": "Custom unlocker endpoint",
            "type": "string",
            "description": "Transport \"custom\", API mode: the endpoint to call. Put {url} where the target URL goes (it is URL-encoded); without a placeholder the target is added as ?url=... A key given above is sent as \"Authorization: Bearer <key>\"; a provider that wants it in the query string takes it here instead, which is why this field is secret too."
          },
          "unlockerFinalUrlHeader": {
            "title": "Landing-URL header",
            "type": "string",
            "description": "The response header your unlocker reports the URL it ended up on in, if it documents one. An unlocker follows redirects itself, so this is how the crawl learns about them; without it the page's own <link rel=\"canonical\"> is used."
          },
          "tlsVerify": {
            "title": "Verify TLS certificates",
            "type": "boolean",
            "description": "Leave unset and the transport decides: a service that terminates TLS to read the page serves its own certificate, so verification cannot succeed through it and is off for those, while a plain proxy or an Apify API endpoint keeps it on. Set this only to override that -- and note that with verification off, anything on the path can read the traffic."
          },
          "proxyConfiguration": {
            "title": "Apify Proxy (transport \"Apify Proxy\" only)",
            "type": "object",
            "description": "Used only by the \"Apify Proxy\" transport; the other transports bring their own. Left as it is, Apify Proxy picks its default group.",
            "default": {
              "useApifyProxy": true
            }
          },
          "requestDelay": {
            "title": "Delay between requests",
            "minimum": 0,
            "type": "integer",
            "description": "Seconds to wait between requests. 0 is fine with a fetching service: it brings its own exit IPs, and if the storefront asks for a slower pace the Actor widens this gap on its own and narrows it again afterwards.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 64,
            "type": "integer",
            "description": "Requests in flight at once. It also sizes the thread pool the curl handler downloads on, so it is capped rather than unbounded.",
            "default": 16
          },
          "exportCsv": {
            "title": "Write the reference CSV",
            "type": "boolean",
            "description": "After the crawl, write OUTPUT.csv (';', BOM, CRLF, sitemap order) to the key-value store.",
            "default": true
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request and transport decision.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}