Address Validation API client libraries
Stay organized with collections
Save and categorize content based on your preferences.
This page shows how to get started with the client libraries for
Address Validation API.
Read more about the client libraries in Client Libraries
Explained.
Install the client library
Set up authentication
When you use client libraries, you use
Application Default Credentials (ADC)
to authenticate. For information about setting up ADC, see
Provide credentials for Application Default Credentials.
For information about using ADC with client libraries, see
Authenticate using client libraries.
Use the client library
See
Client library examples
for examples of how to send API requests using the client libraries.
Additional resources
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis page provides instructions for getting started with the Address Validation API client libraries, focusing on C# implementation.\u003c/p\u003e\n"],["\u003cp\u003eYou'll learn how to install the necessary C# client library using the \u003ccode\u003eInstall-Package\u003c/code\u003e command.\u003c/p\u003e\n"],["\u003cp\u003eThe guide details the authentication process using Application Default Credentials (ADC) and provides links for further setup information.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a C# code snippet demonstrating how to use the client library to validate an address.\u003c/p\u003e\n"],["\u003cp\u003eLinks to additional resources like source code, issue tracker, and Stack Overflow are provided for further assistance.\u003c/p\u003e\n"]]],["To start using the Address Validation API client library in C#, install the `Google.Maps.AddressValidation.V1` package. Authenticate via Application Default Credentials (ADC). Utilize the `AddressValidationClient` to validate an address, creating a `ValidateAddressRequest` with properties like `PostalAddress`, `PreviousResponseId`, `EnableUspsCass`, and `SessionToken`. Send the request to the client and obtain a `ValidateAddressResponse`. Refer to linked resources for further assistance.\n"],null,["This page shows how to get started with the client libraries for\nAddress Validation API.\n\nRead more about the client libraries in [Client Libraries\nExplained](https://cloud.google.com/apis/docs/client-libraries-explained).\n\nInstall the client library \n\nJava\n\nFor more information, see\n[Setting Up a Java Development Environment](https://cloud.google.com/java/docs/setup)\nand [Using Cloud Client Libraries](https://cloud.google.com/java/docs/bom).\n\nFor the complete installation instructions, see [Google Address Validation API Client for Java](https://github.com/googleapis/google-cloud-java/blob/main/java-maps-addressvalidation/README.md).\n\nGo \n\n```\ngo get cloud.google.com/go/maps\n```\n\nFor more information, see\n[Setting Up a Go Development Environment](https://cloud.google.com/go/docs/setup).\n\nFor the complete installation instructions, see [Google Address Validation API Client for Go](https://github.com/googleapis/google-cloud-go/tree/main/maps/addressvalidation/apiv1).\n\nNodeJS \n\n```\nnpm install @googlemaps/addressvalidation\n```\n\nFor more information, see\n[Setting Up a Node.js Development Environment](https://cloud.google.com/nodejs/docs/setup).\n\nFor the complete installation instructions, see [Google Address Validation API Client for NodeJS](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-addressvalidation).\n\nPython \n\n```\npip install google-maps-addressvalidation\n```\n\nFor more information, see\n[Setting Up a Python Development Environment](https://cloud.google.com/python/docs/setup).\n\nFor the complete installation instructions, see [Google Address Validation API Client for Python](https://github.com/googleapis/google-cloud-python/tree/main/packages/google-maps-addressvalidation).\n\n.NET \n\n```\nInstall-Package Google.Maps.AddressValidation.V1 -Pre\n```\n\nFor more information, see\n[Setting Up a C# Development Environment](https://cloud.google.com/dotnet/docs/setup)\nand\n[Google Address Validation API Client for .NET](https://github.com/googleapis/google-cloud-dotnet/tree/main/apis/Google.Maps.AddressValidation.V1).\n\nSet up authentication\n\nWhen you use client libraries, you use\n[Application Default Credentials (ADC)](https://cloud.google.com/docs/authentication/application-default-credentials)\nto authenticate. For information about setting up ADC, see\n[Provide credentials for Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc).\nFor information about using ADC with client libraries, see\n[Authenticate using client libraries](https://cloud.google.com/docs/authentication/client-libraries).\n\nUse the client library\n\nSee\n[Client library examples](https://developers.google.com/maps/documentation/address-validation/client-library-examples)\nfor examples of how to send API requests using the client libraries.\n\nAdditional resources \n\nJava\n\n- [Source Code](https://github.com/googleapis/google-cloud-java/tree/main/java-maps-addressvalidation)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-java/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-address-validation-api)\n\nGo\n\n- [Source Code](https://github.com/googleapis/google-cloud-go/tree/main/maps/addressvalidation/apiv1)\n- [Package Documentation](https://pkg.go.dev/cloud.google.com/go/maps@v1.21.0/addressvalidation/apiv1)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-go/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-address-validation-api)\n\nNodeJS\n\n- [Source Code](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-maps-addressvalidation)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-node/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-address-validation-api)\n\nPython\n\n- [Source Code](https://github.com/googleapis/google-cloud-python/tree/main/packages/google-maps-addressvalidation)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-python/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-address-validation-api)\n\n.NET\n\n- [Source Code](https://github.com/googleapis/google-cloud-dotnet/tree/main/apis/Google.Maps.AddressValidation.V1)\n- [GitHub Issue Tracker](https://github.com/googleapis/google-cloud-dotnet/issues)\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/google-address-validation-api)"]]