CEPAberto 4.0.810

There is a newer version of this package available.
See the version list below for details.
dotnet add package CEPAberto --version 4.0.810
                    
NuGet\Install-Package CEPAberto -Version 4.0.810
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CEPAberto" Version="4.0.810" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CEPAberto" Version="4.0.810" />
                    
Directory.Packages.props
<PackageReference Include="CEPAberto" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CEPAberto --version 4.0.810
                    
#r "nuget: CEPAberto, 4.0.810"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CEPAberto@4.0.810
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CEPAberto&version=4.0.810
                    
Install as a Cake Addin
#tool nuget:?package=CEPAberto&version=4.0.810
                    
Install as a Cake Tool

CEP Aberto SDK .NET

CEP Aberto API wrapper written in C# (.NET).

Implements all V3 features

GitHub license time tracker DeepSource

CEPAberto

CI/CD

Build status Last commit Tests Coverage Code Smells LOC
Build status GitHub last commit AppVeyor tests (branch) Coverage Code Smells Lines of Code

Code Quality

Codacy Badge Codacy Badge

codecov CodeFactor

Maintainability Test Coverage

Quality Gate Status Maintainability Rating

Technical Debt Duplicated Lines (%)

Reliability Rating Security Rating

Bugs Vulnerabilities


Installation

Github Releases

GitHub last release Github All Releases

Download the latest zip file from the Release page.

Nuget package manager

Package Version Downloads
CEPAberto CEPAberto NuGet Version CEPAberto NuGet Downloads

Features

This client supports the following operations/features of the API V3:

  1. Get data based on postal code (CEP).
  2. Get data of a nearest geo location (lat/lon) (Max of 10km).
  3. Get data based on state initials (UF), city, neighborhood and street/address.
  4. Get list of cities of a state based on state initials.
  5. Update the postal code (CEP).

Setup the CEPAbertoClient

Initializes a new instance of CEPAbertoClient class. The API token can be found at http://www.cepaberto.com/api_key (A free registration is required!)


var client = new CEPAbertoClient("my API token");
//var postalData = client.GetData("00000000");
//var cities = client.GetCities("SP");

Get data based on postal code (CEP)

Searches for a postal code data based on postal code


var client = new CEPAbertoClient("my API key");
var postalCode = "40010000";
var result = client.GetData(postalCode);

if(result.Success)
{
   Console.WriteLine("Postal data for the zip code {0} found!", postalCode);
   Console.WriteLine("Lat: {0} | Lon: {1}", result.Latitude, result.Longitude);
}
else
   Console.WriteLine("No data for the zip code {0} available", postalCode);

Get data of a nearest geo location (lat/lon) (Max of 10km)

Searches for the first postal code closest to the requested coordinates, limited to 10km (API limit, not library)


var client = new CEPAbertoClient("my API key");
var result = client.GetData("-20.55", "-43.63");

if(result.Success)
   Console.WriteLine("Postal code found: {0}", result.PostalCode);
else
   Console.WriteLine("Unable to find a postal data for the coordinates supplied!");

Get data based on state initials (UF), city, neighborhood and street/address

Searches for a postal code data for the address supplied. Neighborhood and Street/Address are optional!


var client = new CEPAbertoClient("my API key");
var result = client.GetData("SP","Ubatuba");

if(result.Success)
    Console.WriteLine("Postal code found: {0}", result.PostalCode);
else
    Console.WriteLine("Cannot find postal code for Ubatuba/SP");

Get list of cities of a state based on state initials

Get a list of cities for a given state (use state initials aka UF)


var client = new CEPAbertoClient("my API key");
var result = client.GetCities("AM");

if(result.Success)
    foreach(var city in result.Cities)
        Console.WriteLine("Found city {0} in Amazonas (AM)", city.Name);

Update the postal code (CEP)

Request an update on postal codes that may be outdated or not registered. Accepts upon 100 postal codes (CEP)


var client = new CEPAbertoClient("my API key");
var result = client.Update("03177010");

if(result.Success)
    Console.WriteLine("Success on request update on postal code 03177-010");

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.903 83 9/8/2025
4.0.900 81 9/8/2025
4.0.895 82 9/8/2025
4.0.892 83 9/8/2025
4.0.883 143 9/4/2025
4.0.880 132 9/4/2025
4.0.877 134 9/4/2025
4.0.874 135 9/4/2025
4.0.871 155 8/29/2025
4.0.860 151 8/29/2025
4.0.849 275 8/25/2025
4.0.836 127 8/18/2025
4.0.821 127 8/11/2025
4.0.816 131 8/11/2025
4.0.813 144 8/4/2025
4.0.810 102 7/28/2025
4.0.807 501 7/23/2025
4.0.804 495 7/23/2025
4.0.799 510 7/23/2025
4.0.792 144 7/14/2025
4.0.787 139 7/14/2025
4.0.784 148 7/10/2025
4.0.782 144 7/9/2025
4.0.779 145 7/9/2025
4.0.768 145 6/20/2025
4.0.761 168 5/19/2025
4.0.758 164 5/6/2025
4.0.749 176 4/21/2025
4.0.746 501 3/25/2025
4.0.743 171 3/17/2025
4.0.740 165 3/3/2025
4.0.737 170 3/3/2025
4.0.732 152 2/24/2025
4.0.729 131 2/24/2025
4.0.726 135 2/21/2025
4.0.720 120 2/21/2025
4.0.712 128 2/21/2025
4.0.707 134 2/17/2025
4.0.704 135 2/17/2025
4.0.699 120 2/17/2025
4.0.692 137 2/10/2025
4.0.689 115 2/3/2025
4.0.686 117 1/27/2025
4.0.683 117 1/27/2025
4.0.678 119 1/20/2025
4.0.675 120 1/20/2025
4.0.670 121 1/13/2025
4.0.667 105 1/13/2025
4.0.662 102 1/13/2025
4.0.657 102 1/13/2025
4.0.654 132 1/6/2025
4.0.651 133 1/6/2025
4.0.646 129 1/6/2025
4.0.639 127 12/31/2024
4.0.636 118 12/23/2024
4.0.633 118 12/23/2024
4.0.628 138 12/16/2024
4.0.625 128 12/16/2024
4.0.620 128 12/9/2024
4.0.617 127 12/9/2024
4.0.612 123 12/2/2024
4.0.609 129 11/25/2024
4.0.606 109 11/25/2024
4.0.601 118 11/25/2024
4.0.594 127 11/18/2024
4.0.591 135 11/11/2024
4.0.588 130 11/5/2024
4.0.585 141 10/28/2024
4.0.582 133 10/28/2024
4.0.577 125 10/21/2024
4.0.574 138 10/21/2024
4.0.569 249 10/14/2024
4.0.566 133 10/7/2024
4.0.563 128 10/3/2024
4.0.560 130 10/3/2024
4.0.557 133 10/3/2024
4.0.550 637 9/23/2024
4.0.547 122 9/23/2024
4.0.542 175 9/16/2024
4.0.539 143 9/16/2024
4.0.534 152 9/9/2024
4.0.531 139 9/9/2024
4.0.526 145 9/9/2024
4.0.519 124 9/9/2024
4.0.510 146 9/9/2024
4.0.499 183 9/2/2024
4.0.496 136 9/2/2024
4.0.491 142 8/27/2024
4.0.486 137 8/27/2024
4.0.481 133 8/27/2024
4.0.476 141 8/27/2024
4.0.471 141 8/27/2024
4.0.464 175 8/26/2024
4.0.453 178 8/24/2024
4.0.449 206 8/12/2024
4.0.446 121 8/5/2024
4.0.443 127 7/29/2024
4.0.440 158 7/22/2024
4.0.437 135 7/16/2024
4.0.434 133 7/16/2024
4.0.431 141 7/16/2024
4.0.426 137 7/16/2024
4.0.419 135 7/16/2024
4.0.412 141 7/16/2024
4.0.382 141 6/10/2024
4.0.375 156 6/3/2024
4.0.372 137 5/28/2024
4.0.369 134 5/28/2024
4.0.364 127 5/28/2024
4.0.357 150 5/28/2024
4.0.348 131 5/20/2024
4.0.345 131 5/20/2024
4.0.340 148 5/13/2024
4.0.337 168 5/6/2024
4.0.334 156 5/6/2024
4.0.331 154 4/30/2024
4.0.328 158 4/30/2024
4.0.323 172 4/30/2024
4.0.316 162 4/30/2024
4.0.313 135 4/29/2024
4.0.302 154 4/22/2024
4.0.299 151 4/22/2024
4.0.294 151 4/22/2024
4.0.291 133 4/22/2024
4.0.282 163 4/16/2024
4.0.279 144 4/16/2024
4.0.274 146 4/16/2024
4.0.267 150 4/16/2024
4.0.250 159 4/8/2024
4.0.247 127 4/8/2024
4.0.242 157 4/8/2024
4.0.235 147 3/25/2024
4.0.232 147 3/25/2024
4.0.227 157 3/25/2024
4.0.220 155 3/21/2024
4.0.210 170 2/26/2024
4.0.207 159 2/26/2024
4.0.202 150 2/26/2024
4.0.193 155 2/19/2024
4.0.186 159 2/19/2024
4.0.177 151 2/19/2024
4.0.160 156 2/14/2024
4.0.154 149 2/12/2024
4.0.151 136 2/12/2024
4.0.148 153 2/6/2024
4.0.145 146 2/5/2024
4.0.140 152 1/30/2024
4.0.135 140 1/29/2024
4.0.132 146 1/29/2024
4.0.127 141 1/29/2024
4.0.120 146 1/29/2024
4.0.112 171 1/22/2024
4.0.107 150 1/22/2024
4.0.104 151 1/22/2024
4.0.99 154 1/22/2024
4.0.90 175 1/16/2024
4.0.82 172 1/15/2024
4.0.77 157 1/15/2024
4.0.70 167 1/8/2024
4.0.67 158 1/8/2024
4.0.62 200 12/25/2023
4.0.59 168 12/25/2023
4.0.54 172 12/25/2023
4.0.47 159 12/25/2023
4.0.38 182 12/18/2023
4.0.35 157 12/18/2023
4.0.32 166 12/18/2023
4.0.25 150 12/18/2023
4.0.3 176 12/17/2023
3.0.467 177 12/14/2023
3.0.461 185 12/12/2023
3.0.458 190 12/11/2023
3.0.455 180 12/11/2023
3.0.452 197 12/11/2023
3.0.445 189 12/5/2023
3.0.440 170 12/5/2023
3.0.435 167 11/28/2023
3.0.432 162 11/28/2023
3.0.427 351 11/23/2023
3.0.424 168 11/21/2023
3.0.417 733 11/14/2023
3.0.411 146 11/14/2023
3.0.408 179 11/14/2023
3.0.400 186 11/10/2023
3.0.391 177 11/7/2023
3.0.388 170 11/7/2023
3.0.385 205 10/24/2023
3.0.382 186 10/17/2023
3.0.378 218 9/25/2023
3.0.373 196 9/24/2023
3.0.370 195 9/24/2023
3.0.365 195 9/24/2023
3.0.356 213 9/17/2023
3.0.353 191 9/17/2023
3.0.348 230 9/13/2023
3.0.338 218 9/13/2023
3.0.335 208 9/13/2023
3.0.332 210 9/13/2023
3.0.322 388 8/28/2023
3.0.314 411 8/13/2023
3.0.311 223 8/13/2023
3.0.308 244 8/13/2023
3.0.301 248 8/13/2023
3.0.291 322 8/3/2023
3.0.288 261 8/2/2023
3.0.283 289 7/28/2023
3.0.280 259 7/25/2023
3.0.277 249 7/25/2023
3.0.269 317 7/19/2023
3.0.266 230 7/19/2023
3.0.212 409 6/27/2023
3.0.209 296 6/26/2023
3.0.202 322 6/19/2023
3.0.193 250 6/18/2023
3.0.188 268 6/18/2023
3.0.183 245 6/18/2023
3.0.166 425 6/7/2023
3.0.156 418 5/31/2023
3.0.150 236 5/31/2023
3.0.147 253 5/31/2023
3.0.117 241 5/25/2023
3.0.114 513 5/4/2023
3.0.113 267 5/2/2023
3.0.109 276 4/28/2023
3.0.102 454 4/10/2023
3.0.97 293 4/9/2023
3.0.89 303 4/4/2023
3.0.84 422 4/3/2023
3.0.75 450 3/27/2023
3.0.72 384 3/25/2023
3.0.65 319 3/25/2023
3.0.56 308 3/25/2023
2.0.39 690 1/24/2023
2.0.38 764 1/9/2023
2.0.33 409 1/9/2023
2.0.32 404 1/9/2023
2.0.31 399 1/9/2023
2.0.26 442 12/14/2022
2.0.25 425 12/8/2022
2.0.24 417 12/8/2022
2.0.21 424 12/8/2022
2.0.12 1,349 11/1/2020
2.0.11 637 10/1/2020
2.0.10 705 9/1/2020
2.0.9 652 8/1/2020
2.0.8 789 7/1/2020
2.0.7 649 6/29/2020
1.0.58 762 6/1/2020
1.0.57 720 5/2/2020
1.0.56 709 5/2/2020
1.0.54 732 5/2/2020
1.0.52 676 5/2/2020
1.0.51 703 5/2/2020
1.0.50 715 5/2/2020
1.0.49 762 5/2/2020
1.0.48 696 5/2/2020
1.0.47 708 5/2/2020
1.0.46 719 5/1/2020
1.0.45 728 5/1/2020
1.0.44 708 5/1/2020
1.0.43 725 5/1/2020
1.0.42 693 5/1/2020
1.0.41 704 5/1/2020
1.0.40 729 5/1/2020
1.0.39 719 5/1/2020
1.0.38 716 5/1/2020
1.0.37 763 5/1/2020
1.0.36 697 5/1/2020
1.0.35 700 5/1/2020
1.0.34 701 5/1/2020
1.0.33 707 5/1/2020
1.0.32 675 5/1/2020
1.0.31 695 5/1/2020
1.0.30 674 5/1/2020
1.0.29 698 5/1/2020
1.0.28 687 5/1/2020
1.0.27 731 5/1/2020
1.0.26 752 5/1/2020
1.0.25 798 5/1/2020
1.0.24 730 5/1/2020
1.0.22 753 5/1/2020
1.0.21 694 4/24/2020
1.0.20 709 4/24/2020
1.0.19 688 4/24/2020
1.0.12 1,120 9/19/2018
1.0.9 1,094 8/16/2018
1.0.8 1,091 8/16/2018