CEPAberto 4.0.606

There is a newer version of this package available.
See the version list below for details.
dotnet add package CEPAberto --version 4.0.606                
NuGet\Install-Package CEPAberto -Version 4.0.606                
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.606" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CEPAberto --version 4.0.606                
#r "nuget: CEPAberto, 4.0.606"                
#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.
// Install CEPAberto as a Cake Addin
#addin nuget:?package=CEPAberto&version=4.0.606

// Install CEPAberto as a Cake Tool
#tool nuget:?package=CEPAberto&version=4.0.606                

CEP Aberto SDK .NET

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

Implements all V3 features

GitHub license time tracker

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 is compatible.  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. 
.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.654 76 1/6/2025
4.0.651 70 1/6/2025
4.0.646 73 1/6/2025
4.0.639 74 12/31/2024
4.0.636 76 12/23/2024
4.0.633 76 12/23/2024
4.0.628 89 12/16/2024
4.0.625 79 12/16/2024
4.0.620 87 12/9/2024
4.0.617 82 12/9/2024
4.0.612 84 12/2/2024
4.0.609 92 11/25/2024
4.0.606 72 11/25/2024
4.0.601 77 11/25/2024
4.0.594 86 11/18/2024
4.0.591 93 11/11/2024
4.0.588 91 11/5/2024
4.0.585 104 10/28/2024
4.0.582 94 10/28/2024
4.0.577 85 10/21/2024
4.0.574 96 10/21/2024
4.0.569 215 10/14/2024
4.0.566 97 10/7/2024
4.0.563 91 10/3/2024
4.0.560 91 10/3/2024
4.0.557 97 10/3/2024
4.0.550 294 9/23/2024
4.0.547 87 9/23/2024
4.0.542 137 9/16/2024
4.0.539 109 9/16/2024
4.0.534 115 9/9/2024
4.0.531 106 9/9/2024
4.0.526 109 9/9/2024
4.0.519 92 9/9/2024
4.0.510 110 9/9/2024
4.0.499 149 9/2/2024
4.0.496 102 9/2/2024
4.0.491 102 8/27/2024
4.0.486 103 8/27/2024
4.0.481 102 8/27/2024
4.0.476 104 8/27/2024
4.0.471 106 8/27/2024
4.0.464 136 8/26/2024
4.0.453 137 8/24/2024
4.0.449 158 8/12/2024
4.0.446 91 8/5/2024
4.0.443 89 7/29/2024
4.0.440 123 7/22/2024
4.0.437 103 7/16/2024
4.0.434 100 7/16/2024
4.0.431 105 7/16/2024
4.0.426 99 7/16/2024
4.0.419 101 7/16/2024
4.0.412 108 7/16/2024
4.0.382 111 6/10/2024
4.0.375 116 6/3/2024
4.0.372 106 5/28/2024
4.0.369 100 5/28/2024
4.0.364 94 5/28/2024
4.0.357 115 5/28/2024
4.0.348 96 5/20/2024
4.0.345 93 5/20/2024
4.0.340 118 5/13/2024
4.0.337 134 5/6/2024
4.0.334 128 5/6/2024
4.0.331 122 4/30/2024
4.0.328 127 4/30/2024
4.0.323 127 4/30/2024
4.0.316 126 4/30/2024
4.0.313 105 4/29/2024
4.0.302 121 4/22/2024
4.0.299 119 4/22/2024
4.0.294 116 4/22/2024
4.0.291 103 4/22/2024
4.0.282 124 4/16/2024
4.0.279 113 4/16/2024
4.0.274 111 4/16/2024
4.0.267 121 4/16/2024
4.0.250 125 4/8/2024
4.0.247 96 4/8/2024
4.0.242 127 4/8/2024
4.0.235 116 3/25/2024
4.0.232 114 3/25/2024
4.0.227 123 3/25/2024
4.0.220 123 3/21/2024
4.0.210 134 2/26/2024
4.0.207 125 2/26/2024
4.0.202 118 2/26/2024
4.0.193 120 2/19/2024
4.0.186 122 2/19/2024
4.0.177 113 2/19/2024
4.0.160 125 2/14/2024
4.0.154 115 2/12/2024
4.0.151 107 2/12/2024
4.0.148 115 2/6/2024
4.0.145 115 2/5/2024
4.0.140 119 1/30/2024
4.0.135 106 1/29/2024
4.0.132 111 1/29/2024
4.0.127 107 1/29/2024
4.0.120 114 1/29/2024
4.0.112 127 1/22/2024
4.0.107 117 1/22/2024
4.0.104 120 1/22/2024
4.0.99 118 1/22/2024
4.0.90 127 1/16/2024
4.0.82 133 1/15/2024
4.0.77 125 1/15/2024
4.0.70 134 1/8/2024
4.0.67 125 1/8/2024
4.0.62 165 12/25/2023
4.0.59 135 12/25/2023
4.0.54 142 12/25/2023
4.0.47 126 12/25/2023
4.0.38 153 12/18/2023
4.0.35 129 12/18/2023
4.0.32 135 12/18/2023
4.0.25 120 12/18/2023
4.0.3 146 12/17/2023
3.0.467 142 12/14/2023
3.0.461 152 12/12/2023
3.0.458 156 12/11/2023
3.0.455 143 12/11/2023
3.0.452 169 12/11/2023
3.0.445 171 12/5/2023
3.0.440 152 12/5/2023
3.0.435 148 11/28/2023
3.0.432 144 11/28/2023
3.0.427 272 11/23/2023
3.0.424 148 11/21/2023
3.0.417 710 11/14/2023
3.0.411 127 11/14/2023
3.0.408 150 11/14/2023
3.0.400 171 11/10/2023
3.0.391 157 11/7/2023
3.0.388 150 11/7/2023
3.0.385 182 10/24/2023
3.0.382 157 10/17/2023
3.0.378 191 9/25/2023
3.0.373 170 9/24/2023
3.0.370 166 9/24/2023
3.0.365 167 9/24/2023
3.0.356 180 9/17/2023
3.0.353 166 9/17/2023
3.0.348 203 9/13/2023
3.0.338 194 9/13/2023
3.0.335 185 9/13/2023
3.0.332 183 9/13/2023
3.0.322 349 8/28/2023
3.0.314 370 8/13/2023
3.0.311 180 8/13/2023
3.0.308 201 8/13/2023
3.0.301 204 8/13/2023
3.0.291 279 8/3/2023
3.0.288 222 8/2/2023
3.0.283 248 7/28/2023
3.0.280 216 7/25/2023
3.0.277 205 7/25/2023
3.0.269 269 7/19/2023
3.0.266 184 7/19/2023
3.0.212 368 6/27/2023
3.0.209 248 6/26/2023
3.0.202 272 6/19/2023
3.0.193 202 6/18/2023
3.0.188 220 6/18/2023
3.0.183 201 6/18/2023
3.0.166 376 6/7/2023
3.0.156 370 5/31/2023
3.0.150 185 5/31/2023
3.0.147 205 5/31/2023
3.0.117 187 5/25/2023
3.0.114 457 5/4/2023
3.0.113 215 5/2/2023
3.0.109 224 4/28/2023
3.0.102 399 4/10/2023
3.0.97 236 4/9/2023
3.0.89 252 4/4/2023
3.0.84 369 4/3/2023
3.0.75 397 3/27/2023
3.0.72 327 3/25/2023
3.0.65 266 3/25/2023
3.0.56 255 3/25/2023
2.0.39 632 1/24/2023
2.0.38 704 1/9/2023
2.0.33 349 1/9/2023
2.0.32 347 1/9/2023
2.0.31 341 1/9/2023
2.0.26 373 12/14/2022
2.0.25 368 12/8/2022
2.0.24 360 12/8/2022
2.0.21 368 12/8/2022
2.0.12 1,248 11/1/2020
2.0.11 547 10/1/2020
2.0.10 617 9/1/2020
2.0.9 557 8/1/2020
2.0.8 700 7/1/2020
2.0.7 558 6/29/2020
1.0.58 663 6/1/2020
1.0.57 621 5/2/2020
1.0.56 612 5/2/2020
1.0.54 634 5/2/2020
1.0.52 576 5/2/2020
1.0.51 605 5/2/2020
1.0.50 618 5/2/2020
1.0.49 665 5/2/2020
1.0.48 600 5/2/2020
1.0.47 610 5/2/2020
1.0.46 621 5/1/2020
1.0.45 631 5/1/2020
1.0.44 609 5/1/2020
1.0.43 628 5/1/2020
1.0.42 595 5/1/2020
1.0.41 609 5/1/2020
1.0.40 632 5/1/2020
1.0.39 620 5/1/2020
1.0.38 619 5/1/2020
1.0.37 664 5/1/2020
1.0.36 597 5/1/2020
1.0.35 604 5/1/2020
1.0.34 606 5/1/2020
1.0.33 610 5/1/2020
1.0.32 574 5/1/2020
1.0.31 597 5/1/2020
1.0.30 576 5/1/2020
1.0.29 600 5/1/2020
1.0.28 591 5/1/2020
1.0.27 631 5/1/2020
1.0.26 656 5/1/2020
1.0.25 702 5/1/2020
1.0.24 631 5/1/2020
1.0.22 657 5/1/2020
1.0.21 586 4/24/2020
1.0.20 613 4/24/2020
1.0.19 592 4/24/2020
1.0.12 989 9/19/2018
1.0.9 970 8/16/2018
1.0.8 965 8/16/2018