CEPAberto 4.0.953

There is a newer version of this package available.
See the version list below for details.
dotnet add package CEPAberto --version 4.0.953
                    
NuGet\Install-Package CEPAberto -Version 4.0.953
                    
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.953" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CEPAberto" Version="4.0.953" />
                    
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.953
                    
#r "nuget: CEPAberto, 4.0.953"
                    
#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.953
                    
#: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.953
                    
Install as a Cake Addin
#tool nuget:?package=CEPAberto&version=4.0.953
                    
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.1104 78 12/29/2025
4.0.1101 78 12/29/2025
4.0.1096 79 12/29/2025
4.0.1089 242 12/15/2025
4.0.1086 234 12/15/2025
4.0.1083 230 12/15/2025
4.0.1080 218 12/15/2025
4.0.1077 216 12/15/2025
4.0.1066 342 12/8/2025
4.0.1063 498 12/1/2025
4.0.1060 481 12/1/2025
4.0.1055 194 11/24/2025
4.0.1052 182 11/24/2025
4.0.1049 184 11/24/2025
4.0.1044 183 11/24/2025
4.0.1035 188 11/24/2025
4.0.1032 185 11/24/2025
4.0.1017 223 11/10/2025
4.0.1012 225 11/10/2025
4.0.1005 193 10/27/2025
4.0.1002 177 10/27/2025
4.0.999 191 10/27/2025
4.0.994 188 10/27/2025
4.0.989 185 10/27/2025
4.0.978 178 10/20/2025
4.0.975 175 10/20/2025
4.0.970 179 10/20/2025
4.0.967 178 10/20/2025
4.0.956 191 10/6/2025
4.0.953 187 10/6/2025
4.0.948 184 10/6/2025
4.0.941 193 9/29/2025
4.0.938 182 9/29/2025
4.0.935 189 9/29/2025
4.0.926 182 9/29/2025
4.0.911 274 9/15/2025
4.0.906 269 9/15/2025
4.0.903 200 9/8/2025
4.0.900 186 9/8/2025
4.0.895 191 9/8/2025
4.0.892 191 9/8/2025
4.0.883 214 9/4/2025
4.0.880 196 9/4/2025
4.0.877 200 9/4/2025
4.0.874 204 9/4/2025
4.0.871 213 8/29/2025
4.0.860 212 8/29/2025
4.0.849 333 8/25/2025
4.0.836 189 8/18/2025
4.0.821 176 8/11/2025
4.0.816 194 8/11/2025
4.0.813 194 8/4/2025
4.0.810 177 7/28/2025
4.0.807 577 7/23/2025
4.0.804 569 7/23/2025
4.0.799 577 7/23/2025
4.0.792 197 7/14/2025
4.0.787 185 7/14/2025
4.0.784 203 7/10/2025
4.0.782 194 7/9/2025
4.0.779 198 7/9/2025
4.0.768 216 6/20/2025
4.0.761 230 5/19/2025
4.0.758 215 5/6/2025
4.0.749 225 4/21/2025
4.0.746 538 3/25/2025
4.0.743 227 3/17/2025
4.0.740 212 3/3/2025
4.0.737 228 3/3/2025
4.0.732 200 2/24/2025
4.0.729 179 2/24/2025
4.0.726 173 2/21/2025
4.0.720 168 2/21/2025
4.0.712 177 2/21/2025
4.0.707 183 2/17/2025
4.0.704 188 2/17/2025
4.0.699 168 2/17/2025
4.0.692 172 2/10/2025
4.0.689 167 2/3/2025
4.0.686 165 1/27/2025
4.0.683 160 1/27/2025
4.0.678 170 1/20/2025
4.0.675 157 1/20/2025
4.0.670 158 1/13/2025
4.0.667 144 1/13/2025
4.0.662 154 1/13/2025
4.0.657 149 1/13/2025
4.0.654 181 1/6/2025
4.0.651 181 1/6/2025
4.0.646 175 1/6/2025
4.0.639 173 12/31/2024
4.0.636 170 12/23/2024
4.0.633 166 12/23/2024
4.0.628 185 12/16/2024
4.0.625 181 12/16/2024
4.0.620 177 12/9/2024
4.0.617 172 12/9/2024
4.0.612 168 12/2/2024
4.0.609 171 11/25/2024
4.0.606 155 11/25/2024
4.0.601 165 11/25/2024
4.0.594 173 11/18/2024
4.0.591 191 11/11/2024
4.0.588 173 11/5/2024
4.0.585 181 10/28/2024
4.0.582 184 10/28/2024
4.0.577 172 10/21/2024
4.0.574 188 10/21/2024
4.0.569 298 10/14/2024
4.0.566 178 10/7/2024
4.0.563 178 10/3/2024
4.0.560 178 10/3/2024
4.0.557 188 10/3/2024
4.0.550 767 9/23/2024
4.0.547 169 9/23/2024
4.0.542 230 9/16/2024
4.0.539 186 9/16/2024
4.0.534 199 9/9/2024
4.0.531 187 9/9/2024
4.0.526 193 9/9/2024
4.0.519 168 9/9/2024
4.0.510 194 9/9/2024
4.0.499 228 9/2/2024
4.0.496 180 9/2/2024
4.0.491 188 8/27/2024
4.0.486 180 8/27/2024
4.0.481 174 8/27/2024
4.0.476 188 8/27/2024
4.0.471 192 8/27/2024
4.0.464 223 8/26/2024
4.0.453 222 8/24/2024
4.0.449 258 8/12/2024
4.0.446 167 8/5/2024
4.0.443 176 7/29/2024
4.0.440 206 7/22/2024
4.0.437 176 7/16/2024
4.0.434 173 7/16/2024
4.0.431 190 7/16/2024
4.0.426 184 7/16/2024
4.0.419 189 7/16/2024
4.0.412 188 7/16/2024
4.0.382 193 6/10/2024
4.0.375 202 6/3/2024
4.0.372 188 5/28/2024
4.0.369 171 5/28/2024
4.0.364 168 5/28/2024
4.0.357 200 5/28/2024
4.0.348 178 5/20/2024
4.0.345 182 5/20/2024
4.0.340 196 5/13/2024
4.0.337 215 5/6/2024
4.0.334 204 5/6/2024
4.0.331 205 4/30/2024
4.0.328 204 4/30/2024
4.0.323 219 4/30/2024
4.0.316 206 4/30/2024
4.0.313 180 4/29/2024
4.0.302 198 4/22/2024
4.0.299 201 4/22/2024
4.0.294 193 4/22/2024
4.0.291 177 4/22/2024
4.0.282 202 4/16/2024
4.0.279 178 4/16/2024
4.0.274 182 4/16/2024
4.0.267 198 4/16/2024
4.0.250 205 4/8/2024
4.0.247 175 4/8/2024
4.0.242 205 4/8/2024
4.0.235 198 3/25/2024
4.0.232 193 3/25/2024
4.0.227 205 3/25/2024
4.0.220 193 3/21/2024
4.0.210 216 2/26/2024
4.0.207 191 2/26/2024
4.0.202 190 2/26/2024
4.0.193 196 2/19/2024
4.0.186 210 2/19/2024
4.0.177 196 2/19/2024
4.0.160 204 2/14/2024
4.0.154 193 2/12/2024
4.0.151 178 2/12/2024
4.0.148 199 2/6/2024
4.0.145 193 2/5/2024
4.0.140 198 1/30/2024
4.0.135 188 1/29/2024
4.0.132 189 1/29/2024
4.0.127 189 1/29/2024
4.0.120 192 1/29/2024
4.0.112 212 1/22/2024
4.0.107 200 1/22/2024
4.0.104 204 1/22/2024
4.0.99 193 1/22/2024
4.0.90 222 1/16/2024
4.0.82 223 1/15/2024
4.0.77 201 1/15/2024
4.0.70 212 1/8/2024
4.0.67 208 1/8/2024
4.0.62 241 12/25/2023
4.0.59 216 12/25/2023
4.0.54 217 12/25/2023
4.0.47 202 12/25/2023
4.0.38 227 12/18/2023
4.0.35 208 12/18/2023
4.0.32 215 12/18/2023
4.0.25 198 12/18/2023
4.0.3 226 12/17/2023
3.0.467 222 12/14/2023
3.0.461 234 12/12/2023
3.0.458 235 12/11/2023
3.0.455 224 12/11/2023
3.0.452 248 12/11/2023
3.0.445 226 12/5/2023
3.0.440 205 12/5/2023
3.0.435 202 11/28/2023
3.0.432 199 11/28/2023
3.0.427 408 11/23/2023
3.0.424 203 11/21/2023
3.0.417 768 11/14/2023
3.0.411 179 11/14/2023
3.0.408 215 11/14/2023
3.0.400 224 11/10/2023
3.0.391 212 11/7/2023
3.0.388 212 11/7/2023
3.0.385 236 10/24/2023
3.0.382 223 10/17/2023
3.0.378 251 9/25/2023
3.0.373 234 9/24/2023
3.0.370 217 9/24/2023
3.0.365 229 9/24/2023
3.0.356 247 9/17/2023
3.0.353 228 9/17/2023
3.0.348 273 9/13/2023
3.0.338 240 9/13/2023
3.0.335 242 9/13/2023
3.0.332 246 9/13/2023
3.0.322 413 8/28/2023
3.0.314 449 8/13/2023
3.0.311 250 8/13/2023
3.0.308 269 8/13/2023
3.0.301 292 8/13/2023
3.0.291 361 8/3/2023
3.0.288 305 8/2/2023
3.0.283 325 7/28/2023
3.0.280 299 7/25/2023
3.0.277 287 7/25/2023
3.0.269 357 7/19/2023
3.0.266 273 7/19/2023
3.0.212 458 6/27/2023
3.0.209 338 6/26/2023
3.0.202 369 6/19/2023
3.0.193 292 6/18/2023
3.0.188 310 6/18/2023
3.0.183 288 6/18/2023
3.0.166 474 6/7/2023
3.0.156 473 5/31/2023
3.0.150 285 5/31/2023
3.0.147 303 5/31/2023
3.0.117 291 5/25/2023
3.0.114 564 5/4/2023
3.0.113 320 5/2/2023
3.0.109 327 4/28/2023
3.0.102 502 4/10/2023
3.0.97 343 4/9/2023
3.0.89 356 4/4/2023
3.0.84 469 4/3/2023
3.0.75 509 3/27/2023
3.0.72 439 3/25/2023
3.0.65 361 3/25/2023
3.0.56 361 3/25/2023
2.0.39 738 1/24/2023
2.0.38 835 1/9/2023
2.0.33 468 1/9/2023
2.0.32 457 1/9/2023
2.0.31 472 1/9/2023
2.0.26 491 12/14/2022
2.0.25 484 12/8/2022
2.0.24 461 12/8/2022
2.0.21 501 12/8/2022
2.0.12 1,438 11/1/2020
2.0.11 702 10/1/2020
2.0.10 806 9/1/2020
2.0.9 742 8/1/2020
2.0.8 878 7/1/2020
2.0.7 734 6/29/2020
1.0.58 840 6/1/2020
1.0.57 810 5/2/2020
1.0.56 798 5/2/2020
1.0.54 806 5/2/2020
1.0.52 753 5/2/2020
1.0.51 776 5/2/2020
1.0.50 811 5/2/2020
1.0.49 841 5/2/2020
1.0.48 765 5/2/2020
1.0.47 774 5/2/2020
1.0.46 803 5/1/2020
1.0.45 818 5/1/2020
1.0.44 795 5/1/2020
1.0.43 788 5/1/2020
1.0.42 773 5/1/2020
1.0.41 777 5/1/2020
1.0.40 802 5/1/2020
1.0.39 793 5/1/2020
1.0.38 785 5/1/2020
1.0.37 838 5/1/2020
1.0.36 780 5/1/2020
1.0.35 766 5/1/2020
1.0.34 780 5/1/2020
1.0.33 774 5/1/2020
1.0.32 737 5/1/2020
1.0.31 791 5/1/2020
1.0.30 739 5/1/2020
1.0.29 770 5/1/2020
1.0.28 764 5/1/2020
1.0.27 816 5/1/2020
1.0.26 821 5/1/2020
1.0.25 892 5/1/2020
1.0.24 804 5/1/2020
1.0.22 825 5/1/2020
1.0.21 770 4/24/2020
1.0.20 784 4/24/2020
1.0.19 776 4/24/2020
1.0.12 1,189 9/19/2018
1.0.9 1,163 8/16/2018
1.0.8 1,158 8/16/2018