{
  "openapi": "3.0.1",
  "info": {
    "title": "RockAuto Catalog Price & Fitment Lookup",
    "description": "Search the RockAuto auto-parts catalog by keyword, part number, or vehicle fitment, returning manufacturer, part number, category, price, core charge and fitment notes for each listing.",
    "version": "1.0",
    "x-build-id": "2nIFLyG2W6wiB9ffW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~rockauto-catalog-price-and-fitment-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-rockauto-catalog-price-and-fitment-lookup",
        "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/dataspryva~rockauto-catalog-price-and-fitment-lookup/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-rockauto-catalog-price-and-fitment-lookup",
        "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/dataspryva~rockauto-catalog-price-and-fitment-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-rockauto-catalog-price-and-fitment-lookup",
        "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": {
          "mode": {
            "title": "Lookup mode",
            "enum": [
              "search",
              "catalog",
              "partNumber",
              "urls"
            ],
            "type": "string",
            "description": "How to look up parts. `search` runs a keyword or part-number search; `catalog` walks a vehicle (year/make/model/engine) to a part type; `partNumber` finds interchange equivalents; `urls` scrapes pasted RockAuto URLs. When omitted, the actor infers the mode from the fields you filled in."
          },
          "queries": {
            "title": "Search queries / part terms",
            "type": "array",
            "description": "One or more search terms. In `search` mode use part numbers, brands, or categories (e.g. `BREMBO P28004`, `oil filter`, `brake pads`). In `catalog` mode use the part type to open for the chosen vehicle (e.g. `brake pad`, `alternator`, `cabin air filter`).",
            "items": {
              "type": "string"
            }
          },
          "partNumbers": {
            "title": "Part numbers",
            "type": "array",
            "description": "Part numbers for `partNumber` mode (e.g. `PH2808`, `51334`). RockAuto returns matching parts from every brand, with live prices and a fitment buyer's guide.",
            "items": {
              "type": "string"
            }
          },
          "vehicleMake": {
            "title": "Vehicle make",
            "type": "string",
            "description": "Catalog mode: vehicle make, e.g. `Toyota`, `Ford`, `Honda`."
          },
          "vehicleModel": {
            "title": "Vehicle model",
            "type": "string",
            "description": "Catalog mode: vehicle model, e.g. `Camry`, `F-150`, `Civic`."
          },
          "vehicleYear": {
            "title": "Vehicle year",
            "minimum": 1900,
            "maximum": 2030,
            "type": "integer",
            "description": "Catalog mode: model year, e.g. `2020`."
          },
          "vehicleEngine": {
            "title": "Vehicle engine",
            "type": "string",
            "description": "Catalog mode: engine, e.g. `2.5L L4`, `5.7L V8 Hemi`. Optional — the first matching engine is used when omitted."
          },
          "manufacturerFilter": {
            "title": "Manufacturer filter",
            "type": "string",
            "description": "Only keep records whose manufacturer matches this text (case-insensitive). In `search` mode it is also sent to RockAuto so the 50-result page is filtered at the source."
          },
          "categoryFilter": {
            "title": "Category / part-type filter",
            "type": "string",
            "description": "Only keep records whose category, part type, part group or description matches this text (case-insensitive), e.g. `Brake Pad`, `Oil Filter`."
          },
          "gradeFilter": {
            "title": "Quality grade",
            "enum": [
              "",
              "Economy",
              "Daily Driver",
              "Premium",
              "High Performance",
              "Heavy Duty"
            ],
            "type": "string",
            "description": "Only keep records in this RockAuto quality group. Applies to catalog and URL modes, which carry RockAuto's grade labels. Leave empty for all grades.",
            "default": ""
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Drop records priced below this amount. Records without a parsed price are kept."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Drop records priced above this amount. Records without a parsed price are kept."
          },
          "inStockOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Drop records RockAuto explicitly marks out of stock.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on parts emitted across all inputs, after deduplication and filtering.",
            "default": 50
          },
          "enrichWithPartDetails": {
            "title": "Fetch part detail pages",
            "type": "boolean",
            "description": "Also fetch each part's more-info page for specifications, warranty, OEM / interchange numbers, features and product images. Adds one request per emitted part.",
            "default": false
          },
          "includeFitment": {
            "title": "Fetch fitment applications",
            "type": "boolean",
            "description": "Also fetch each part's buyer's-guide fitment table (make, model, year range). Adds one request per emitted part.",
            "default": false
          },
          "startUrls": {
            "title": "RockAuto URLs",
            "type": "array",
            "description": "Paste RockAuto part-search, catalog or more-info URLs. A part-type URL returns that page; a category or engine URL is expanded into its part-type pages until `maxResults` is reached; a more-info URL returns that part's detail record.",
            "items": {
              "type": "string"
            }
          },
          "customProxyUrls": {
            "title": "Custom proxy URLs (advanced)",
            "type": "array",
            "description": "Optional premium proxy URLs in `http://user:pass@host:port` form to try before Apify's residential pool. Not needed for normal use."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}