{
  "openapi": "3.0.1",
  "info": {
    "title": "Pet Store Prices: Chewy, Petco & PetSmart Scraper",
    "description": "Compare Chewy, Petco and PetSmart prices for dog food, cat litter and supplies: sale, Autoship and Treats offers, sizes, brands, pickup stock where available and source UPCs. About $0.004 per product: 1,000 products cost $4 plus a $0.00005 start charge. No login.",
    "version": "1.0",
    "x-build-id": "HIy2DjubcoyIVrdgR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vant47~pet-store-prices-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vant47-pet-store-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/vant47~pet-store-prices-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vant47-pet-store-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/vant47~pet-store-prices-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vant47-pet-store-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 chewy, petco or petsmart. Default all three. Unknown names become free notes.",
            "default": [
              "chewy",
              "petco",
              "petsmart"
            ],
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "searchTerms",
            "type": "array",
            "description": "Pet food or supply keywords, such as dog food or cat litter. Search every selected retailer.",
            "items": {
              "type": "string"
            }
          },
          "categoryUrls": {
            "title": "categoryUrls",
            "type": "array",
            "description": "Optional HTTPS category or brand links from a selected retailer. Each link routes only to its own retailer.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "startUrls",
            "type": "array",
            "description": "Optional HTTPS product, category, deals or search links from Chewy, Petco or PetSmart. Each link routes only to its retailer.",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "productIds",
            "type": "array",
            "description": "Use chewy:128666, petco:3748364, or petsmart:5252900. Bare numeric IDs are accepted only when exactly one retailer is selected. IDs are not barcodes.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "postalCodes",
            "type": "array",
            "description": "US ZIP codes. PetSmart resolves nearest-store pickup stock; Petco resolves directory metadata; Chewy preserves context. Product prices remain national online prices.",
            "items": {
              "type": "string"
            }
          },
          "storeIds": {
            "title": "storeIds",
            "type": "array",
            "description": "Exact petco:2636 or petsmart:3151 store IDs override ZIPs for that retailer. Bare IDs require one selected retailer. Chewy has no retail stores.",
            "items": {
              "type": "string"
            }
          },
          "maxItemsPerRetailer": {
            "title": "maxItemsPerRetailer",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap on all delivered product/store observations from each retailer, across sources. Set maxItems high enough to include every selected retailer.",
            "default": 10
          },
          "maxItems": {
            "title": "maxItems",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global cap across retailers and stores. Retailers run in selection order. The smaller of maxItems and maxResults wins.",
            "default": 30
          },
          "dealsOnly": {
            "title": "dealsOnly",
            "type": "boolean",
            "description": "Keep numeric sales and source offers, including subscription offers where supplied. Terms and introductory prices remain separate.",
            "default": false
          },
          "includeDetails": {
            "title": "includeDetails",
            "type": "boolean",
            "description": "Add available descriptions and longer metadata. PetSmart detail data can add recurring and introductory Autoship prices. No extra charge.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "proxyConfiguration",
            "type": "object",
            "description": "Automatic default datacenter first, then US residential retries after refusal. Explicit disable, groups, country or custom URLs are preserved.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxItemsPerSearch": {
            "title": "maxItemsPerSearch",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Optional cap for one source at one store. Default follows maxItemsPerRetailer, up to 1,000."
          },
          "locations": {
            "title": "locations",
            "type": "array",
            "description": "Alias adding US ZIP codes to postalCodes.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "maxResults",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Alias cap. The smaller of maxResults and maxItems wins, even if the platform inserts default maxItems=30."
          },
          "queries": {
            "title": "queries",
            "type": "array",
            "description": "Additional search terms combined with searchTerms.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "keywords",
            "type": "array",
            "description": "Additional search terms combined with searchTerms.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "query",
            "type": "string",
            "description": "An additional search term combined with searchTerms."
          },
          "searchTerm": {
            "title": "searchTerm",
            "type": "string",
            "description": "An additional search term combined with searchTerms."
          },
          "includeUnpriced": {
            "title": "includeUnpriced",
            "type": "boolean",
            "description": "Include products without a numeric price or dated promotion for free. These rows are excluded by default.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}