{
  "openapi": "3.0.1",
  "info": {
    "title": "Fashion Intelligence Bundle",
    "description": "Find official fashion brand websites, social profiles, event mentions, retail footprint signals, and hiring signals in one scored AI-ready dataset.",
    "version": "0.1",
    "x-build-id": "lHG17VjyyY8Z72wLe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/runtime~fashion-intelligence-bundle/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-runtime-fashion-intelligence-bundle",
        "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/runtime~fashion-intelligence-bundle/runs": {
      "post": {
        "operationId": "runs-sync-runtime-fashion-intelligence-bundle",
        "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/runtime~fashion-intelligence-bundle/run-sync": {
      "post": {
        "operationId": "run-sync-runtime-fashion-intelligence-bundle",
        "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": {
          "workflow": {
            "title": "Workflow",
            "enum": [
              "brand-official-site-finder",
              "fashion-week-monitor",
              "luxury-hiring-signals",
              "retail-footprint-watch",
              "custom"
            ],
            "type": "string",
            "description": "Business workflow label stored on each output item.",
            "default": "brand-official-site-finder"
          },
          "brandName": {
            "title": "Brand name",
            "type": "string",
            "description": "Single fashion brand to analyze. Used when Brand names is empty.",
            "default": "Dior"
          },
          "brandNames": {
            "title": "Brand names",
            "type": "array",
            "description": "Batch brands, one per line. When non-empty, this overrides Brand name.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Optional city context, usually from a fashion event.",
            "default": "Paris"
          },
          "season": {
            "title": "Season",
            "type": "string",
            "description": "Optional season or collection context.",
            "default": "Spring/Summer 2027"
          },
          "eventName": {
            "title": "Event name",
            "type": "string",
            "description": "Optional event context.",
            "default": "Paris Fashion Week"
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Optional country context.",
            "default": "France"
          },
          "date": {
            "title": "Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional event, monitoring, or report date in YYYY-MM-DD format."
          },
          "includeBrandResolution": {
            "title": "Resolve official sites",
            "type": "boolean",
            "description": "Find and score likely official brand websites and social profiles inside this bundle Actor.",
            "default": true
          },
          "includeWebSignals": {
            "title": "Collect web signals",
            "type": "boolean",
            "description": "Collect supporting web signals for the selected workflow using direct web search.",
            "default": true
          },
          "searchQueries": {
            "title": "Custom web queries",
            "type": "array",
            "description": "Optional custom queries, one per line. If empty, the Actor generates workflow-specific queries from the brands and context.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "customQueries": {
            "title": "Custom brand-resolution queries",
            "type": "array",
            "description": "Extra queries for official-site resolution, one per line.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "manualCandidates": {
            "title": "Manual brand candidates",
            "type": "array",
            "description": "Optional candidate URLs to score. Add brandName per candidate when running multiple brands.",
            "items": {
              "type": "object",
              "properties": {
                "brandName": {
                  "title": "Brand name",
                  "description": "Brand associated with this candidate URL.",
                  "type": "string"
                },
                "url": {
                  "title": "URL",
                  "description": "Candidate URL to score as a possible official brand site.",
                  "type": "string"
                },
                "title": {
                  "title": "Title",
                  "description": "Optional candidate page title.",
                  "type": "string"
                },
                "snippet": {
                  "title": "Snippet",
                  "description": "Optional candidate snippet or context.",
                  "type": "string"
                }
              },
              "required": [
                "url"
              ]
            },
            "default": []
          },
          "searchProviders": {
            "title": "Search providers",
            "type": "array",
            "description": "Search providers to use. Brave requires BRAVE_SEARCH_API_KEY or braveApiKey.",
            "items": {
              "type": "string",
              "enum": [
                "duckduckgo",
                "brave"
              ],
              "enumTitles": [
                "DuckDuckGo",
                "Brave Search API"
              ]
            },
            "default": [
              "duckduckgo"
            ]
          },
          "braveApiKey": {
            "title": "Brave API key",
            "type": "string",
            "description": "Optional Brave Search API key. Prefer using the BRAVE_SEARCH_API_KEY environment variable."
          },
          "maxBrands": {
            "title": "Max brands",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum brands to process.",
            "default": 10
          },
          "maxResults": {
            "title": "Max output records",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum normalized records saved by the bundle.",
            "default": 25
          },
          "maxCandidatesPerBrand": {
            "title": "Max candidates per brand",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum official-site candidates scored per brand.",
            "default": 5
          },
          "maxSearchResults": {
            "title": "Max search results",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum raw search/manual candidates before domain deduplication.",
            "default": 20
          },
          "maxWebSignals": {
            "title": "Max web signals",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum supporting web signals to save.",
            "default": 10
          },
          "maxWebQueries": {
            "title": "Max web queries",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum workflow search queries to execute.",
            "default": 10
          },
          "acceptThreshold": {
            "title": "Accepted threshold",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Confidence required to mark a brand site as accepted.",
            "default": 80
          },
          "reviewThreshold": {
            "title": "Review threshold",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Minimum confidence for needs_review. Lower scores are rejected.",
            "default": 40
          },
          "includeRejected": {
            "title": "Include rejected candidates",
            "type": "boolean",
            "description": "Save rejected official-site candidates. Disabled by default to keep paid datasets focused.",
            "default": false
          },
          "crawlHomepage": {
            "title": "Crawl homepage",
            "type": "boolean",
            "description": "Fetch candidate homepages to extract metadata, JSON-LD organization names, and social links.",
            "default": true
          },
          "blockedDomains": {
            "title": "Extra blocked domains",
            "type": "array",
            "description": "Additional domains to reject before crawl.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "allowedDomains": {
            "title": "Allowed domains",
            "type": "array",
            "description": "Domains that bypass the built-in false-positive domain filter.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "mockMode": {
            "title": "Mock mode",
            "type": "boolean",
            "description": "Generate sample fashion signals without network access.",
            "default": false
          },
          "failOnNoResults": {
            "title": "Fail on no results",
            "type": "boolean",
            "description": "Fail the run if no normalized records are produced.",
            "default": true
          },
          "requestTimeoutSecs": {
            "title": "Request timeout seconds",
            "minimum": 5,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout for search and homepage crawl requests.",
            "default": 20
          },
          "useApifyProxy": {
            "title": "Use Apify Proxy",
            "type": "boolean",
            "description": "Enable Apify Proxy for direct web discovery.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Advanced Apify Proxy or custom proxy settings.",
            "default": {}
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}