{
  "openapi": "3.0.1",
  "info": {
    "title": "Advance Auto Parts Fitment & Price Drop Tracker",
    "description": "Browse Advance Auto Parts categories or fetch specific product pages for pricing, sale status, fitment confirmation, ratings, and images. Filter by brand, rating, price, or sale status.",
    "version": "1.0",
    "x-build-id": "h2kycKRwNJp1MeYmg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~advance-auto-parts-fitment-and-price-drop-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-advance-auto-parts-fitment-and-price-drop-tracker",
        "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/vexaloom-labs~advance-auto-parts-fitment-and-price-drop-tracker/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-advance-auto-parts-fitment-and-price-drop-tracker",
        "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/vexaloom-labs~advance-auto-parts-fitment-and-price-drop-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-advance-auto-parts-fitment-and-price-drop-tracker",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "browseByCategory",
              "browseByCategoryId",
              "browseCategoryTree",
              "searchByKeyword",
              "byUrl"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "browseByCategory"
          },
          "category": {
            "title": "Top-level category (mode=browseByCategory)",
            "enum": [
              "accessories",
              "air-intake",
              "alternators-and-starters",
              "apparel",
              "appearance-and-paint",
              "audio-and-video",
              "batteries-and-chargers",
              "belts-and-hoses",
              "body",
              "braking",
              "clutch-system",
              "cooling-and-climate-control",
              "drive-shafts-and-axles",
              "drivetrain",
              "electrical",
              "engine",
              "exhaust",
              "filters-and-pcv",
              "fluids-and-chemicals",
              "fuel-and-emissions-system",
              "ignition-and-tune-up",
              "interior",
              "jacks-garage-and-equipment",
              "lawn-and-garden",
              "lighting",
              "marine-and-rv",
              "motorcycle-and-atv",
              "oil-and-lubricants",
              "performance-and-racing",
              "steering-and-chassis",
              "suspension",
              "tools",
              "towing",
              "transmission",
              "wheels-and-tires"
            ],
            "type": "string",
            "description": "Browse every product in this top-level category, including all subcategories.",
            "default": "braking"
          },
          "categoryIds": {
            "title": "Category IDs or URLs (mode=browseByCategoryId)",
            "type": "array",
            "description": "Paste numeric category IDs (e.g. 81637) or full category URLs. Each category is fetched with full pagination.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries (mode=searchByKeyword)",
            "type": "array",
            "description": "Free-text searches: part names, brands, part numbers, or interchange numbers. One query per item; results are merged and deduplicated.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "interchangePartNumber": {
            "title": "Interchange part number",
            "type": "string",
            "description": "Find parts that interchange with this part number. When set, this replaces the free-text queries and searches the site's interchange index."
          },
          "urls": {
            "title": "Product URLs (mode=byUrl)",
            "type": "array",
            "description": "Full product URLs, e.g. https://shop.advanceautoparts.com/p/diehard-platinum-agm-battery-h6-group-size/10210829-P . Both canonical -P URLs and older URLs are accepted.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "brand": {
            "title": "Brand contains",
            "type": "string",
            "description": "Keep only products whose brand name contains this text. An exact brand match is also sent to the site's brand facet to reduce downloads."
          },
          "minRating": {
            "title": "Minimum rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only emit products with an average rating at least this high (1-5)."
          },
          "minPrice": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Only emit products whose current price is at least this value."
          },
          "maxPrice": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Only emit products whose current price is at or below this value."
          },
          "saleOnly": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Only emit products currently flagged as on sale.",
            "default": false
          },
          "availability": {
            "title": "Availability",
            "enum": [
              "any",
              "pickup",
              "ship"
            ],
            "type": "string",
            "description": "Filter by how the product can be fulfilled.",
            "default": "any"
          },
          "fitment": {
            "title": "Fitment",
            "enum": [
              "any",
              "exact",
              "notFitted"
            ],
            "type": "string",
            "description": "Filter by the site's fitment flag. Exact fit means the part is confirmed for the selected vehicle context; choose Any when no vehicle is selected.",
            "default": "any"
          },
          "vehicleType": {
            "title": "Vehicle type (optional vehicle fitment)",
            "enum": [
              "car",
              "motorcycle"
            ],
            "type": "string",
            "description": "Vehicle type used with the year/make/model fields.",
            "default": "car"
          },
          "vehicleYear": {
            "title": "Vehicle year",
            "type": "string",
            "description": "Optional vehicle year (e.g. 2020). Fill year, make, and model together to make fitmentStatus vehicle-specific and to use the exact-fit filter."
          },
          "vehicleMake": {
            "title": "Vehicle make",
            "type": "string",
            "description": "Optional vehicle make (e.g. Toyota)."
          },
          "vehicleModel": {
            "title": "Vehicle model",
            "type": "string",
            "description": "Optional vehicle model (e.g. Camry LE)."
          },
          "vehicleEngine": {
            "title": "Vehicle engine (optional)",
            "type": "string",
            "description": "Optional engine text to disambiguate multiple engines for the same model (e.g. 2.5L). The first match is used when omitted."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "most_popular",
              "rating_desc",
              "price_asc",
              "price_desc",
              "name_asc",
              "name_desc"
            ],
            "type": "string",
            "description": "Order of emitted records, using the site's native sort orders.",
            "default": "relevance"
          },
          "detailLevel": {
            "title": "Detail level",
            "enum": [
              "overview",
              "full"
            ],
            "type": "string",
            "description": "Overview uses one search response per 120 products. Full adds the site's list price, online stock, and (when a store ID is set) live store quantity.",
            "default": "overview"
          },
          "storeId": {
            "title": "Store ID (detailLevel=full)",
            "type": "string",
            "description": "Optional Advance Auto Parts store ID. When set with detailLevel=full, each product includes that store's quantity and stock status. Leave blank to skip store calls."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on emitted records. The source catalog is roughly 52,000 products in the largest category.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}