{
  "openapi": "3.0.1",
  "info": {
    "title": "Company Name Matcher & Normalizer (Multilingual)",
    "description": "Are these two names the same company? Compares pairs of names or records and returns a score, a verdict and the reasons. Strips Inc./Ltd/GmbH/S.A./股份有限公司/株式会社/주식회사, folds Traditional and Simplified Chinese, full-width text and accents. Instant, no LLM. Built for AI agents.",
    "version": "0.1",
    "x-build-id": "2YY28dZW8aicZu7MS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/arched_axolotl~company-name-matcher/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-arched_axolotl-company-name-matcher",
        "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/arched_axolotl~company-name-matcher/runs": {
      "post": {
        "operationId": "runs-sync-arched_axolotl-company-name-matcher",
        "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/arched_axolotl~company-name-matcher/run-sync": {
      "post": {
        "operationId": "run-sync-arched_axolotl-company-name-matcher",
        "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": {
          "pairs": {
            "title": "Pairs to compare",
            "type": "array",
            "description": "Pairs to check, as a JSON array of objects with 'a' and 'b'. Each side is a company name (string) or a record object with any of: name, website, phone, email, address, registrationNumber. With records, a shared website, phone or registration number counts as evidence and two different registration numbers rule a match out. Example: [{\"a\": \"Acme Inc.\", \"b\": \"ACME, Incorporated\"}]. One result is returned per pair, in the same order."
          },
          "name": {
            "title": "Name to look for (with candidates)",
            "type": "string",
            "description": "Alternative to pairs: one company name to look for in the 'candidates' list. Every candidate is scored against this name and the results come back best match first. Use it to answer 'is this company already in my list?' for a short list."
          },
          "candidates": {
            "title": "Candidates",
            "type": "array",
            "description": "Names (strings) or record objects to compare with 'name'. Returned ranked by score, each with candidateIndex (its position in this array), verdict and reasons."
          },
          "names": {
            "title": "Names to normalise",
            "type": "array",
            "description": "Optional. Names to normalise without comparing: for each one the Actor returns normalizedName (legal form removed, lower case, accents removed, half-width, Simplified Chinese), the legal forms it found, the branch part and the script. Equal normalizedName values mean the names are the same after formatting differences are removed.",
            "items": {
              "type": "string"
            }
          },
          "entityType": {
            "title": "What is being compared",
            "enum": [
              "company",
              "location",
              "contact"
            ],
            "type": "string",
            "description": "'company' (default): the same company, including its branches. 'location': a different address or branch name means different. 'contact': the values are people; pass strings as person names or records with personName, email, phone and company.",
            "default": "company"
          },
          "matchPreset": {
            "title": "Strictness",
            "enum": [
              "strict",
              "balanced",
              "loose"
            ],
            "type": "string",
            "description": "Score needed for the verdict 'same'. 'strict' 0.92: identical after normalisation, or a shared identifier with an agreeing name. 'balanced' 0.85 (recommended). 'loose' 0.75: also accepts likely typos, extra generic words, acronyms and Chinese abbreviations on the name alone. Scores just below the threshold (by up to 0.11) get the verdict 'possible'.",
            "default": "balanced"
          },
          "threshold": {
            "title": "Custom threshold (optional)",
            "type": "string",
            "description": "Overrides the strictness preset: a number between 0.5 and 1 (values from 50 to 100 are read as percentages). Leave empty to use the preset."
          },
          "defaultCountry": {
            "title": "Default country for phone numbers",
            "type": "string",
            "description": "Two-letter country code (TW, US, DE ...) for phone numbers written without a country code. Only matters when records with phone numbers are compared; optional."
          },
          "compactOutput": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Return only the verdict, score, reasons and explanation for each pair, without the normalised names and legal forms. Recommended for AI agents.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}