CEPAberto 4.0.880

There is a newer version of this package available.
See the version list below for details.
dotnet add package CEPAberto --version 4.0.880
                    
NuGet\Install-Package CEPAberto -Version 4.0.880
                    
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.880" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CEPAberto" Version="4.0.880" />
                    
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.880
                    
#r "nuget: CEPAberto, 4.0.880"
                    
#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.880
                    
#: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.880
                    
Install as a Cake Addin
#tool nuget:?package=CEPAberto&version=4.0.880
                    
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.1.8 42 1/12/2026
4.1.5 53 1/12/2026
4.0.1126 88 1/5/2026
4.0.1123 77 1/5/2026
4.0.1120 82 1/5/2026
4.0.1113 80 1/5/2026
4.0.1104 89 12/29/2025
4.0.1101 84 12/29/2025
4.0.1096 87 12/29/2025
4.0.1089 249 12/15/2025
4.0.1086 235 12/15/2025
4.0.1083 232 12/15/2025
4.0.1080 220 12/15/2025
4.0.1077 217 12/15/2025
4.0.1066 348 12/8/2025
4.0.1063 501 12/1/2025
4.0.1060 489 12/1/2025
4.0.1055 200 11/24/2025
4.0.1052 189 11/24/2025
4.0.1049 189 11/24/2025
4.0.1044 191 11/24/2025
4.0.1035 195 11/24/2025
4.0.1032 194 11/24/2025
4.0.1017 228 11/10/2025
4.0.1012 232 11/10/2025
4.0.1005 199 10/27/2025
4.0.1002 185 10/27/2025
4.0.999 194 10/27/2025
4.0.994 194 10/27/2025
4.0.989 189 10/27/2025
4.0.978 184 10/20/2025
4.0.975 179 10/20/2025
4.0.970 185 10/20/2025
4.0.967 183 10/20/2025
4.0.956 195 10/6/2025
4.0.953 190 10/6/2025
4.0.948 190 10/6/2025
4.0.941 197 9/29/2025
4.0.938 185 9/29/2025
4.0.935 192 9/29/2025
4.0.926 185 9/29/2025
4.0.911 279 9/15/2025
4.0.906 274 9/15/2025
4.0.903 204 9/8/2025
4.0.900 191 9/8/2025
4.0.895 193 9/8/2025
4.0.892 195 9/8/2025
4.0.883 219 9/4/2025
4.0.880 200 9/4/2025
4.0.877 206 9/4/2025
4.0.874 208 9/4/2025
4.0.871 218 8/29/2025
4.0.860 216 8/29/2025
4.0.849 336 8/25/2025
4.0.836 196 8/18/2025
4.0.821 183 8/11/2025
4.0.816 201 8/11/2025
4.0.813 200 8/4/2025
4.0.810 182 7/28/2025
4.0.807 582 7/23/2025
4.0.804 577 7/23/2025
4.0.799 584 7/23/2025
4.0.792 201 7/14/2025
4.0.787 189 7/14/2025
4.0.784 209 7/10/2025
4.0.782 200 7/9/2025
4.0.779 202 7/9/2025
4.0.768 221 6/20/2025
4.0.761 234 5/19/2025
4.0.758 221 5/6/2025
4.0.749 229 4/21/2025
4.0.746 541 3/25/2025
4.0.743 234 3/17/2025
4.0.740 217 3/3/2025
4.0.737 230 3/3/2025
4.0.732 204 2/24/2025
4.0.729 185 2/24/2025
4.0.726 178 2/21/2025
4.0.720 170 2/21/2025
4.0.712 180 2/21/2025
4.0.707 190 2/17/2025
4.0.704 191 2/17/2025
4.0.699 171 2/17/2025
4.0.692 177 2/10/2025
4.0.689 173 2/3/2025
4.0.686 168 1/27/2025
4.0.683 164 1/27/2025
4.0.678 175 1/20/2025
4.0.675 163 1/20/2025
4.0.670 163 1/13/2025
4.0.667 149 1/13/2025
4.0.662 159 1/13/2025
4.0.657 153 1/13/2025
4.0.654 184 1/6/2025
4.0.651 187 1/6/2025
4.0.646 180 1/6/2025
4.0.639 182 12/31/2024
4.0.636 175 12/23/2024
4.0.633 171 12/23/2024
4.0.628 189 12/16/2024
4.0.625 185 12/16/2024
4.0.620 182 12/9/2024
4.0.617 177 12/9/2024
4.0.612 175 12/2/2024
4.0.609 175 11/25/2024
4.0.606 161 11/25/2024
4.0.601 167 11/25/2024
4.0.594 177 11/18/2024
4.0.591 199 11/11/2024
4.0.588 179 11/5/2024
4.0.585 185 10/28/2024
4.0.582 188 10/28/2024
4.0.577 176 10/21/2024
4.0.574 191 10/21/2024
4.0.569 301 10/14/2024
4.0.566 184 10/7/2024
4.0.563 182 10/3/2024
4.0.560 184 10/3/2024
4.0.557 194 10/3/2024
4.0.550 777 9/23/2024
4.0.547 174 9/23/2024
4.0.542 235 9/16/2024
4.0.539 194 9/16/2024
4.0.534 202 9/9/2024
4.0.531 194 9/9/2024
4.0.526 201 9/9/2024
4.0.519 174 9/9/2024
4.0.510 198 9/9/2024
4.0.499 234 9/2/2024
4.0.496 187 9/2/2024
4.0.491 194 8/27/2024
4.0.486 184 8/27/2024
4.0.481 178 8/27/2024
4.0.476 190 8/27/2024
4.0.471 195 8/27/2024
4.0.464 225 8/26/2024
4.0.453 226 8/24/2024
4.0.449 261 8/12/2024
4.0.446 173 8/5/2024
4.0.443 181 7/29/2024
4.0.440 210 7/22/2024
4.0.437 182 7/16/2024
4.0.434 177 7/16/2024
4.0.431 195 7/16/2024
4.0.426 188 7/16/2024
4.0.419 192 7/16/2024
4.0.412 193 7/16/2024
4.0.382 199 6/10/2024
4.0.375 206 6/3/2024
4.0.372 196 5/28/2024
4.0.369 174 5/28/2024
4.0.364 172 5/28/2024
4.0.357 206 5/28/2024
4.0.348 182 5/20/2024
4.0.345 188 5/20/2024
4.0.340 200 5/13/2024
4.0.337 220 5/6/2024
4.0.334 210 5/6/2024
4.0.331 211 4/30/2024
4.0.328 208 4/30/2024
4.0.323 223 4/30/2024
4.0.316 212 4/30/2024
4.0.313 187 4/29/2024
4.0.302 201 4/22/2024
4.0.299 207 4/22/2024
4.0.294 200 4/22/2024
4.0.291 180 4/22/2024
4.0.282 210 4/16/2024
4.0.279 182 4/16/2024
4.0.274 189 4/16/2024
4.0.267 204 4/16/2024
4.0.250 212 4/8/2024
4.0.247 184 4/8/2024
4.0.242 209 4/8/2024
4.0.235 202 3/25/2024
4.0.232 196 3/25/2024
4.0.227 211 3/25/2024
4.0.220 200 3/21/2024
4.0.210 220 2/26/2024
4.0.207 199 2/26/2024
4.0.202 195 2/26/2024
4.0.193 201 2/19/2024
4.0.186 213 2/19/2024
4.0.177 202 2/19/2024
4.0.160 209 2/14/2024
4.0.154 195 2/12/2024
4.0.151 185 2/12/2024
4.0.148 205 2/6/2024
4.0.145 199 2/5/2024
4.0.140 203 1/30/2024
4.0.135 192 1/29/2024
4.0.132 193 1/29/2024
4.0.127 194 1/29/2024
4.0.120 198 1/29/2024
4.0.112 216 1/22/2024
4.0.107 204 1/22/2024
4.0.104 208 1/22/2024
4.0.99 196 1/22/2024
4.0.90 229 1/16/2024
4.0.82 228 1/15/2024
4.0.77 207 1/15/2024
4.0.70 216 1/8/2024
4.0.67 211 1/8/2024
4.0.62 247 12/25/2023
4.0.59 219 12/25/2023
4.0.54 222 12/25/2023
4.0.47 205 12/25/2023
4.0.38 231 12/18/2023
4.0.35 214 12/18/2023
4.0.32 220 12/18/2023
4.0.25 204 12/18/2023
4.0.3 230 12/17/2023
3.0.467 227 12/14/2023
3.0.461 237 12/12/2023
3.0.458 240 12/11/2023
3.0.455 226 12/11/2023
3.0.452 256 12/11/2023
3.0.445 232 12/5/2023
3.0.440 209 12/5/2023
3.0.435 207 11/28/2023
3.0.432 205 11/28/2023
3.0.427 415 11/23/2023
3.0.424 207 11/21/2023
3.0.417 773 11/14/2023
3.0.411 183 11/14/2023
3.0.408 222 11/14/2023
3.0.400 232 11/10/2023
3.0.391 220 11/7/2023
3.0.388 215 11/7/2023
3.0.385 237 10/24/2023
3.0.382 227 10/17/2023
3.0.378 257 9/25/2023
3.0.373 238 9/24/2023
3.0.370 221 9/24/2023
3.0.365 235 9/24/2023
3.0.356 252 9/17/2023
3.0.353 233 9/17/2023
3.0.348 277 9/13/2023
3.0.338 246 9/13/2023
3.0.335 247 9/13/2023
3.0.332 250 9/13/2023
3.0.322 417 8/28/2023
3.0.314 455 8/13/2023
3.0.311 253 8/13/2023
3.0.308 271 8/13/2023
3.0.301 295 8/13/2023
3.0.291 364 8/3/2023
3.0.288 312 8/2/2023
3.0.283 329 7/28/2023
3.0.280 303 7/25/2023
3.0.277 291 7/25/2023
3.0.269 363 7/19/2023
3.0.266 278 7/19/2023
3.0.212 464 6/27/2023
3.0.209 342 6/26/2023
3.0.202 376 6/19/2023
3.0.193 299 6/18/2023
3.0.188 314 6/18/2023
3.0.183 291 6/18/2023
3.0.166 482 6/7/2023
3.0.156 476 5/31/2023
3.0.150 291 5/31/2023
3.0.147 305 5/31/2023
3.0.117 295 5/25/2023
3.0.114 570 5/4/2023
3.0.113 325 5/2/2023
3.0.109 332 4/28/2023
3.0.102 507 4/10/2023
3.0.97 347 4/9/2023
3.0.89 359 4/4/2023
3.0.84 474 4/3/2023
3.0.75 512 3/27/2023
3.0.72 446 3/25/2023
3.0.65 365 3/25/2023
3.0.56 366 3/25/2023
2.0.39 742 1/24/2023
2.0.38 840 1/9/2023
2.0.33 472 1/9/2023
2.0.32 462 1/9/2023
2.0.31 477 1/9/2023
2.0.26 494 12/14/2022
2.0.25 492 12/8/2022
2.0.24 466 12/8/2022
2.0.21 504 12/8/2022
2.0.12 1,443 11/1/2020
2.0.11 707 10/1/2020
2.0.10 811 9/1/2020
2.0.9 747 8/1/2020
2.0.8 883 7/1/2020
2.0.7 739 6/29/2020
1.0.58 846 6/1/2020
1.0.57 813 5/2/2020
1.0.56 802 5/2/2020
1.0.54 810 5/2/2020
1.0.52 758 5/2/2020
1.0.51 781 5/2/2020
1.0.50 819 5/2/2020
1.0.49 845 5/2/2020
1.0.48 773 5/2/2020
1.0.47 779 5/2/2020
1.0.46 807 5/1/2020
1.0.45 822 5/1/2020
1.0.44 802 5/1/2020
1.0.43 797 5/1/2020
1.0.42 780 5/1/2020
1.0.41 782 5/1/2020
1.0.40 809 5/1/2020
1.0.39 796 5/1/2020
1.0.38 787 5/1/2020
1.0.37 842 5/1/2020
1.0.36 786 5/1/2020
1.0.35 771 5/1/2020
1.0.34 783 5/1/2020
1.0.33 779 5/1/2020
1.0.32 742 5/1/2020
1.0.31 799 5/1/2020
1.0.30 744 5/1/2020
1.0.29 777 5/1/2020
1.0.28 770 5/1/2020
1.0.27 823 5/1/2020
1.0.26 828 5/1/2020
1.0.25 898 5/1/2020
1.0.24 809 5/1/2020
1.0.22 830 5/1/2020
1.0.21 777 4/24/2020
1.0.20 790 4/24/2020
1.0.19 781 4/24/2020
1.0.12 1,197 9/19/2018
1.0.9 1,168 8/16/2018
1.0.8 1,166 8/16/2018