Detectors /   DETECTOR
Generate Code Validate Data   Nightfall Console

Street Address

This is a DLP detector that you can easily use or extend upon in the Nightfall platform.

Description Detects street addresses including a street number, street name, city, state, and zip code. The model is trained on English-speaking country data, however, it will recognize most English, Spanish, and French street name suffixes. As a commonly used info-type, we recommend only combining it with another detector OR with a minimum findings count greater than or equal to 10.
Detector type AI Model (Entity Detection)
Category Common Entity
Region Americas, EMEA
Tags pii street address address
Enum (for using this detector via the API)
STREET_ADDRESS

Used in These Detection Rules

Used in These Policies


Use Detector via API

Read API Reference

curl --request POST \
     --url https://api.nightfall.ai/v3/scan \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer  REPLACE-WITH-YOUR-KEY' \
     --header 'Content-Type: application/json' \
     --data '
{
     "policy": {
          "detectionRules": [
               {
                    "detectors": [
                         {
                              "minNumFindings": 1,
                              "minConfidence": "LIKELY",
                              "displayName": "Street Address",
                              "detectorType": "NIGHTFALL_DETECTOR",
                              "nightfallDetector": "STREET_ADDRESS"
                         }                    ],
                    "name": "My Inline Detection Rule",
                    "logicalOp": "ANY"
               }
          ]
     },
     "payload": [
          "INSERT 1+ PAYLOAD(S)",
          "INSERT 1+ PAYLOAD(S)"
     ]
}
'

          import requests
          import json

          api_key = "REPLACE-WITH-YOUR-KEY"
          url = "https://api.nightfall.ai/v3/scan"

          headers = {
              "Accept": "application/json",
              "Authorization": f"Bearer {api_key}",
              "Content-Type": "application/json"
          }

          payload = {
              "policy": {
                  "detectionRules": [
                      {
                          "detectors": [
                              {
                                  "minNumFindings": 1,
                                  "minConfidence": "LIKELY",
                                  "displayName": "Street Address",
                                  "detectorType": "NIGHTFALL_DETECTOR",
                                  "nightfallDetector": "STREET_ADDRESS"
                              }
                          ],
                          "name": "My Inline Detection Rule",
                          "logicalOp": "ANY"
                      }
                  ]
              },
              "payload": [
                  "INSERT 1+ PAYLOAD(S)",
                  "INSERT 1+ PAYLOAD(S)"
              ]
          }

          response = requests.post(url, headers=headers, data=json.dumps(payload))
          print(response.status_code)
          print(response.json())
          

Street Address Validator

Input any text to validate or test. The default minimum confidence is set to "Possible".