
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
dotsaddressvalidation3
Advanced tools
Service Objects' USPS CASS Certified™ address validation service matches and corrects mailing addresses using the latest USPS and proprietary data sets available, ensuring your mailing records are always accurate and up-to-date.
DOTS Address Validation 3 US ("AV3") is designed to take an unstandardized address, validate it against the latest USPS data, and return standardized, deliverable addresses. The service provides corrected information such as the correct street location and zip plus four code, along with parsed address tokens, such as the PMB box number, pre- and post-directionals, county and state codes, and much more.
AV3 can provide instant address verification and correction to websites or enhancement to contact lists. However, the output from AV3 must be considered carefully before the existence or non-existence of an address is decided.
Create a new Node.js project
Install the AV3 module
npm install dotsaddressvalidation3
Load in the module to your project
var AddressValidation3 = require(dotsaddressvalidation3);
getBestMatches() methodAddressValidation3.getBestMatches(
BusinessName,
Address,
Address2,
City, State,
PostalCode,
LicenseKey,
Environment,
function(err, response){...}
);
Or
getSecondaryNumbers() methodAddressValidation3.getSecondaryNumbers(
Address,
City,
State,
PostalCode,
LicenseKey,
Environment,
function(err, response){...}
);
Or
findAddressLines() methodAddressValidation3.findAddressLines(
Address1,
Address2,
Address3,
Address4,
Address5,
Address6,
City,
State,
PostalCode,
LicenseKey,
Environment,
function(err, response){...}
);
| Parameter | Type | Value |
|---|---|---|
| BusinessName | String | Name of business associated with this address. Used to append Suite data. |
| Address1 | String | Address line of the address to validate. For example, "123 Main Street". |
| Address2 | String | This line is for address information that does not contribute to DPV coding an address. For example "C/O John Smith" does not help validate the address, but is still useful in delivery. |
| City | String | The city of the address to validate. For example, "New York". The city isn't required, but if one is not provided, the Zip code is required. |
| State | String | The state of the address to validate. For example, "NY". This does not need to be contracted, Full state names will work as well. The state isn't required, but if one is not provided, the Zip code is required. |
| PostalCode | String | The zip code of the address to validate. A zip code isn't required, but if one is not provided, the City and State are required. |
| LicenseKey | String | Your license key to use the service. |
| Environment | String | "trial" OR "production" |
{
"Addresses":[{
"Address1":"String content",
"Address2":"String content",
"City":"String content",
"State":"String content",
"Zip":"String content",
"IsResidential":"String content",
"DPV":"String content",
"DPVDesc":"String content",
"DPVNotes":"String content",
"DPVNotesDesc":"String content",
"Corrections":"String content",
"CorrectionsDesc":"String content",
"BarcodeDigits":"String content",
"CarrierRoute":"String content",
"CongressCode":"String content",
"CountyCode":"String content",
"CountyName":"String content",
"FragmentHouse":"String content",
"FragmentPreDir":"String content",
"FragmentStreet":"String content",
"FragmentSuffix":"String content",
"FragmentPostDir":"String content",
"FragmentUnit":"String content",
"Fragment":"String content",
"FragmentPMBPrefix":"String content",
"FragmentPMBNumber":"String content"
}],
"Error":{
"Type":"String content",
"TypeCode":"String content",
"Desc":"String content",
"DescCode":"String content"
},
"IsCASS":true
}
| Parameter | Type | Value |
|---|---|---|
| Address | String | Address line of the address to validate. For example, "123 Main Street". |
| City | String | The city of the address to validate. For example, "New York". The city isn't required, but if one is not provided, the Zip code is required. |
| State | String | The state of the address to validate. For example, "NY". This does not need to be contracted, Full state names will work as well. The state isn't required, but if one is not provided, the Zip code is required. |
| PostalCode | String | The zip code of the address to validate. A zip code isn't required, but if one is not provided, the City and State are required. |
| LicenseKey | String | Your license key to use the service. |
| Environment | String | "trial" OR "production" |
{
"Address1":"String content",
"Error":{
"Type":"String content",
"TypeCode":"String content",
"Desc":"String content",
"DescCode":"String content"
},
"City":"String content",
"State":"String content",
"Zip":"String content",
"SecondaryNumbers":["String content"],
"TotalCount":2147483647
}
| Parameter | Type | Value |
|---|---|---|
| Address1 | String | Address line of the address to validate. For example, "123 Main Street". |
| Address2 | String | This line is for address information that does not contribute to DPV coding an address. For example "C/O John Smith" does not help validate the address, but is still useful in delivery. |
| Address3 | String | Any address information that should belong in Address1 or Address2 lines. |
| Address4 | String | Any address information that should belong in Address1 or Address2 lines. |
| Address5 | String | Any address information that should belong in Address1 or Address2 lines. |
| Address6 | String | Any address information that should belong in Address1 or Address2 lines. |
| City | String | The city of the address to validate. For example, "New York". The city isn't required, but if one is not provided, the Zip code is required. |
| State | String | The state of the address to validate. For example, "NY". This does not need to be contracted, Full state names will work as well. The state isn't required, but if one is not provided, the Zip code is required. |
| PostalCode | String | The zip code of the address to validate. A zip code isn't required, but if one is not provided, the City and State are required. |
| LicenseKey | String | Your license key to use the service. |
| Environment | String | "trial" OR "production" |
{
"Error":{
"Type":"String content",
"TypeCode":"String content",
"Desc":"String content",
"DescCode":"String content"
},
"BestAddress1":"String content",
"BestAddress2":"String content",
"City":"String content",
"State":"String content",
"PostalCode":"String content"
}
For trial keys, set the Environment variable to "trial". Once you purchase a production license key, swap the Environment variable to "production" and change out your LicenseKey to your new license key.
The module automatically handles failover logic when using the production environment. This helps to ensure your web service requests are made sucessfully regardless of any network interuptions.
For a deeper dive into our API, visit our developer guides.
If you’re ready to put it to the test, sign up for a free API trial key and get 500 free transactions.
FAQs
Service Objects' USPS CASS Certified™ address validation service matches and corrects mailing addresses using the latest USPS and proprietary data sets available, ensuring your mailing records are always accurate and up-to-date.
The npm package dotsaddressvalidation3 receives a total of 2 weekly downloads. As such, dotsaddressvalidation3 popularity was classified as not popular.
We found that dotsaddressvalidation3 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.