{
  "openapi": "3.0.1",
  "info": {
    "title": "1800PetMeds Scraper",
    "description": "Scrape 1800PetMeds' pet medication and supply catalog. Search by keyword, browse by pet type (dog/cat/horse) and department (food, health & wellness, pharmacy, supplies, treats), or by brand. Filter by price, rating, and prescription requirement. No login, no cookies, no paid proxy.",
    "version": "1.0",
    "x-build-id": "VvLtBg0psyZs7VuIQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~1800petmeds-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-1800petmeds-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/crawlerbros~1800petmeds-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-1800petmeds-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/crawlerbros~1800petmeds-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-1800petmeds-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byCategory",
              "byBrand"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Free-text keyword matched against product title and brand (mode=search).",
            "default": "flea and tick"
          },
          "petType": {
            "title": "Pet type",
            "enum": [
              "",
              "dog",
              "cat",
              "horse"
            ],
            "type": "string",
            "description": "Browse a specific pet type (mode=byCategory; also usable as a filter in other modes).",
            "default": ""
          },
          "categoryGroup": {
            "title": "Category group",
            "enum": [
              "",
              "food",
              "health-and-wellness",
              "pharmacy",
              "supplies",
              "treats"
            ],
            "type": "string",
            "description": "Department within the chosen pet type (mode=byCategory). Requires `petType`.",
            "default": ""
          },
          "subCategory": {
            "title": "Sub-category (precise leaf category)",
            "enum": [
              "",
              "cat:food:dry-food",
              "cat:food:kitten-food",
              "cat:food:premium-food",
              "cat:food:raw-freeze-dried-and-dehydrated-food",
              "cat:food:senior-cat-food",
              "cat:food:veterinary-diet",
              "cat:food:wet-food",
              "cat:health-and-wellness:calming-and-anxiety",
              "cat:health-and-wellness:dewormers",
              "cat:health-and-wellness:digestive-health",
              "cat:health-and-wellness:flea-and-tick",
              "cat:health-and-wellness:heart-and-liver",
              "cat:health-and-wellness:hip-and-joint",
              "cat:health-and-wellness:skin-and-coat",
              "cat:health-and-wellness:urinary-and-kidney",
              "cat:health-and-wellness:vitamins-and-supplements",
              "cat:pharmacy:dewormer",
              "cat:pharmacy:digestive-care",
              "cat:pharmacy:flea-and-tick",
              "cat:pharmacy:heartworm-medicine",
              "cat:pharmacy:hormonal-and-endocrine",
              "cat:pharmacy:prescription-food",
              "cat:pharmacy:prescription-treats",
              "cat:pharmacy:skin-care",
              "cat:pharmacy:urinary-tract-and-kidneys",
              "cat:supplies:beauty-and-grooming",
              "cat:supplies:cleaners-and-stain-removers",
              "cat:supplies:litter-and-accessories",
              "cat:supplies:test-kits",
              "cat:supplies:toys-play-and-enrichment",
              "cat:supplies:training-and-behavior",
              "cat:treats:biscuits-and-crunchy-treats",
              "cat:treats:dental-treats",
              "cat:treats:pill-pockets",
              "cat:treats:prescription-treats",
              "cat:treats:soft-and-chewy-treats",
              "dog:food:dry-food",
              "dog:food:premium-food",
              "dog:food:puppy-food",
              "dog:food:raw-freeze-dried-and-dehydrated-food",
              "dog:food:senior-dog-food",
              "dog:food:toppers",
              "dog:food:veterinary-diet",
              "dog:food:wet-food",
              "dog:health-and-wellness:antibiotics-and-anti-infectives",
              "dog:health-and-wellness:calming-and-anxiety",
              "dog:health-and-wellness:dental",
              "dog:health-and-wellness:flea-and-tick",
              "dog:health-and-wellness:heart-and-liver",
              "dog:health-and-wellness:hip-and-joint",
              "dog:health-and-wellness:skin-and-coat",
              "dog:health-and-wellness:urinary-and-kidney",
              "dog:health-and-wellness:vitamins-and-supplements",
              "dog:pharmacy:anxiety-relief",
              "dog:pharmacy:flea-and-tick",
              "dog:pharmacy:heart-and-blood-pressure",
              "dog:pharmacy:heartworm-medicine",
              "dog:pharmacy:hormonal-and-endocrine",
              "dog:pharmacy:pain-and-inflammation-relief",
              "dog:pharmacy:seizure-disorder",
              "dog:pharmacy:skin-care",
              "dog:pharmacy:urinary-tract-and-kidneys",
              "dog:supplies:beauty-and-grooming",
              "dog:supplies:beds-crates-and-gear",
              "dog:supplies:bowls-and-feeding",
              "dog:supplies:cleaners-and-stain-removers",
              "dog:supplies:test-kits",
              "dog:supplies:toys",
              "dog:supplies:training-and-behavior",
              "dog:supplies:waste-management",
              "dog:treats:biscuits-and-crunchy-treats",
              "dog:treats:bones-and-antlers",
              "dog:treats:bully-sticks",
              "dog:treats:dental-and-hard-chews",
              "dog:treats:pill-pockets",
              "dog:treats:prescription-treats",
              "dog:treats:soft-and-chewy-treats",
              "horse:health-and-wellness:beauty-and-grooming",
              "horse:health-and-wellness:calming-and-anxiety",
              "horse:health-and-wellness:dewormers",
              "horse:health-and-wellness:digestive-health",
              "horse:health-and-wellness:first-aid",
              "horse:health-and-wellness:hip-and-joint",
              "horse:health-and-wellness:hoof-care",
              "horse:health-and-wellness:shampoos-and-conditioners",
              "horse:health-and-wellness:vitamins-and-supplements",
              "horse:pharmacy:antibiotics",
              "horse:pharmacy:digestive-care",
              "horse:pharmacy:diuretics",
              "horse:pharmacy:eye-care",
              "horse:pharmacy:hormonal-and-endocrine",
              "horse:pharmacy:joint-care",
              "horse:pharmacy:pain"
            ],
            "type": "string",
            "description": "Pick an exact leaf category (e.g. \"Dog > Pharmacy (Rx) > Flea & Tick\"). Overrides `petType` + `categoryGroup` when set (mode=byCategory).",
            "default": ""
          },
          "brand": {
            "title": "Brand",
            "enum": [
              "",
              "Hill's Science Diet",
              "Simparica TRIO",
              "NexGard",
              "NexGard Plus",
              "Trifexis",
              "Credelio",
              "Credelio Quattro",
              "Revolution",
              "Revolution Plus",
              "Bravecto",
              "Sentinel",
              "Sentinel Spectrum",
              "Seresto",
              "Comfortis",
              "Interceptor",
              "Zesty Paws",
              "Royal Canin",
              "Purina Pro Plan",
              "Purina ONE",
              "Blue Buffalo",
              "Taste of the Wild",
              "Orijen",
              "Nulo",
              "Iams",
              "Diamond",
              "Farmina",
              "TropiClean",
              "NaturVet",
              "Apoquel",
              "Oravet",
              "Rimadyl",
              "Zenrelia",
              "Simparica",
              "Alzoo"
            ],
            "type": "string",
            "description": "Curated top brand to browse/filter by exact match (mode=byBrand). For any other brand use `brandQuery` instead.",
            "default": ""
          },
          "brandQuery": {
            "title": "Brand (free text)",
            "type": "string",
            "description": "Free-text substring match on brand — overrides `brand` when set. Use for any brand not in the curated dropdown."
          },
          "minPrice": {
            "title": "Min price (USD)",
            "minimum": 0,
            "maximum": 10000,
            "type": "number",
            "description": "Drop products cheaper than this."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "minimum": 0,
            "maximum": 10000,
            "type": "number",
            "description": "Drop products more expensive than this."
          },
          "minRating": {
            "title": "Min customer rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Drop products rated below this (0-5 stars). Products with no rating yet are excluded when this is set."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "title-asc",
              "title-desc",
              "price-asc",
              "review-desc",
              "newest"
            ],
            "type": "string",
            "description": "Result order, matching 1800PetMeds' own sort dropdown. Applies to all modes.",
            "default": "relevance"
          },
          "prescriptionOnly": {
            "title": "Prescription items only",
            "type": "boolean",
            "description": "Only emit products that require a vet prescription.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Only used as an automatic fallback if 1800PetMeds rate-limits (429) or blocks (403) the default datacenter IP. Uses the free AUTO group.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}