{
  "openapi": "3.0.1",
  "info": {
    "title": "UK SIC Code Lookup & NAICS to NACE Converter (ISIC, CPV, HS)",
    "description": "Convert codes between NACE Rev. 2/2.1, ISIC 4, NAICS 2022/2017, UK SIC 2007/2026, CPA, CN/HS and CPV using official correspondence tables, or turn plain text into ranked candidate codes. No AI, no keys; source and licence on every record.",
    "version": "1.0",
    "x-build-id": "KNxlJ0Tl6hvWkVIFr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wooden_scanner_c1n~industry-code-crosswalk/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wooden_scanner_c1n-industry-code-crosswalk",
        "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/wooden_scanner_c1n~industry-code-crosswalk/runs": {
      "post": {
        "operationId": "runs-sync-wooden_scanner_c1n-industry-code-crosswalk",
        "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/wooden_scanner_c1n~industry-code-crosswalk/run-sync": {
      "post": {
        "operationId": "run-sync-wooden_scanner_c1n-industry-code-crosswalk",
        "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": {
          "queries": {
            "title": "Codes or descriptions",
            "type": "array",
            "description": "One per line. A code with a system prefix (recommended): nace2:62.01, nace21:62.10, isic:6201, naics:541511, naics2017:541511, uksic:62012, uksic2026:62110, cpa:62.10.11, cn:8471 30 00, hs:847130, cpv:45000000-7. Codes without a prefix are guessed (62.01 = NACE Rev. 2, 5 digits = UK SIC 2007, 6 digits = NAICS 2022, 8 digits = CN). Anything with words is a text search, e.g. 'artisan bakery'.",
            "default": [
              "nace2:62.01",
              "naics:311811",
              "artisan bakery"
            ],
            "items": {
              "type": "string"
            }
          },
          "targetSystems": {
            "title": "Systems to return",
            "type": "array",
            "description": "Which classification systems to convert to (and to search for text queries). Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "nace2",
                "nace21",
                "isic4",
                "naics2022",
                "naics2017",
                "uksic2007",
                "uksic2026",
                "cpa22",
                "cn2026",
                "hs",
                "cpv2008"
              ],
              "enumTitles": [
                "NACE Rev. 2",
                "NACE Rev. 2.1",
                "ISIC Rev. 4",
                "NAICS 2022",
                "NAICS 2017",
                "UK SIC 2007",
                "UK SIC 2026",
                "CPA 2.2",
                "CN 2026 (EU customs)",
                "HS subheading (code only)",
                "CPV 2008 (procurement)"
              ]
            },
            "default": [
              "nace2",
              "nace21",
              "isic4",
              "naics2022",
              "naics2017",
              "uksic2007",
              "uksic2026",
              "cpa22",
              "cn2026",
              "hs",
              "cpv2008"
            ]
          },
          "maxCodesPerSystem": {
            "title": "Max codes per system",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Many-to-many links can return dozens of codes; the best-ranked are kept and totalCodes tells you how many exist.",
            "default": 10
          },
          "textResultsPerSystem": {
            "title": "Text search: candidates per system",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "For plain-text queries, how many ranked candidate codes to return in each system.",
            "default": 5
          },
          "languages": {
            "title": "Title languages",
            "type": "array",
            "description": "Extra official title languages to include in 'titles' (EU language codes such as de, fr, es, ga). NACE has all 24 EU languages; CPV has en, de, fr, es, it, nl, pl, pt, sv, da; CN has en, de, fr. Text search always covers every bundled language.",
            "default": [
              "en"
            ],
            "items": {
              "type": "string"
            }
          },
          "includeCpvSuggestions": {
            "title": "Include CPV suggestions",
            "type": "boolean",
            "description": "CPV has no official correspondence to NACE/NAICS/CN. When on, CPV codes are suggested by title similarity and clearly flagged official=false.",
            "default": true
          },
          "defaultSystem": {
            "title": "System for codes without a prefix",
            "enum": [
              "auto",
              "nace2",
              "nace21",
              "isic4",
              "naics2022",
              "naics2017",
              "uksic2007",
              "uksic2026",
              "cpa22",
              "cn2026",
              "hs",
              "cpv2008"
            ],
            "type": "string",
            "description": "How to read codes typed without a prefix. 'auto' guesses from the format; text is always searched.",
            "default": "auto"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}