{
  "openapi": "3.0.1",
  "info": {
    "title": "Worn Wear Resale Scraper",
    "description": "Scrape Patagonia Worn Wear - Patagonia's official secondhand resale marketplace. Search or browse by category, get resale price, estimated retail price, size, condition, and images for used Patagonia gear.",
    "version": "1.0",
    "x-build-id": "alyiJFggbN7AhY3CK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~wornwear-resale-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-wornwear-resale-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~wornwear-resale-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-wornwear-resale-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~wornwear-resale-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-wornwear-resale-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",
              "byProductHandles"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Free-text keyword matched against item title, tags, and style code.",
            "default": "fleece jacket"
          },
          "categoryPath": {
            "title": "Category (mode=byCategory)",
            "enum": [
              "alpine-ambassador-favorites",
              "backpacks",
              "baggies-shorts",
              "bags-and-duffels",
              "best-sellers",
              "better-sweater-fleece",
              "black-hole-bags",
              "boardshorts",
              "climbing",
              "climbing-pants",
              "down-sweater-insulation",
              "duffels-and-roller-bags",
              "fall-collection",
              "flannels",
              "fleece",
              "fly-fishing",
              "gift-guide",
              "gifts-under-100",
              "hiking",
              "hip-packs-and-slings",
              "imperfectly-patched",
              "jackets",
              "just-added",
              "kids-and-baby",
              "kids-and-baby-bottoms",
              "kids-and-baby-buntings-one-pieces",
              "kids-and-baby-dresses-skirts",
              "kids-and-baby-fleece",
              "kids-and-baby-fleece-jackets",
              "kids-and-baby-fleece-pullovers",
              "kids-and-baby-fleece-vests",
              "kids-and-baby-insulated-jackets",
              "kids-and-baby-jackets",
              "kids-and-baby-jackets-and-vests",
              "kids-and-baby-jumpsuits-overalls",
              "kids-and-baby-just-added",
              "kids-and-baby-pants",
              "kids-and-baby-parkas",
              "kids-and-baby-rain-and-snow-jackets",
              "kids-and-baby-rain-and-snow-pants",
              "kids-and-baby-shorts",
              "kids-and-baby-vests",
              "kids-snow",
              "mens",
              "mens-bottoms",
              "mens-button-downs",
              "mens-casual-jackets",
              "mens-fleece",
              "mens-fleece-jackets",
              "mens-fleece-pullovers",
              "mens-fleece-vests",
              "mens-insulated-and-down-jackets",
              "mens-jackets",
              "mens-jackets-and-vests",
              "mens-just-added",
              "mens-overalls",
              "mens-pants",
              "mens-parkas",
              "mens-pullovers",
              "mens-rain-and-waterproof-jackets",
              "mens-shorts",
              "mens-skiing-and-snowboarding-jackets",
              "mens-snow-alpine-pants",
              "mens-sweaters",
              "mens-technical-fleece",
              "mens-tops",
              "mens-vests",
              "mens-wetsuits",
              "mountain-biking",
              "nano-puff-insulation",
              "outerwear",
              "packs-and-gear",
              "packs-and-gear-just-added",
              "pants",
              "parkas",
              "patagonia-favorites",
              "patagonia-featured",
              "pataloha",
              "rainwear",
              "re-tool",
              "recrafted",
              "regulator-fleece",
              "reinforced",
              "repaired-collection",
              "retro-x-fleece",
              "seconds",
              "shirts",
              "shop-by-activity",
              "shorts",
              "sleeping-bags",
              "snap-t-fleece",
              "snow",
              "summer-favorites",
              "surfing",
              "sweaters",
              "technical-insulation",
              "totes",
              "trail-running",
              "vintage",
              "web-specials",
              "wetsuits",
              "womens",
              "womens-bottoms",
              "womens-button-downs",
              "womens-casual-jackets",
              "womens-dresses",
              "womens-dresses-jumpsuits-and-overalls",
              "womens-fleece",
              "womens-fleece-jackets",
              "womens-fleece-pullovers",
              "womens-fleece-vests",
              "womens-insulated-down-jackets",
              "womens-jackets",
              "womens-jackets-and-vests",
              "womens-just-added",
              "womens-overalls-and-jumpsuits",
              "womens-pants",
              "womens-parkas",
              "womens-pullovers",
              "womens-rain-and-waterproof-jackets",
              "womens-shorts",
              "womens-skiing-and-snowboarding-jackets",
              "womens-skirts",
              "womens-snow-and-alpine-pants",
              "womens-sweaters",
              "womens-technical-fleece",
              "womens-tops",
              "womens-vests",
              "womens-wetsuits",
              "workwear"
            ],
            "type": "string",
            "description": "Worn Wear collection to browse.",
            "default": "mens-jackets"
          },
          "productHandles": {
            "title": "Product handles or URLs (mode=byProductHandles)",
            "type": "array",
            "description": "Worn Wear product handles (e.g. `ws-cord-fjord-jkt_20335_dvl`) or full product URLs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "gender": {
            "title": "Gender / department",
            "enum": [
              "all",
              "Men's",
              "Women's",
              "Kids & Baby",
              "Unisex"
            ],
            "type": "string",
            "description": "Filter items to a specific gender/department.",
            "default": "all"
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "all",
              "Excellent condition",
              "Great condition",
              "Good condition"
            ],
            "type": "string",
            "description": "Filter items to a specific used-item condition grade.",
            "default": "all"
          },
          "size": {
            "title": "Size",
            "type": "string",
            "description": "Filter to an exact size label as shown on Worn Wear, e.g. `M`, `L`, `XL`, `8`, `2T`."
          },
          "minPrice": {
            "title": "Min resale price (USD)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Drop items cheaper than this (USD)."
          },
          "maxPrice": {
            "title": "Max resale price (USD)",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Drop items more expensive than this (USD)."
          },
          "inStockOnly": {
            "title": "In-stock only",
            "type": "boolean",
            "description": "Only emit items that are currently available for purchase (each used item is a single unique unit; sold items become unavailable).",
            "default": true
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "default",
              "priceLowToHigh",
              "priceHighToLow"
            ],
            "type": "string",
            "description": "How to order results before applying maxItems.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on emitted items.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}