{
  "openapi": "3.0.1",
  "info": {
    "title": "ROMWE Scraper",
    "description": "Scrape ROMWE (us.romwe.com) product listings - search by keyword or fetch full product detail by URL. Prices, images, ratings, attributes. No login required.",
    "version": "1.0",
    "x-build-id": "wHcu2fjpO8fTrp2Zk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~romwe-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-romwe-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~romwe-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-romwe-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~romwe-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-romwe-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",
              "byUrl",
              "byCategory"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Free-text keyword search, e.g. `phone case`, `summer dress`, `sneakers`.",
            "default": "phone case"
          },
          "sortBy": {
            "title": "Sort by (mode=search/byCategory)",
            "enum": [
              "recommend",
              "priceAsc",
              "priceDesc",
              "newIn"
            ],
            "type": "string",
            "description": "Result ordering.",
            "default": "recommend"
          },
          "categoryUrl": {
            "title": "Curated category (mode=byCategory)",
            "enum": [
              "",
              "https://us.romwe.com/Women-Apparel-c-3486.html",
              "https://us.romwe.com/Women-Clothing-c-909.html",
              "https://us.romwe.com/Women-Tops-Blouses-Tee-c-761.html",
              "https://us.romwe.com/Women-T-Shirts-c-669.html",
              "https://us.romwe.com/Women-Bottoms-c-762.html",
              "https://us.romwe.com/Women-Pants-c-681.html",
              "https://us.romwe.com/Women-Skirts-c-682.html",
              "https://us.romwe.com/Women-Short-Dresses-c-767.html",
              "https://us.romwe.com/Women-Denim-c-809.html",
              "https://us.romwe.com/Women-Suits-c-915.html",
              "https://us.romwe.com/Women-Co-ords-c-919.html",
              "https://us.romwe.com/Women-Knitwear-c-1090.html",
              "https://us.romwe.com/Women-Sweaters-c-755.html",
              "https://us.romwe.com/Women-Beachwear-c-918.html",
              "https://us.romwe.com/Women-Plus-Clothing-c-769.html",
              "https://us.romwe.com/Plus-Size-Dresses-c-790.html",
              "https://us.romwe.com/Plus-Size-Tops-c-1100.html",
              "https://us.romwe.com/Men-c-905.html",
              "https://us.romwe.com/Men-Clothing-c-5323.html",
              "https://us.romwe.com/Men-Tops-c-849.html",
              "https://us.romwe.com/Men-Shirts-c-858.html",
              "https://us.romwe.com/Men-Denim-c-852.html",
              "https://us.romwe.com/Men-Jeans-c-868.html",
              "https://us.romwe.com/Men-Bottoms-c-924.html",
              "https://us.romwe.com/Men-Shorts-c-855.html",
              "https://us.romwe.com/Underwear-Sleepwear-c-917.html",
              "https://us.romwe.com/Sports-Outdoor-c-2068.html",
              "https://us.romwe.com/Apparel-Accessories-c-2582.html",
              "https://us.romwe.com/Jewelry-Watches-c-2584.html",
              "https://us.romwe.com/Shoes-c-2586.html",
              "https://us.romwe.com/Bags-Luggage-c-2588.html",
              "https://us.romwe.com/Weddings-Events-c-1912.html",
              "https://us.romwe.com/World-Apparel-c-2569.html"
            ],
            "type": "string",
            "description": "Pick a popular ROMWE catalog category. Leave as \"Custom URL(s) below\" and use `categoryUrls` to browse any other category.",
            "default": ""
          },
          "categoryUrls": {
            "title": "Custom category URLs (mode=byCategory)",
            "type": "array",
            "description": "Any ROMWE `.../<name>-c-<id>.html` category page URLs. Combined with `categoryUrl` if both are set.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "productUrls": {
            "title": "Product URLs (mode=byUrl)",
            "type": "array",
            "description": "Full ROMWE product page URLs, e.g. `https://us.romwe.com/Some-Product-Name-p-2979580.html`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Min price (USD)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Drop products cheaper than this (sale price, USD)."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Drop products more expensive than this (sale price, USD)."
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Drop products with a review rating below this (0-5). Products with no reviews yet are always kept."
          },
          "inStockOnly": {
            "title": "In stock only",
            "type": "boolean",
            "description": "Only emit products currently in stock. Stock status is available on both the search/category listing page and the product detail page, so this works whether or not `enrichWithPrice` is on.",
            "default": false
          },
          "onSaleOnly": {
            "title": "On sale only",
            "type": "boolean",
            "description": "Only emit products currently marked on sale (discounted below their retail price).",
            "default": false
          },
          "freeReturnOnly": {
            "title": "Free-return eligible only",
            "type": "boolean",
            "description": "Only emit products ROMWE marks as eligible for free returns. Free-return eligibility only appears on the product detail page, so this has no effect unless `enrichWithPrice` is also on (mode=search/byCategory), or is used with mode=byUrl.",
            "default": false
          },
          "enrichWithPrice": {
            "title": "Fetch full product detail (mode=search/byCategory)",
            "type": "boolean",
            "description": "When on, each search/category result is enriched with a detail-page fetch to include rating, full-resolution images, and attributes (price is already included either way, from the listing page). When off, only listing-page fields (title, price, image, URL) are emitted and the run is much faster.",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 24
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "ROMWE's product detail pages occasionally soft-block a datacenter IP with a burst of spurious 404s. The actor connects directly first and only engages this proxy after 3+ consecutive 404s on detail pages -- leave the default (Apify Proxy, automatic) unless your runs are consistently affected.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}