{
  "openapi": "3.0.1",
  "info": {
    "title": "RockAuto Parts Price Monitor",
    "description": "Look up and incrementally price-monitor RockAuto.com auto parts by vehicle (make/year/model/engine) and part type: brand, price, fitment, quality tier. No login, no API key.",
    "version": "0.1",
    "x-build-id": "TlyRXJhL7f6ukxkYp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mooseandraven~rockauto-parts-pricing-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mooseandraven-rockauto-parts-pricing-monitor",
        "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/mooseandraven~rockauto-parts-pricing-monitor/runs": {
      "post": {
        "operationId": "runs-sync-mooseandraven-rockauto-parts-pricing-monitor",
        "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/mooseandraven~rockauto-parts-pricing-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-mooseandraven-rockauto-parts-pricing-monitor",
        "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": {
          "vehicles": {
            "title": "Vehicles to look up",
            "type": "array",
            "description": "Array of { make, year, model, engine?, partTypes }. make/year/model must match RockAuto's own catalog labels (e.g. make \"Acura\", model \"MDX\", year 2020) — case-insensitive for model, exact for year. engine is optional: omit it when the make/year/model has only one engine option; if there are several, the actor reports the available engine names instead of guessing. partTypes is an array of part-type names (e.g. [\"Brake Pad\", \"Oil Filter\"]) — case-insensitive, substring-matched if no exact match. Omit partTypes to get back the full list of available categories/part types for that vehicle instead of part data (use this to discover valid names first). Default is a real, live, bounded lookup so a bare-default run exercises the actual path.",
            "items": {
              "type": "object",
              "properties": {
                "make": {
                  "title": "Make",
                  "type": "string",
                  "description": "RockAuto's own make label, e.g. \"Acura\"."
                },
                "year": {
                  "title": "Year",
                  "type": "integer",
                  "description": "Model year, e.g. 2020."
                },
                "model": {
                  "title": "Model",
                  "type": "string",
                  "description": "RockAuto's own model label, e.g. \"MDX\" (case-insensitive)."
                },
                "engine": {
                  "title": "Engine",
                  "type": "string",
                  "description": "Optional — RockAuto's own engine label, e.g. \"3.5L V6\". Omit if the vehicle has only one engine option."
                },
                "partTypes": {
                  "title": "Part types",
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Part-type names to look up, e.g. \"Brake Pad\". Omit entirely to receive the full list of valid categories/part types for this vehicle instead of part data."
                }
              },
              "required": [
                "make",
                "year",
                "model"
              ]
            },
            "default": [
              {
                "make": "Acura",
                "year": 2020,
                "model": "MDX",
                "engine": "3.5L V6",
                "partTypes": [
                  "Brake Pad"
                ]
              }
            ]
          },
          "monitorMode": {
            "title": "Incremental price-change monitor mode",
            "type": "boolean",
            "description": "When on, the actor remembers each part's last-seen price (via a persistent named key-value store) and only delivers a part again when it is new OR its price has changed since the last run — the real use case for repeat-scheduled runs (price-drift tracking for valuation/insurance-adjuster lookups). Also tracks a rolling extraction-count baseline per vehicle+part-type to detect selector drift (see README). Each delivered part record is tagged changeType: baseline_snapshot (first time seen) or price_change (later price move) and billed as a normal part-record event — there is no separate per-run fee.",
            "default": false
          },
          "maxRecordsPerRun": {
            "title": "Max part records per run",
            "minimum": 0,
            "type": "integer",
            "description": "0 = no caller-supplied cap (a real request with vehicles specified would then be uncapped; a bare run with no vehicles is capped internally regardless). Default of 8 keeps the default worked example (one real vehicle/part-type, 60 real listings available) a small, honest, disclosed sample rather than silently billing for all of them — set to 0 or raise it for your own real pull.",
            "default": 8
          },
          "requestTimeoutSecs": {
            "title": "Per-page timeout (seconds)",
            "minimum": 5,
            "type": "integer",
            "description": "How long to wait for a single RockAuto page to load before treating it as a failure.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}