{
  "openapi": "3.0.1",
  "info": {
    "title": "Product Matcher - Match Products Across Stores (GTIN + Fuzzy)",
    "description": "Match the same products across two catalogs, stores or scraped competitor datasets. GTIN/EAN/UPC exact match, model numbers, and fuzzy title scoring that catches 128GB vs 256GB, color and pack-size false positives. Price differences included. No AI APIs.",
    "version": "1.0",
    "x-build-id": "hu3GG3K39eUZUnk7Q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/freecamp008~product-matcher/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-freecamp008-product-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/freecamp008~product-matcher/runs": {
      "post": {
        "operationId": "runs-sync-freecamp008-product-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/freecamp008~product-matcher/run-sync": {
      "post": {
        "operationId": "run-sync-freecamp008-product-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": {
          "productsA": {
            "title": "Catalog A products (your store)",
            "type": "array",
            "description": "Products to match, as a JSON array of objects (e.g. your own catalog). Every product in A gets one result row with its best match in B. Use this OR <b>Catalog A dataset</b>."
          },
          "productsB": {
            "title": "Catalog B products (competitor)",
            "type": "array",
            "description": "Products to match against, as a JSON array of objects (e.g. scraped competitor data). Use this OR <b>Catalog B dataset</b>."
          },
          "datasetIdA": {
            "title": "Catalog A dataset",
            "type": "string",
            "description": "ID or name of an Apify dataset with catalog A products (e.g. the output of a scraper run). Used instead of / in addition to <b>Catalog A products</b>."
          },
          "datasetIdB": {
            "title": "Catalog B dataset",
            "type": "string",
            "description": "ID or name of an Apify dataset with catalog B products. Used instead of / in addition to <b>Catalog B products</b>."
          },
          "titleField": {
            "title": "Title field",
            "type": "string",
            "description": "Field holding the product title/name. Dot paths like <code>product.name</code> work. Falls back to <code>name</code> / <code>productName</code> when missing.",
            "default": "title"
          },
          "idField": {
            "title": "ID field",
            "type": "string",
            "description": "Field with a unique product ID. Falls back to <code>sku</code>, <code>url</code>, then the row position.",
            "default": "id"
          },
          "brandField": {
            "title": "Brand field",
            "type": "string",
            "description": "Field with the brand/manufacturer. If missing, the brand is guessed from the first word of the title (known brands + brands seen in your data).",
            "default": "brand"
          },
          "priceField": {
            "title": "Price field",
            "type": "string",
            "description": "Field with the price (number or text like <code>1.299,00 €</code> / <code>$1,299.99</code>).",
            "default": "price"
          },
          "gtinField": {
            "title": "GTIN / EAN / UPC / ISBN field",
            "type": "string",
            "description": "Field with the barcode. Checksums are validated and UPC-12, EAN-13, GTIN-14 and ISBN-10/13 are normalized, so <code>012345678905</code> equals <code>0012345678905</code>. Falls back to <code>ean</code>, <code>upc</code>, <code>gtin13</code>, <code>isbn</code>, <code>barcode</code>.",
            "default": "gtin"
          },
          "skuField": {
            "title": "SKU field",
            "type": "string",
            "description": "Field with a manufacturer SKU / part number. Exact (normalized) SKU equality counts as a model-number match.",
            "default": "sku"
          },
          "mpnField": {
            "title": "MPN field",
            "type": "string",
            "description": "Field with the manufacturer part number (MPN). Also matched against model numbers found in the other catalog's titles.",
            "default": "mpn"
          },
          "urlField": {
            "title": "URL field",
            "type": "string",
            "description": "Field with the product page URL (copied to the output).",
            "default": "url"
          },
          "fieldMappingB": {
            "title": "Field overrides for catalog B",
            "type": "object",
            "description": "Optional: different field names for catalog B, e.g. <code>{\"title\": \"name\", \"price\": \"offers.price\", \"gtin\": \"ean\"}</code>. Keys: title, id, brand, price, gtin, sku, mpn, url."
          },
          "minScore": {
            "title": "Minimum match score",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Matches scoring below this (0-1) are reported as unmatched. 0.6 is balanced; raise to 0.75 for high precision, lower to 0.5 for more recall.",
            "default": 0.6
          },
          "topK": {
            "title": "Candidates per product",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "How many of the best B candidates to list in <code>candidates</code> for each A product.",
            "default": 3
          },
          "oneToOne": {
            "title": "One-to-one matching",
            "type": "boolean",
            "description": "Each B product can be matched to at most one A product (global assignment, highest scores first). Turn off to let several A products match the same B product.",
            "default": false
          },
          "currencyAware": {
            "title": "Price sanity check",
            "type": "boolean",
            "description": "Penalize matches whose prices differ by more than <b>Max price ratio</b> (catches accessories, bundles and refurbished items). Currencies detected in price text (€, $, £, EUR, USD…) must agree; mixed currencies are never compared.",
            "default": false
          },
          "maxPriceRatio": {
            "title": "Max price ratio",
            "minimum": 1.1,
            "maximum": 100,
            "type": "number",
            "description": "Used by the price sanity check: a pair whose higher price is more than this many times the lower price is penalized.",
            "default": 2.5
          },
          "includeUnmatched": {
            "title": "Include unmatched products",
            "type": "boolean",
            "description": "Also output A products without a match above the minimum score (with <code>matched: false</code>, best candidates and the reasons). When off, unmatched products are neither output nor billed.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}