{
  "openapi": "3.0.1",
  "info": {
    "title": "Pharmacy & Beauty Prices: CVS, Walgreens, Ulta & Sephora",
    "description": "Compare CVS, Walgreens, Ulta and Sephora pharmacy, drugstore and beauty product prices: sale and regular prices, signed-out rewards, coupon dates when supplied, sizes and stock signals. Online prices; ZIP stores for CVS, Walgreens and Ulta. $0.004 per product: 1,000 cost $4. No login.",
    "version": "1.0",
    "x-build-id": "PKB6qe6NnWRffUEnV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moggedhq~pharmacy-beauty-prices-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moggedhq-pharmacy-beauty-prices-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/moggedhq~pharmacy-beauty-prices-scraper/runs": {
      "post": {
        "operationId": "runs-sync-moggedhq-pharmacy-beauty-prices-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/moggedhq~pharmacy-beauty-prices-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-moggedhq-pharmacy-beauty-prices-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": {
          "retailers": {
            "title": "Retailers",
            "type": "array",
            "description": "Choose cvs, walgreens, ulta and sephora. Unknown selections produce free notes.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Search each selected retailer. Walgreens returns up to seven relevant suggestions per term.",
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "Category URLs",
            "type": "array",
            "description": "Public category, sale or brand URLs. Automatically routed by retailer hostname.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Product or listing URLs",
            "type": "array",
            "description": "Public HTTPS URLs; each is sent only to its retailer.",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product IDs",
            "type": "array",
            "description": "Use with exactly one retailer; for several retailers use retailerInputs. IDs are never treated as barcodes.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "US ZIP codes",
            "type": "array",
            "description": "Nearest store for CVS, Walgreens and Ulta. Sephora cannot resolve ZIPs and produces a free note without substituting a store.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "ZIP codes (family alias)",
            "type": "array",
            "description": "Same as postalCodes. Both lists are combined.",
            "items": {
              "type": "string"
            }
          },
          "storeIds": {
            "title": "Store IDs",
            "type": "array",
            "description": "Use with one retailer. Multiple retailers have different ID systems; use retailerInputs for exact selections.",
            "items": {
              "type": "string"
            }
          },
          "retailerInputs": {
            "title": "Retailer-specific selectors",
            "type": "object",
            "description": "Object keyed by cvs, walgreens, ulta or sephora. Supports searchTerms, startUrls, categoryUrls, productIds, postalCodes, locations and storeIds. A selector here overrides that common selector.",
            "properties": {
              "cvs": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "searchTerms": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Search terms",
                    "description": "Search each selected retailer. Walgreens returns up to seven relevant suggestions per term.",
                    "editor": "stringList"
                  },
                  "categoryUrls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Category URLs",
                    "description": "Public category, sale or brand URLs. Automatically routed by retailer hostname.",
                    "editor": "stringList"
                  },
                  "startUrls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Product or listing URLs",
                    "description": "Public HTTPS URLs; each is sent only to its retailer.",
                    "editor": "stringList"
                  },
                  "productIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Product IDs",
                    "description": "Use with exactly one retailer; for several retailers use retailerInputs. IDs are never treated as barcodes.",
                    "editor": "stringList"
                  },
                  "postalCodes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "US ZIP codes",
                    "description": "Nearest store for CVS, Walgreens and Ulta. Sephora cannot resolve ZIPs and produces a free note without substituting a store.",
                    "editor": "stringList"
                  },
                  "locations": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "ZIP codes (family alias)",
                    "description": "Same as postalCodes. Both lists are combined.",
                    "editor": "stringList"
                  },
                  "storeIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Store IDs",
                    "description": "Use with one retailer. Multiple retailers have different ID systems; use retailerInputs for exact selections.",
                    "editor": "stringList"
                  }
                },
                "title": "Cvs selectors",
                "description": "Optional product and store selectors for this retailer.",
                "editor": "json"
              },
              "walgreens": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "searchTerms": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Search terms",
                    "description": "Search each selected retailer. Walgreens returns up to seven relevant suggestions per term.",
                    "editor": "stringList"
                  },
                  "categoryUrls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Category URLs",
                    "description": "Public category, sale or brand URLs. Automatically routed by retailer hostname.",
                    "editor": "stringList"
                  },
                  "startUrls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Product or listing URLs",
                    "description": "Public HTTPS URLs; each is sent only to its retailer.",
                    "editor": "stringList"
                  },
                  "productIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Product IDs",
                    "description": "Use with exactly one retailer; for several retailers use retailerInputs. IDs are never treated as barcodes.",
                    "editor": "stringList"
                  },
                  "postalCodes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "US ZIP codes",
                    "description": "Nearest store for CVS, Walgreens and Ulta. Sephora cannot resolve ZIPs and produces a free note without substituting a store.",
                    "editor": "stringList"
                  },
                  "locations": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "ZIP codes (family alias)",
                    "description": "Same as postalCodes. Both lists are combined.",
                    "editor": "stringList"
                  },
                  "storeIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Store IDs",
                    "description": "Use with one retailer. Multiple retailers have different ID systems; use retailerInputs for exact selections.",
                    "editor": "stringList"
                  }
                },
                "title": "Walgreens selectors",
                "description": "Optional product and store selectors for this retailer.",
                "editor": "json"
              },
              "ulta": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "searchTerms": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Search terms",
                    "description": "Search each selected retailer. Walgreens returns up to seven relevant suggestions per term.",
                    "editor": "stringList"
                  },
                  "categoryUrls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Category URLs",
                    "description": "Public category, sale or brand URLs. Automatically routed by retailer hostname.",
                    "editor": "stringList"
                  },
                  "startUrls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Product or listing URLs",
                    "description": "Public HTTPS URLs; each is sent only to its retailer.",
                    "editor": "stringList"
                  },
                  "productIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Product IDs",
                    "description": "Use with exactly one retailer; for several retailers use retailerInputs. IDs are never treated as barcodes.",
                    "editor": "stringList"
                  },
                  "postalCodes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "US ZIP codes",
                    "description": "Nearest store for CVS, Walgreens and Ulta. Sephora cannot resolve ZIPs and produces a free note without substituting a store.",
                    "editor": "stringList"
                  },
                  "locations": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "ZIP codes (family alias)",
                    "description": "Same as postalCodes. Both lists are combined.",
                    "editor": "stringList"
                  },
                  "storeIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Store IDs",
                    "description": "Use with one retailer. Multiple retailers have different ID systems; use retailerInputs for exact selections.",
                    "editor": "stringList"
                  }
                },
                "title": "Ulta selectors",
                "description": "Optional product and store selectors for this retailer.",
                "editor": "json"
              },
              "sephora": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "searchTerms": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Search terms",
                    "description": "Search each selected retailer. Walgreens returns up to seven relevant suggestions per term.",
                    "editor": "stringList"
                  },
                  "categoryUrls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Category URLs",
                    "description": "Public category, sale or brand URLs. Automatically routed by retailer hostname.",
                    "editor": "stringList"
                  },
                  "startUrls": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Product or listing URLs",
                    "description": "Public HTTPS URLs; each is sent only to its retailer.",
                    "editor": "stringList"
                  },
                  "productIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Product IDs",
                    "description": "Use with exactly one retailer; for several retailers use retailerInputs. IDs are never treated as barcodes.",
                    "editor": "stringList"
                  },
                  "postalCodes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "US ZIP codes",
                    "description": "Nearest store for CVS, Walgreens and Ulta. Sephora cannot resolve ZIPs and produces a free note without substituting a store.",
                    "editor": "stringList"
                  },
                  "locations": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "ZIP codes (family alias)",
                    "description": "Same as postalCodes. Both lists are combined.",
                    "editor": "stringList"
                  },
                  "storeIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "title": "Store IDs",
                    "description": "Use with one retailer. Multiple retailers have different ID systems; use retailerInputs for exact selections.",
                    "editor": "stringList"
                  }
                },
                "title": "Sephora selectors",
                "description": "Optional product and store selectors for this retailer.",
                "editor": "json"
              }
            },
            "additionalProperties": false
          },
          "maxItemsPerRetailer": {
            "title": "Products per retailer",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum delivered product/store rows for each retailer.",
            "default": 10
          },
          "maxItems": {
            "title": "Total products",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global row cap across all retailers, processed in selected order.",
            "default": 40
          },
          "maxItemsPerSearch": {
            "title": "Products per source and store",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Additional family cap per source/store. A missing value uses maxItemsPerRetailer."
          },
          "dealsOnly": {
            "title": "Deals only",
            "type": "boolean",
            "description": "Keep supplied sales and conditional offers; coupons are never deducted.",
            "default": false
          },
          "includeDetails": {
            "title": "Include details",
            "type": "boolean",
            "description": "Collect optional descriptions and ingredients when supported. No extra product fee.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Automatic default tries datacenter then US residential. Explicit disable, groups, country and custom proxies are respected.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}