{
  "openapi": "3.0.1",
  "info": {
    "title": "Korea Franchise Brands Data (FTC) in English",
    "description": "Every franchise brand registered with the Korea Fair Trade Commission: store counts, new openings, closures, closure rate, average annual sales per store and headquarters info, with English brand and company names. 11,000+ brands.",
    "version": "0.1",
    "x-build-id": "54agLIewr1U9v26bT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cm504~korea-franchise-ftc/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cm504-korea-franchise-ftc",
        "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/cm504~korea-franchise-ftc/runs": {
      "post": {
        "operationId": "runs-sync-cm504-korea-franchise-ftc",
        "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/cm504~korea-franchise-ftc/run-sync": {
      "post": {
        "operationId": "run-sync-cm504-korea-franchise-ftc",
        "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": {
          "sectors": {
            "title": "Sectors",
            "type": "array",
            "description": "Broad FTC sectors to include: 외식 = Food & beverage (restaurants, cafes, chicken, bakery), 서비스 = Services (education, beauty, laundry, fitness, real estate), 도소매 = Retail (convenience stores, cosmetics, health food). Leave empty for all sectors.",
            "items": {
              "type": "string",
              "enum": [
                "외식",
                "서비스",
                "도소매"
              ],
              "enumTitles": [
                "Food & beverage",
                "Services",
                "Retail"
              ]
            },
            "default": []
          },
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Industry names in English or Korean (exact name, case-insensitive). English: Coffee, Chicken, Pizza, Bakery, Korean food, Japanese food, Chinese food, Western food, Fast food, Bars & pubs, Korean snack food (bunsik), Ice cream & bingsu, Beverages (non-coffee), Convenience store, Cosmetics, Hair & beauty, Laundry, PC cafe, Education (foreign languages), Pet services. Korean: 커피, 치킨, 한식, 편의점. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "search": {
            "title": "Search",
            "type": "string",
            "description": "Text contained in the brand, company or main-product name, in Korean as registered (spaces and 주식회사/(주) are ignored), e.g. 메가 (Mega MGC Coffee), 비비큐 (BBQ), 떡볶이 (tteokbokki). Brands with an English name registered in brackets can also match on it, e.g. MEGA. Empty = no text filter.",
            "default": ""
          },
          "minStores": {
            "title": "Minimum stores",
            "minimum": 0,
            "type": "integer",
            "description": "Only brands with at least this many franchise stores, e.g. 50 to skip small or new brands. 0 = no limit.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "stores",
              "newStores",
              "avgSales",
              "closureRate",
              "newest"
            ],
            "type": "string",
            "description": "Order of results before the Maximum brands cut-off: stores (largest chains first), newStores (fastest-growing by openings), avgSales (highest average annual sales per store), closureRate (highest share of contracts ended or terminated), newest (most recent franchising start date).",
            "default": "stores"
          },
          "year": {
            "title": "Disclosure year",
            "minimum": 2019,
            "type": "integer",
            "description": "FTC franchise disclosure base year (2019 or later), e.g. 2025. Store and sales figures usually refer to the business year before. Leave empty for the latest year with statistics."
          },
          "includeIndustrySummary": {
            "title": "Add industry summary",
            "type": "boolean",
            "description": "Also return industry records (type 'industry') with total stores, share of all franchise stores, opening rate and closure rate. The FTC publishes these for the 5 largest industries in each sector (15 records).",
            "default": false
          },
          "translateToEnglish": {
            "title": "English brand, company and product names",
            "type": "boolean",
            "description": "Add English brand, company and main-product names (brandEn, companyEn, mainProductsEn), produced by Claude (Anthropic). Korean originals are always included. Turn off for Korean-only output.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum brands",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many brands (after filtering and sorting). The FTC register has about 11,000 brands; one run downloads the whole register in about 30 seconds, so large values are fine. Charged per brand.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}