{
  "openapi": "3.0.1",
  "info": {
    "title": "Gymshark Scraper",
    "description": "Scrape Gymshark's activewear catalog - browse by category, keyword search, or fetch full product detail by URL. Prices, sale prices, colours, sizes, stock status, ratings, reviews, and images, with no login required.",
    "version": "1.0",
    "x-build-id": "r7omZqtzL3c9goont"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~gymshark-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-gymshark-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~gymshark-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-gymshark-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~gymshark-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-gymshark-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": [
              "byCategory",
              "search",
              "byProduct"
            ],
            "type": "string",
            "description": "What to fetch: browse a category collection, keyword search across the catalog, or fetch specific product URLs.",
            "default": "byCategory"
          },
          "category": {
            "title": "Category (mode=byCategory)",
            "enum": [
              "all-products",
              "accessories",
              "athleisure",
              "bags",
              "base-layers",
              "bodybuilding",
              "bottoms",
              "crop-tops",
              "flex",
              "headwear",
              "hoodies",
              "hoodies-jackets",
              "jackets",
              "joggers",
              "joggers-sweatpants",
              "leggings",
              "legacy",
              "long-sleeve",
              "matching-sets",
              "new-releases",
              "outlet",
              "oversized",
              "pullovers",
              "running",
              "seamless",
              "seamless-leggings",
              "shorts",
              "sleeveless",
              "socks",
              "sports-bras",
              "stringers",
              "swimwear",
              "t-shirts-tops",
              "tanks",
              "tracksuits",
              "underwear",
              "vests",
              "yoga",
              "zip-hoodies",
              "zip-jackets"
            ],
            "type": "string",
            "description": "Product category to browse. Combine with `gender` below. Use `customCategorySlug` instead to target any of Gymshark's other collection slugs (e.g. seasonal drops) not listed here.",
            "default": "leggings"
          },
          "customCategorySlug": {
            "title": "Custom category slug (overrides `category`)",
            "type": "string",
            "description": "Any gymshark.com/collections/<slug> value not covered by the `category` dropdown (e.g. `whitney`, `flared-leggings`, `black-leggings`). Takes precedence over `category` when set."
          },
          "gender": {
            "title": "Gender",
            "enum": [
              "mens",
              "womens"
            ],
            "type": "string",
            "description": "Scopes `byCategory` and `search` to one department. Leave unset to browse/search both."
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Keyword matched case-insensitively against product title, category, colour, and merchandising tags across the full catalog (~700 products per department).",
            "default": "leggings"
          },
          "productUrls": {
            "title": "Product URLs (mode=byProduct)",
            "type": "array",
            "description": "Full gymshark.com/products/<handle> URLs, or bare handles, e.g. `gymshark-whitney-flared-leggings-leggings-pink-ss26`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "priceLowToHigh",
              "priceHighToLow",
              "ratingHighToLow"
            ],
            "type": "string",
            "description": "Sort order applied to results after fetching (byCategory/search modes).",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Min price (USD)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Drop products priced below this (current price)."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Drop products priced above this (current price)."
          },
          "onSaleOnly": {
            "title": "Sale items only",
            "type": "boolean",
            "description": "Only emit products currently discounted.",
            "default": false
          },
          "newOnly": {
            "title": "New arrivals only",
            "type": "boolean",
            "description": "Only emit products currently carrying Gymshark's own \"New\" merchandising badge.",
            "default": false
          },
          "inStockOnly": {
            "title": "In-stock only",
            "type": "boolean",
            "description": "Only emit products with at least one size currently in stock.",
            "default": false
          },
          "colour": {
            "title": "Colour filter",
            "enum": [
              "black",
              "blue",
              "brown",
              "green",
              "grey",
              "orange",
              "pink",
              "purple",
              "red",
              "teal",
              "white",
              "yellow"
            ],
            "type": "string",
            "description": "Only emit products of this canonical colour."
          },
          "size": {
            "title": "Size filter",
            "enum": [
              "xxs",
              "xs",
              "s",
              "s/m",
              "m",
              "m/l",
              "l",
              "xl",
              "xxl",
              "3xl",
              "one-size"
            ],
            "type": "string",
            "description": "Only emit products with this size currently in stock."
          },
          "fit": {
            "title": "Fit filter",
            "enum": [
              "regular",
              "regular fit",
              "slim fit",
              "muscle fit",
              "oversized",
              "oversized fit",
              "boxy fit",
              "body fit",
              "compression fit",
              "high support",
              "medium support",
              "light support",
              "tall",
              "short"
            ],
            "type": "string",
            "description": "Only emit products with this fit."
          },
          "activity": {
            "title": "Activity filter",
            "enum": [
              "conditioning",
              "hiit",
              "hybrid",
              "lifting",
              "rest day",
              "running",
              "studio"
            ],
            "type": "string",
            "description": "Only emit products tagged for this activity."
          },
          "minRating": {
            "title": "Min customer rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Drop products with an average rating below this (1-5 stars)."
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product (mode=byProduct)",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Number of sample customer reviews to include per product detail record.",
            "default": 5
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 60
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Gymshark's collection and product pages are reachable directly from Apify datacenter IPs; the free AUTO proxy group is used automatically as a fallback if a run hits rate limiting. No paid proxy group is required.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}