---
title: Composite Searching
slug: api/Te59-composite-searching
icon: {"faIcon":"fa-brands fa-buffer"}
createdAt: 2025-03-04T04:58:12.758Z
---

**Composite search in United States of America enables clients to automate the selection of multiple services, processing verification inputs through successive data sources and returning responses from each selected service.**



<u>**Example&#x20;**</u>- API Requests and Responses with following services configured:

United States Residential
United States Credit Bureau
United States Phone
United States Phone2
United States Consumer
United States Financial Services

:::ApiMethodV2
```json
{
  "name": "United States Composite Search",
  "method": "POST",
  "url": "https://idu-test.datazoo.com/api/v2/verify",
  "description": "* Verification Outcome – KYC verification from sequenced searching and returns single or duel (where possible) source matches\n* Consumer Consent – N/A\n* Mandatory Input – Name, DOB and Address\n* Verifies – Name, DOB, Address, Phone number Email address and SSN number\n* Returned Data \n- Alternative DOB Matching Logic indicator (if configured for USA)\n- Indicators for deceased, bankruptcy, business record availability, evictions, foreclosure records, judgment record, UCC indicator, and workplace record, each representing whether corresponding data is present for the individual. (if configured)\n- Matching score and data source reference ID (if configured)",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "f2jMy98sIuBrop0Bgc788",
        "language": "curl",
        "code": "curl --location 'https://idu-test.datazoo.com/api/v2/verify' \\\n--header 'Content-Type: application/json' \\\n--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImMtbVZlMl9KRFhMcnkzaEhQWEN4TyJ9.eyJ1aWQiOiIzMDMiLCJvaWQiOiI2MiIsImlzcyI6Imh0dHBzOi8vZGF0YXpvby10ZXN0LnVzLmF1dGgwLmNvbS8iLCJzdWIiOiJhdXRoMHwzMDMiLCJhdWQiOiJodHRwczovL2t5Yy10ZXN0LmRhdGF6b28uY29tIiwiaWF0IjoxNzQ2NzQ3NTAxLCJleHAiOjE3NDY3ODM1MDEsImd0eSI6InBhc3N3b3JkIiwiYXpwIjoiSWxVdURJNTF1QXpuVnE2VGVoRXAyOXBrbEhBSjFtYnkifQ.iNJL3kcTus9qwS2JQfs68VNGMrhZ3HPbNb7T6FznlQeE3HWHJPZk4uSxxJSlf2frYEaaOKt2R_OD_VC8MgFr-ALwAG99iQhdqNx9i4-OZkPXRndVYCumA-kJs1wueoLzxpW83MnGr6LtEjHBtDJjgr8O3HhqlGIKuJ3RzOHLzpLJ_Lj9ZfcBzhhA56Pa5wM66mb_29XF_Qy7v7gf-s9feYCY2cMt2x46aWB2leiMXQind8X45xZ53yNpW5Lq_krF2sK3Tl2inC8tS-BcmfPz_bJTYNZjJthlmSCxdkq84lc3K_1bqZ8hs1XPJbkNDQ9DIxJoyn1Qm6S6llvl8_53nQ' \\\n--data-raw '{\n   \"countryCode\": \"US\",\n   \"service\": [\n      \"United States Residential\",\n      \"United States Credit Bureau\",\n      \"United States Phone\",\n      \"United States Phone2\",\n      \"United States Consumer\",\n      \"United States Financial Services\"\n   ],\n   \"clientReference\": \"Test_0001\",\n   \"firstName\": \"Barbara\",\n   \"middleName\": null,\n   \"lastName\": \"Miller\",\n   \"dateOfBirth\": \"1974-08-21\",\n   \"addressElement1\": \"123 Main St\",\n   \"addressElement3\": \"Stratford\",\n   \"addressElement4\": \"CT\",\n   \"addressElement5\": \"06614\",\n   \"identityVariables\": {\n      \"socialSecurityNo\": \"854125698\",\n      \"phoneNo\": \"2015106000\",\n      \"email\": \"bmiller@datazoo.com\"\n   }\n}'",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "f2jMy98sIuBrop0Bgc788"
  },
  "results": {
    "languages": [
      {
        "id": "-KLLvb-_jXQIuU-WuWQAF",
        "language": "200",
        "customLabel": "",
        "code": "{\n    \"countryCode\": \"United States\",\n    \"clientReference\": \"Test_0001\",\n    \"reportingReference\": \"DZ-1dc313b3-9888-4473-adf2-54abd7bf6f39\",\n    \"matchStatus\": \"Full Match 2+2 Verification\",\n    \"searchErrorMessage\": \"\",\n    \"safeHarbour\": true,\n    \"searchStatus\": \"Successful\",\n    \"serviceResponses\": {\n        \"United States Consumer\": {\n            \"status\": 0,\n            \"sourceStatus\": \"Successful\",\n            \"errorMessage\": \"\",\n            \"identityVerified\": true,\n            \"safeHarbourScore\": \"M1\",\n            \"nameMatchScore\": \"1.000\",\n            \"addressMatchScore\": \"1.000\",\n            \"verifications\": {\n                \"addressElement1\": true,\n                \"addressElement3\": true,\n                \"addressElement4\": true,\n                \"addressElement5\": true,\n                \"dateOfBirth\": true,\n                \"firstName\": true,\n                \"lastName\": true,\n                \"phoneNo\": true\n            },\n            \"returnedData\": {}\n        },\n        \"United States Credit Bureau\": {\n            \"status\": 2,\n            \"sourceStatus\": \"Successful\",\n            \"errorMessage\": \"\",\n            \"identityVerified\": false,\n            \"safeHarbourScore\": \"none\",\n            \"nameMatchScore\": \"N/A\",\n            \"addressMatchScore\": \"N/A\",\n            \"verifications\": {},\n            \"returnedData\": {}\n        },\n        \"United States Financial Services\": {\n            \"status\": 2,\n            \"sourceStatus\": \"Successful\",\n            \"errorMessage\": \"\",\n            \"identityVerified\": false,\n            \"safeHarbourScore\": \"none\",\n            \"nameMatchScore\": \"0.446\",\n            \"addressMatchScore\": \"0.000\",\n            \"verifications\": {\n                \"addressElement1\": false,\n                \"addressElement3\": false,\n                \"addressElement4\": false,\n                \"addressElement5\": false,\n                \"dateOfBirth\": false,\n                \"firstName\": false,\n                \"lastName\": false,\n                \"socialSecurityNo\": true\n            },\n            \"returnedData\": {\n                \"deceasedRecord\": false,\n                \"hasBankruptcyRecords\": false,\n                \"hasBusinessRecords\": false,\n                \"hasEvictionsRecords\": false,\n                \"hasForeclosuresRecords\": false,\n                \"hasJudgmentRecords\": false,\n                \"hasLienRecords\": false,\n                \"hasUccRecords\": false,\n                \"hasWorkplaceRecords\": false\n            }\n        },\n        \"United States Phone\": {\n            \"status\": 2,\n            \"sourceStatus\": \"Successful\",\n            \"errorMessage\": \"\",\n            \"identityVerified\": false,\n            \"safeHarbourScore\": \"none\",\n            \"nameMatchScore\": \"0.000\",\n            \"addressMatchScore\": \"0.000\",\n            \"verifications\": {\n                \"addressElement1\": false,\n                \"addressElement3\": false,\n                \"addressElement4\": false,\n                \"addressElement5\": false,\n                \"emailAddress\": false,\n                \"firstName\": false,\n                \"lastName\": false,\n                \"phoneNo\": false\n            },\n            \"returnedData\": {}\n        },\n        \"United States Phone 2\": {\n            \"status\": 2,\n            \"sourceStatus\": \"Successful\",\n            \"errorMessage\": \"No relevant entries found\",\n            \"identityVerified\": false,\n            \"safeHarbourScore\": \"none\",\n            \"nameMatchScore\": \"N/A\",\n            \"addressMatchScore\": \"N/A\",\n            \"verifications\": {},\n            \"returnedData\": {}\n        },\n        \"United States Residential\": {\n            \"status\": 1,\n            \"sourceStatus\": \"Successful\",\n            \"errorMessage\": \"\",\n            \"identityVerified\": true,\n            \"safeHarbourScore\": \"P1\",\n            \"nameMatchScore\": \"1.000\",\n            \"addressMatchScore\": \"1.000\",\n            \"verifications\": {\n                \"addressElement1\": true,\n                \"addressElement3\": true,\n                \"addressElement4\": true,\n                \"addressElement5\": true,\n                \"dateOfBirth\": true,\n                \"email\": false,\n                \"firstName\": true,\n                \"lastName\": true,\n                \"phoneNo\": true,\n                \"socialSecurityNo\": true\n            },\n            \"returnedData\": {}\n        }\n    },\n    \"remarks\": []\n}          "
      },
      {
        "id": "AS5tJ4glQVhlG7b69Q21J",
        "language": "404",
        "customLabel": "",
        "code": "{\n  \"message\": \"Ain't no cake like that.\"\n}"
      }
    ],
    "selectedLanguageId": "-KLLvb-_jXQIuU-WuWQAF"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [
      {
        "name": "Authorization",
        "kind": "required",
        "type": "string",
        "description": "sessionToken obtained via the Authentication call",
        "": "sessionToken obtained via the Authentication call"
      }
    ],
    "bodyDataParameters": [
      {
        "name": "data",
        "kind": "required",
        "type": "object",
        "description": "request body sent to the API",
        "": "object",
        "children": [
          {
            "name": "countryCode",
            "kind": "required",
            "type": "string",
            "description": "US"
          },
          {
            "name": "service",
            "kind": "required",
            "type": "array",
            "description": "\"United States Residential\", \"United States Credit Bureau\", \"United States Phone\",\n\"United States Phone2\", \"United States Consumer\", \"United States Financial Services\""
          },
          {
            "name": "clientReference",
            "kind": "optional",
            "type": "string",
            "description": "a client reference field"
          },
          {
            "name": "firstName",
            "kind": "required",
            "type": "string",
            "description": "first name of the identity owner"
          },
          {
            "name": "middleName",
            "kind": "optional",
            "type": "string",
            "description": "the middle name(s) of the identity owner"
          },
          {
            "name": "lastName",
            "kind": "required",
            "type": "string",
            "description": "the last name of the identity owner"
          },
          {
            "name": "dateOfBirth",
            "kind": "required",
            "type": "string",
            "description": "in YYYY-MM-DD (preferred) or DD-MM-YYYY format",
            "children": []
          },
          {
            "name": "addressElement1",
            "kind": "required",
            "type": "string",
            "description": "the street name of the address of the identity owner",
            "children": []
          },
          {
            "name": "addressElement3",
            "kind": "required",
            "type": "string",
            "description": "the City of the address of the identity owner",
            "children": []
          },
          {
            "name": "addressElement4",
            "kind": "required",
            "type": "string",
            "description": "the State name of the address of the identity owner"
          },
          {
            "name": "addressElement5",
            "kind": "required",
            "type": "string",
            "description": "the Zip code of the address of the identity owner"
          },
          {
            "name": "identityVariables",
            "kind": "required",
            "type": "object",
            "description": "other elements for verification",
            "children": [
              {
                "name": "phoneNo",
                "kind": "required",
                "type": "string",
                "description": "phone number of the identity owner"
              },
              {
                "name": "socialSecurityNo",
                "kind": "optional",
                "type": "string",
                "description": "Social Security number of the identity owner"
              },
              {
                "name": "email",
                "kind": "optional",
                "type": "string",
                "description": "email address of the identity owner"
              }
            ]
          }
        ],
        "schema": [
          {
            "name": "countryCode",
            "kind": "required",
            "type": "string",
            "description": "US"
          },
          {
            "name": "service",
            "kind": "required",
            "type": "array",
            "description": "\"United States Residential\", \"United States Credit Bureau\", \"United States Phone\",\n\"United States Phone2\", \"United States Consumer\", \"United States Financial Services\""
          },
          {
            "name": "clientReference",
            "kind": "optional",
            "type": "string",
            "description": "a client reference field"
          },
          {
            "name": "firstName",
            "kind": "required",
            "type": "string",
            "description": "first name of the identity owner"
          },
          {
            "name": "middleName",
            "kind": "optional",
            "type": "string",
            "description": "the middle name(s) of the identity owner"
          },
          {
            "name": "lastName",
            "kind": "required",
            "type": "string",
            "description": "the last name of the identity owner"
          },
          {
            "name": "dateOfBirth",
            "kind": "required",
            "type": "string",
            "description": "in YYYY-MM-DD (preferred) or DD-MM-YYYY format",
            "children": []
          },
          {
            "name": "addressElement1",
            "kind": "required",
            "type": "string",
            "description": "the street name of the address of the identity owner",
            "children": []
          },
          {
            "name": "addressElement3",
            "kind": "required",
            "type": "string",
            "description": "the City of the address of the identity owner",
            "children": []
          },
          {
            "name": "addressElement4",
            "kind": "required",
            "type": "string",
            "description": "the State name of the address of the identity owner"
          },
          {
            "name": "addressElement5",
            "kind": "required",
            "type": "string",
            "description": "the Zip code of the address of the identity owner"
          },
          {
            "name": "identityVariables",
            "kind": "required",
            "type": "object",
            "description": "other elements for verification",
            "children": [
              {
                "name": "phoneNo",
                "kind": "required",
                "type": "string",
                "description": "phone number of the identity owner"
              },
              {
                "name": "socialSecurityNo",
                "kind": "optional",
                "type": "string",
                "description": "Social Security number of the identity owner"
              },
              {
                "name": "email",
                "kind": "optional",
                "type": "string",
                "description": "email address of the identity owner"
              }
            ]
          }
        ]
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "response": [
    {
      "name": "countryCode",
      "kind": "optional",
      "type": "string",
      "description": "United States",
      "children": []
    },
    {
      "name": "clientReference",
      "kind": "optional",
      "type": "string",
      "description": "the client reference (if given as input) ",
      "children": []
    },
    {
      "name": "reportingReference",
      "kind": "optional",
      "type": "string",
      "description": "a reference number generated which is unique to each transaction. ",
      "children": []
    },
    {
      "name": "validationErrors",
      "kind": "optional",
      "type": "string",
      "description": "Returned with HTTP status code 400 when the request contains invalid or improperly formatted input data.",
      "children": []
    },
    {
      "name": "matchStatus",
      "kind": "optional",
      "type": "string",
      "description": "\"Full Match 1+1 Verification\" \n\"Full Match 2+2 Verification\" \n\"No Match\""
    },
    {
      "name": "searchErrorMessage",
      "kind": "optional",
      "type": "string",
      "description": "error message returned querying the data source",
      "children": []
    },
    {
      "name": "safeHarbour",
      "kind": "optional",
      "type": "boolean",
      "description": "true or false",
      "children": []
    },
    {
      "name": "searchStatus",
      "kind": "optional",
      "type": "string",
      "description": "\"Successful\" \n\"Not Successful\"",
      "children": []
    },
    {
      "name": "serviceResponses",
      "kind": "optional",
      "type": "object",
      "description": "* refer to the section at the bottom of the page titled \"Service Responses Overview\"",
      "children": [
        {
          "name": "status",
          "kind": "optional",
          "type": "integer",
          "description": "0 - identityVerified TRUE - element verifications all TRUE\n1 - identityVerified TRUE - element verifications not all TRUE\n2 - identityVerified FALSE - sourceStatus SUCCESSFUL\n3 - identityVerified FALSE - sourceStatus NOT SUCCESSFUL"
        },
        {
          "name": "sourceStatus",
          "kind": "optional",
          "type": "string",
          "description": "\"Successful\"\n\"Unsuccessful\""
        },
        {
          "name": "errorMessage",
          "kind": "optional",
          "type": "string",
          "description": "error message(s) from the data source.  Example, \"Error querying data source\"."
        },
        {
          "name": "identityVerified",
          "kind": "optional",
          "type": "boolean",
          "description": "true or false"
        },
        {
          "name": "safeHarbourScore",
          "kind": "optional",
          "type": "string",
          "description": "* refer to the section at the bottom of the page titled \"Service Responses Overview\"\n* For more information, refer to Safe Harbour Scores page"
        },
        {
          "name": "nameMatchScore",
          "kind": "optional",
          "type": "string",
          "description": "* refer to the section at the bottom of the page titled \"Service Responses Overview\""
        },
        {
          "name": "addressMatchScore",
          "kind": "optional",
          "type": "string",
          "description": "* refer to the section at the bottom of the page titled \"Service Responses Overview\""
        },
        {
          "name": "verifications",
          "kind": "optional",
          "type": "object",
          "description": "* refer to the section at the bottom of the page titled \"Service Responses Overview\"",
          "children": [
            {
              "name": "addressElement1",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "addressElement3",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "dateOfBirth",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "firstName",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "gender",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "lastName",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "middleName",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            },
            {
              "name": "phoneNo",
              "kind": "optional",
              "type": "boolean",
              "description": ""
            }
          ]
        },
        {
          "name": "returnedData",
          "kind": "optional",
          "type": "object",
          "description": "* refer to the section at the bottom of the page titled \"Service Responses Overview\"",
          "children": [
            {
              "name": "altDobScore",
              "kind": "optional",
              "type": "string",
              "description": "DOB Matching Logic indicator (if configured for United States Financial Services)"
            },
            {
              "name": "dataSourceId",
              "kind": "optional",
              "type": "string",
              "description": "reference number retured from the data source (if configured for United States Financial Services)"
            },
            {
              "name": "dataSourceScore",
              "kind": "optional",
              "type": "number",
              "description": "overall matching score indicator from the data source (if configured for United States Financial Services)"
            },
            {
              "name": "deceasedRecord",
              "kind": "optional",
              "type": "boolean",
              "description": "deceased flag (if configured for United States Financial Services)"
            },
            {
              "name": "hasBankruptcyRecords",
              "kind": "optional",
              "type": "boolean",
              "description": "bankrupcy flag (if configured for United States Financial Services)"
            },
            {
              "name": "hasBusinessRecords",
              "kind": "optional",
              "type": "boolean",
              "description": "if business record available flag (if configured for United States Financial Services)"
            },
            {
              "name": "hasEvictionsRecords",
              "kind": "optional",
              "type": "boolean",
              "description": "evictions flag (if configured for United States Financial Services)"
            },
            {
              "name": "hasForeclosuresRecords",
              "kind": "optional",
              "type": "boolean",
              "description": "fore closures records flag (if configured for United States Financial Services)"
            },
            {
              "name": "hasJudgmentRecords",
              "kind": "optional",
              "type": "boolean",
              "description": "judgement record flag (if configured for United States Financial Services)"
            },
            {
              "name": "hasLienRecords",
              "kind": "optional",
              "type": "boolean",
              "description": "lien records flag (if configured for Premium data)"
            },
            {
              "name": "hasUccRecords",
              "kind": "optional",
              "type": "boolean",
              "description": "ucc indicator flag (if configured for United States Financial Services)"
            },
            {
              "name": "hasWorkplaceRecords",
              "kind": "optional",
              "type": "boolean",
              "description": "workplace record flag (if configured for United States Financial Services)"
            }
          ]
        }
      ]
    },
    {
      "name": "remarks",
      "kind": "optional",
      "type": "array",
      "description": "Null",
      "children": []
    }
  ],
  "autoGeneratedAnchorSlug": "united-states-composite-search",
  "legacyHash": "3lVv8HVnAEWeGi2r_l-mN"
}
```
:::

***

:::hint{type="info"}
# Service Responses Overview&#x20;

Each service returns its own self-contained response block, ensuring modular and source-specific verification results. Consumers of this API should handle varying response structures dynamically based on the requested services.&#x20;

## Service Responses Element

The **serviceResponses** object in the API response contains verification results from one or more data sources, structured under their respective service names. Each service returns a distinct response block with service-specific data.

### Structure and Behavior:&#x20;

- Each key within **serviceResponses** corresponds to a **service name**, representing an individual verification source.
- Services may return data from **a single source or multiple sources** in a sequenced API call.
- The structure of each service response varies, with fields such as **status**, **identityVerified**, and **safeHarbourScore** differing between services.
- The **verifications** block contains service-specific boolean indicators for individual verification checks (e.g., **addressElement1**, **dateOfBirth**, **firstName**).
- The **returnedData** block provides metadata (if applicable).
:::

***

:::Changelog{title="Change History"}
::ChangelogItem{type="added" description="Last updated - 5 May, 2025"}
:::

