{
  "openapi": "3.0.1",
  "info": {
    "title": "Nike Product Scraper",
    "description": "Scrape Nike products — USD prices, discounts, colourways, images, sizes & availability. Keyword search or paste a nike.com wall URL, full detail enrichment, clean JSON/CSV, no code.",
    "version": "1.0",
    "x-build-id": "9c1ilP5NQM93HFHm6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~nike-product-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-nike-product-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/sian.agency~nike-product-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-nike-product-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/sian.agency~nike-product-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-nike-product-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": {
          "queries": {
            "title": "🔍 Search Keywords",
            "type": "array",
            "description": "🔍 **KEYWORD SEARCH:** Free-text Nike searches — exactly what you'd type into nike.com's search bar.\n\n📝 **EXAMPLES:** `air max` · `air force 1` · `running shoes` · `tech fleece` · `dunk low`\n\n💡 **TIP:** Add one keyword per line — each runs as its own search and all results land in the same dataset.\n\n🖊️ **BULK EDIT:** Click \"Bulk edit\" to paste many keywords at once (one per line).\n\n✅ **IMPORTANT:** Provide either keywords OR Nike product-wall URLs (at least one is needed to have something to scrape).",
            "default": [
              "air max"
            ],
            "items": {
              "type": "string"
            }
          },
          "scrapeMode": {
            "title": "⚙️ Scrape Mode",
            "enum": [
              "overview",
              "detail"
            ],
            "type": "string",
            "description": "⚙️ **SCRAPE DEPTH:** Choose how much data to pull per product.\n\n⚡ **Overview (fast):** Product-wall results only — style-color ID, name, subtitle, USD price, full/was price, discount %, colourway count, image, badge and availability. Fastest and cheapest path.\n\n🔬 **Detail (sizes + description + colourways):** Everything in Overview PLUS the long product description, per-size availability (with GTIN barcodes), the full image gallery, every colourway, gender, sport tags and the full taxonomy — scraped from each product page.\n\n💡 **TIP:** Start with Overview to scope a wall, then switch to Detail when you need sizes and full descriptions.",
            "default": "overview"
          },
          "sort": {
            "title": "🔃 Sort Order",
            "enum": [
              "featured",
              "newest",
              "price_low",
              "price_high"
            ],
            "type": "string",
            "description": "🔃 **RESULT ORDERING:** Order wall results using Nike's own native sort options — the same ranking real shoppers see.\n\n⭐ **Featured** is Nike's default relevance order · 🆕 **Newest** leads with the latest drops · 💲 **Price** sorts ascending or descending.",
            "default": "featured"
          },
          "gender": {
            "title": "🚻 Gender",
            "type": "string",
            "description": "🚻 **GENDER FILTER:** Restrict to Nike's own gender facet (e.g. `Men`, `Women`, `Unisex`, `Boys`, `Girls`). Resolved against the live wall facets, so it mirrors the site's filter.\n\n💡 **TIP:** Leave blank to include all."
          },
          "sport": {
            "title": "🏀 Sport / Activity",
            "type": "string",
            "description": "🏀 **SPORT / ACTIVITY FILTER:** Nike's activity facet (e.g. `Running`, `Basketball`, `Lifestyle`, `Training & Gym`, `Football`). Leave blank for all."
          },
          "color": {
            "title": "🎨 Colour",
            "type": "string",
            "description": "🎨 **COLOUR FILTER:** Nike's colour facet (e.g. `Black`, `White`, `Blue`, `Red`, `Grey`). Leave blank for all."
          },
          "size": {
            "title": "📏 Size",
            "type": "string",
            "description": "📏 **SIZE FILTER:** A Nike size label as shown on the wall (e.g. `10`, `M 10 / W 11.5`, `M`, `L`). Leave blank for all sizes."
          },
          "price": {
            "title": "💲 Price Band",
            "type": "string",
            "description": "💲 **PRICE BAND FILTER:** A Nike \"Shop by Price\" band label (e.g. `$0 - $50`, `$50 - $100`, `$100 - $150`, `Over $150`). Must match Nike's band label exactly. Leave blank for all prices."
          },
          "urls": {
            "title": "🔗 Nike Wall URLs (Advanced)",
            "type": "array",
            "description": "🔗 **PASTE PRODUCT-WALL URLs:** Paste full nike.com wall or search URLs to scrape them verbatim — any filters and sorting already in the URL are preserved (a fully-filtered nike.com URL is the most complete filter interface).\n\n📝 **EXAMPLES:** `https://www.nike.com/w/mens-shoes-nik1zy7ok` · `https://www.nike.com/w?q=dunk`\n\n🔬 **DETAIL MODE:** You can also paste individual product-page URLs (`https://www.nike.com/t/...`) — in Detail mode they're scraped directly.\n\n🖊️ **BULK EDIT:** Add one URL per line to sweep several walls in a single run.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "🔢 Max Results",
            "minimum": 1,
            "type": "integer",
            "description": "🔢 **RESULT CAP:** Maximum number of products (style-colors) to return across all keywords and URLs combined.\n\n🎁 **TIER-BASED LIMITS:**\n- **FREE users:** Up to 25 products per run\n- **PAID users:** Unlimited — scrape whole walls in a single run\n\n💡 **TIP:** A single wall page yields ~150–200 style-colors, so keep this low while you dial in your search, then raise it once the output looks right.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}