Match pairs of records

Compares records and returns a similarity score for each pair. Set `comparisonMethod` to control pairing: `one_to_one` (default), `one_to_n` (single record on one side compared to every record on the other side), or `n_to_m` (every left record compared to every right record). The fields in the records can be any of the following entity types: PERSON, ORGANIZATION, ADDRESS, DATE, or IDENTIFIER/TEXT. The records do not have to contain the same fields; only fields with the same field name are compared. If one record has three fields and the other has two fields, the missing field will be ignored and the other two fields compared. Each field can contain one or multiple values.

Authentication

X-BabelStreetAPI-Keystring
API Key authentication via header
OR
X-RosetteAPI-Keystring
API Key authentication via header

Request

This endpoint expects an object.
comparisonMethodenumOptionalDefaults to one_to_one

Controls how input records are paired before scoring. Defaults to one_to_one, which preserves existing behavior.

Allowed values:
fieldsobjectOptional
propertiesobjectOptional
recordsobjectOptional

Records to compare. At least one of left or right must contain a record. Two equally sized lists are matched by position. A single record on one side is matched against every record on the other side.

Response

OK
fieldsobjectOptional
resultslist of objectsOptional