{
  "openapi": "3.0.1",
  "info": {
    "title": "HKTDC Exhibitor List Scraper - Hong Kong Trade Fair Suppliers",
    "description": "HKTDC exhibitor list scraper for Hong Kong trade fairs (Electronics, Lighting, Gifts, Toys, Jewellery ... ~18,000 exhibitors, or \"all\"), with search words and country / zone / business-type filters. One row per exhibitor: company, website, country, booth, zone, OEM / ODM, products. $0.90 per 1,000.",
    "version": "1.0",
    "x-build-id": "cCQ0CmRbDf6uRWRdp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~hktdc-fair-exhibitors-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-hktdc-fair-exhibitors-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/rel8ble~hktdc-fair-exhibitors-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-hktdc-fair-exhibitors-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/rel8ble~hktdc-fair-exhibitors-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-hktdc-fair-exhibitors-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": {
          "fairs": {
            "title": "Fairs (codes or URLs)",
            "type": "array",
            "description": "HKTDC fair codes, \"all\", or hktdc.com exhibitor-list / exhibitor URLs, e.g. \"hkelectronicsfairae\", \"hklightingfairae\", \"hkgiftspremiumfair\", \"hktoyfair\", \"hkjewellery\", \"hkwinefair\", https://www.hktdc.com/event/hkopticalfair/en/exhibitor-list. \"all\" = every fair with an open list (~18,000 exhibitors). Empty input runs the demo fair \"hkelectronicsfairae\".",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search words",
            "type": "array",
            "description": "Optional. HKTDC's own exhibitor search on each fair, e.g. \"speaker\", \"power bank\", \"LED\". One list per word and fair. Empty = the whole list.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerFair": {
            "title": "Max exhibitors per fair",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Rows saved per fair (and search word), integer >= 0. Default 20; 0 = the whole list. You pay per row.",
            "default": 20
          },
          "scrapeDetails": {
            "title": "Read exhibitor profiles",
            "type": "boolean",
            "description": "Default true. Reads each exhibitor profile page for website, business types, OEM / ODM, products, background, brands and certificates (one extra request per row). false = list data only, faster.",
            "default": true
          },
          "countries": {
            "title": "Exhibitor countries",
            "type": "array",
            "description": "Optional. ISO codes (\"HKG\", \"CN\", \"TW\") or names (\"Hong Kong\", \"China\", \"Korea\"), applied by HKTDC's own filter. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "factoryLocations": {
            "title": "Factory locations",
            "type": "array",
            "description": "Optional. Keep exhibitors with factories in these countries, e.g. \"Vietnam\", \"China\", \"Thailand\". Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "zones": {
            "title": "Zones / pavilions",
            "type": "array",
            "description": "Optional. Words matched against the fair's zone and pavilion names, e.g. \"smart home\", \"Hall of Fame\", \"Taiwan Pavilion\", \"power\". Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "businessTypes": {
            "title": "Business types",
            "type": "array",
            "description": "Optional. Nature of business, e.g. \"Manufacturer\", \"Exporter\", \"Wholesaler\", \"Distributor\". Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "productStrategy": {
            "title": "OEM / ODM / OBM",
            "type": "array",
            "description": "Optional. Keep exhibitors offering these services: \"OEM\", \"ODM\", \"OBM\". Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "verifiedOnly": {
            "title": "HKTDC-verified suppliers only",
            "type": "boolean",
            "description": "Optional. Keep only exhibitors with an HKTDC verification level (Gold / Silver / Bronze). Default false.",
            "default": false
          },
          "nameContains": {
            "title": "Company name contains",
            "type": "string",
            "description": "Optional. Keep only companies whose name contains this text."
          },
          "boothPrefixes": {
            "title": "Booth / hall prefixes",
            "type": "array",
            "description": "Optional. Keep exhibitors with a booth starting with these, e.g. \"1E\", \"GH\". Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "withWebsiteOnly": {
            "title": "Only exhibitors with a website",
            "type": "boolean",
            "description": "Optional. Reads profiles and skips exhibitors without a website. Default false.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel profile requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Optional, advanced. 1-10. Default 5.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional, advanced. Default: no proxy, with automatic Apify datacenter proxy fallback for requests that fail.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}