{
  "openapi": "3.0.1",
  "info": {
    "title": "Fashion Product API - ASOS, Zara, H&M, SHEIN & more",
    "description": "Search and get full product detail (price, sizes, images, stock) from 16 fashion retailers - ASOS, Zara, H&M, Farfetch, SHEIN, Fashion Nova, SKIMS and more - or search them all at once. Support: Telegram @pintoflow.",
    "version": "1.1",
    "x-build-id": "kv63bdUYmR2BK72HB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pintostudio~fashion-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pintostudio-fashion-api",
        "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/pintostudio~fashion-api/runs": {
      "post": {
        "operationId": "runs-sync-pintostudio-fashion-api",
        "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/pintostudio~fashion-api/run-sync": {
      "post": {
        "operationId": "run-sync-pintostudio-fashion-api",
        "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": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "search",
              "searchAll",
              "productDetails",
              "retailers"
            ],
            "type": "string",
            "description": "What to do. Each operation uses only the fields listed in its own description below; other fields are ignored.",
            "default": "search"
          },
          "retailer": {
            "title": "Retailer",
            "enum": [
              "asos",
              "zara",
              "hm",
              "farfetch",
              "shein",
              "fashionnova",
              "skims",
              "publicdesire",
              "ohpolly",
              "motelrocks",
              "killstar",
              "lucyandyak",
              "victoriabeckham",
              "frenchconnection",
              "representclo",
              "stevemadden"
            ],
            "type": "string",
            "description": "search and productDetails only - which retailer to use. Ignored by searchAll (use the 'Retailers to include' field below to restrict it instead) and by retailers.",
            "default": "asos"
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "search and searchAll - free-text keyword, e.g. \"denim jacket\"."
          },
          "category": {
            "title": "Category",
            "type": "string",
            "description": "search and searchAll - folded into the search alongside query, the same way typing it into that retailer's own search box would behave (not a guaranteed-exact facet filter)."
          },
          "brand": {
            "title": "Brand",
            "type": "string",
            "description": "search and searchAll - folded into the search alongside query, same as category."
          },
          "retailers": {
            "title": "Retailers to include",
            "type": "array",
            "description": "searchAll only - restrict the combined search to just these retailers. Leave empty to search all 16.",
            "items": {
              "type": "string",
              "enum": [
                "asos",
                "zara",
                "hm",
                "farfetch",
                "shein",
                "fashionnova",
                "skims",
                "publicdesire",
                "ohpolly",
                "motelrocks",
                "killstar",
                "lucyandyak",
                "victoriabeckham",
                "frenchconnection",
                "representclo",
                "stevemadden"
              ],
              "enumTitles": [
                "ASOS",
                "Zara",
                "H&M",
                "Farfetch",
                "SHEIN",
                "Fashion Nova",
                "SKIMS",
                "Public Desire",
                "Oh Polly",
                "Motel Rocks",
                "Killstar",
                "Lucy & Yak",
                "Victoria Beckham",
                "French Connection",
                "Represent",
                "Steve Madden"
              ]
            }
          },
          "ids": {
            "title": "Product ids or URLs",
            "type": "array",
            "description": "productDetails only - one or more of the retailer's own product ids, or full product URLs (a full URL always works and is recommended for Zara, Farfetch and SHEIN). Each one becomes its own row in the output.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "search and productDetails, ASOS and SHEIN only - ISO country code (e.g. US, GB, DE). Every other retailer ignores this field.",
            "default": "US"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "search and productDetails, ASOS and SHEIN only - ISO currency code (e.g. USD, GBP, EUR).",
            "default": "USD"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "search and searchAll - maximum rows to output. 0 = no limit (each retailer's own search already returns a bounded page, not an unlimited crawl).",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "productDetails only - how many ids are looked up in parallel.",
            "default": 5
          },
          "fresh": {
            "title": "Bypass cache",
            "type": "boolean",
            "description": "Force a fresh fetch instead of reusing this run's in-memory cache for a repeated (retailer, id/query) lookup. Rarely needed.",
            "default": false
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}