![]() |
VOOZH | about |
dotnet add package ViaCep --version 5.0.1
NuGet\Install-Package ViaCep -Version 5.0.1
<PackageReference Include="ViaCep" Version="5.0.1" />
<PackageVersion Include="ViaCep" Version="5.0.1" />Directory.Packages.props
<PackageReference Include="ViaCep" />Project file
paket add ViaCep --version 5.0.1
#r "nuget: ViaCep, 5.0.1"
#:package ViaCep@5.0.1
#addin nuget:?package=ViaCep&version=5.0.1Install as a Cake Addin
#tool nuget:?package=ViaCep&version=5.0.1Install as a Cake Tool
A .NET client wrapper for both .NET Core & .NET Framework projects of Via CEP API
π GitHub license
π time tracker
| Build status | Last commit | Tests | Coverage | Code Smells | LOC |
|---|---|---|---|---|---|
| π Build and Test |
π GitHub last commit |
π Build and Test |
π Coverage |
π Code Smells |
π Lines of Code |
π Codacy Badge
π Codacy Badge
π Maintainability
π Test Coverage
π Quality Gate Status
π Maintainability Rating
π Technical Debt
π Duplicated Lines (%)
π Reliability Rating
π Security Rating
π Bugs
π Vulnerabilities
π GitHub last release
π GitHub All Releases
Download the latest zip file from the Release page.
| Package | Version | Downloads |
|---|---|---|
| ViaCEP | π ViaCEP NuGet Version |
π ViaCEP NuGet Downloads |
The package has two classes:
This package is fully compatible with Dependency Injection. Use the interface IViaCepClient and the constructor with an HttpClient parameter and an IHttpClientFactory instance.
//your DI container
services.AddHttpClient<IViaCepClient, ViaCepClient>(client => { client.BaseAddress = new Uri("https://viacep.com.br/"); });
//then use in your domain service, handler, controller...
var viaCepClient = container.GetService<IViaCepClient>();
var result = await viaCepClient.SearchAsync("01001000", cancellationToken);
You can search using the zip code/postal code (AKA CEP) or the address data (state initials - UF, city name, and location name - street, avenue, park, square). Both methods support async and sync!
var result = new ViaCepClient().Search("01001000"); //searches for the postal code 01001-000
var address = result.Address; //PraΓ§a da SΓ©
var city = reuslt.City; //SΓ£o Paulo
//do what you need with 'result' instance of ViaCEPResult.
var results = new ViaCepClient().Search("SP", "SΓ£o Paulo", "Avenida Paulista"); //search for the Avenida Paulista in SΓ£o Paulo / SP
foreach(var result in results){
var address = result.Address;
var neighborhood = result.Neighborhood;
var zipCode = result.ZipCode;
//do what you need with 'result' instance of ViaCEPResult.
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 3 NuGet packages that depend on ViaCep:
| Package | Downloads |
|---|---|
|
JotaSystem.Sdk.Providers
Pacote com providers reutilizΓ‘veis. |
|
|
DrCash.Application
Package Description |
|
|
DrCash.Application.SDK
Package Description |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.1 | 1,057 | 4/12/2026 |
| 5.0.0 | 641 | 4/12/2026 |
| 4.3.24 | 641 | 4/12/2026 |
| 4.1.511 | 14,244 | 5/31/2024 |
| 4.1.510 | 2,461 | 5/28/2024 |
| 4.1.507 | 2,434 | 5/28/2024 |
| 4.1.502 | 2,444 | 5/28/2024 |
| 4.1.495 | 2,655 | 4/29/2024 |
| 4.1.492 | 2,447 | 4/29/2024 |
| 4.1.487 | 2,449 | 4/29/2024 |
| 4.1.480 | 2,460 | 4/22/2024 |
| 4.1.477 | 2,442 | 4/22/2024 |
| 4.1.474 | 2,476 | 4/15/2024 |
| 4.1.471 | 2,456 | 4/15/2024 |
| 4.1.466 | 2,523 | 4/8/2024 |
| 4.1.463 | 2,910 | 3/18/2024 |
| 4.1.460 | 2,517 | 3/18/2024 |
| 4.1.453 | 2,916 | 2/26/2024 |
| 4.1.449 | 2,555 | 2/26/2024 |
| 4.1.444 | 3,901 | 2/19/2024 |