CEPAberto 3.0.356

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

CEP Aberto

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 Framework net48 is compatible.  net481 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.792 50 7/14/2025
4.0.787 46 7/14/2025
4.0.784 124 7/10/2025
4.0.782 121 7/9/2025
4.0.779 122 7/9/2025
4.0.768 128 6/20/2025
4.0.761 148 5/19/2025
4.0.758 149 5/6/2025
4.0.749 162 4/21/2025
4.0.746 486 3/25/2025
4.0.743 156 3/17/2025
4.0.740 150 3/3/2025
4.0.737 154 3/3/2025
4.0.732 141 2/24/2025
4.0.729 117 2/24/2025
4.0.726 120 2/21/2025
4.0.720 107 2/21/2025
4.0.712 116 2/21/2025
4.0.707 122 2/17/2025
4.0.704 120 2/17/2025
4.0.699 109 2/17/2025
4.0.692 122 2/10/2025
4.0.689 102 2/3/2025
4.0.686 102 1/27/2025
4.0.683 104 1/27/2025
4.0.678 105 1/20/2025
4.0.675 106 1/20/2025
4.0.670 108 1/13/2025
4.0.667 90 1/13/2025
4.0.662 88 1/13/2025
4.0.657 90 1/13/2025
4.0.654 118 1/6/2025
4.0.651 113 1/6/2025
4.0.646 115 1/6/2025
4.0.639 114 12/31/2024
4.0.636 104 12/23/2024
4.0.633 105 12/23/2024
4.0.628 126 12/16/2024
4.0.625 115 12/16/2024
4.0.620 115 12/9/2024
4.0.617 113 12/9/2024
4.0.612 111 12/2/2024
4.0.609 116 11/25/2024
4.0.606 96 11/25/2024
4.0.601 106 11/25/2024
4.0.594 114 11/18/2024
4.0.591 122 11/11/2024
4.0.588 118 11/5/2024
4.0.585 128 10/28/2024
4.0.582 120 10/28/2024
4.0.577 113 10/21/2024
4.0.574 123 10/21/2024
4.0.569 238 10/14/2024
4.0.566 121 10/7/2024
4.0.563 116 10/3/2024
4.0.560 117 10/3/2024
4.0.557 120 10/3/2024
4.0.550 590 9/23/2024
4.0.547 109 9/23/2024
4.0.542 164 9/16/2024
4.0.539 131 9/16/2024
4.0.534 136 9/9/2024
4.0.531 127 9/9/2024
4.0.526 131 9/9/2024
4.0.519 111 9/9/2024
4.0.510 133 9/9/2024
4.0.499 169 9/2/2024
4.0.496 124 9/2/2024
4.0.491 130 8/27/2024
4.0.486 124 8/27/2024
4.0.481 120 8/27/2024
4.0.476 127 8/27/2024
4.0.471 130 8/27/2024
4.0.464 161 8/26/2024
4.0.453 165 8/24/2024
4.0.449 183 8/12/2024
4.0.446 110 8/5/2024
4.0.443 112 7/29/2024
4.0.440 146 7/22/2024
4.0.437 123 7/16/2024
4.0.434 121 7/16/2024
4.0.431 130 7/16/2024
4.0.426 124 7/16/2024
4.0.419 124 7/16/2024
4.0.412 130 7/16/2024
4.0.382 129 6/10/2024
4.0.375 144 6/3/2024
4.0.372 126 5/28/2024
4.0.369 122 5/28/2024
4.0.364 117 5/28/2024
4.0.357 138 5/28/2024
4.0.348 118 5/20/2024
4.0.345 118 5/20/2024
4.0.340 136 5/13/2024
4.0.337 154 5/6/2024
4.0.334 146 5/6/2024
4.0.331 144 4/30/2024
4.0.328 146 4/30/2024
4.0.323 160 4/30/2024
4.0.316 149 4/30/2024
4.0.313 124 4/29/2024
4.0.302 142 4/22/2024
4.0.299 137 4/22/2024
4.0.294 138 4/22/2024
4.0.291 121 4/22/2024
4.0.282 149 4/16/2024
4.0.279 130 4/16/2024
4.0.274 134 4/16/2024
4.0.267 140 4/16/2024
4.0.250 146 4/8/2024
4.0.247 116 4/8/2024
4.0.242 147 4/8/2024
4.0.235 135 3/25/2024
4.0.232 134 3/25/2024
4.0.227 145 3/25/2024
4.0.220 144 3/21/2024
4.0.210 158 2/26/2024
4.0.207 147 2/26/2024
4.0.202 140 2/26/2024
4.0.193 143 2/19/2024
4.0.186 149 2/19/2024
4.0.177 139 2/19/2024
4.0.160 146 2/14/2024
4.0.154 136 2/12/2024
4.0.151 125 2/12/2024
4.0.148 143 2/6/2024
4.0.145 134 2/5/2024
4.0.140 139 1/30/2024
4.0.135 129 1/29/2024
4.0.132 135 1/29/2024
4.0.127 129 1/29/2024
4.0.120 134 1/29/2024
4.0.112 159 1/22/2024
4.0.107 137 1/22/2024
4.0.104 139 1/22/2024
4.0.99 143 1/22/2024
4.0.90 164 1/16/2024
4.0.82 159 1/15/2024
4.0.77 145 1/15/2024
4.0.70 157 1/8/2024
4.0.67 147 1/8/2024
4.0.62 189 12/25/2023
4.0.59 157 12/25/2023
4.0.54 161 12/25/2023
4.0.47 150 12/25/2023
4.0.38 171 12/18/2023
4.0.35 147 12/18/2023
4.0.32 154 12/18/2023
4.0.25 139 12/18/2023
4.0.3 165 12/17/2023
3.0.467 163 12/14/2023
3.0.461 175 12/12/2023
3.0.458 177 12/11/2023
3.0.455 169 12/11/2023
3.0.452 187 12/11/2023
3.0.445 179 12/5/2023
3.0.440 161 12/5/2023
3.0.435 157 11/28/2023
3.0.432 152 11/28/2023
3.0.427 327 11/23/2023
3.0.424 158 11/21/2023
3.0.417 719 11/14/2023
3.0.411 136 11/14/2023
3.0.408 162 11/14/2023
3.0.400 177 11/10/2023
3.0.391 166 11/7/2023
3.0.388 160 11/7/2023
3.0.385 192 10/24/2023
3.0.382 173 10/17/2023
3.0.378 205 9/25/2023
3.0.373 184 9/24/2023
3.0.370 182 9/24/2023
3.0.365 184 9/24/2023
3.0.356 199 9/17/2023
3.0.353 178 9/17/2023
3.0.348 217 9/13/2023
3.0.338 205 9/13/2023
3.0.335 197 9/13/2023
3.0.332 198 9/13/2023
3.0.322 367 8/28/2023
3.0.314 389 8/13/2023
3.0.311 201 8/13/2023
3.0.308 222 8/13/2023
3.0.301 225 8/13/2023
3.0.291 301 8/3/2023
3.0.288 242 8/2/2023
3.0.283 269 7/28/2023
3.0.280 235 7/25/2023
3.0.277 225 7/25/2023
3.0.269 295 7/19/2023
3.0.266 206 7/19/2023
3.0.212 387 6/27/2023
3.0.209 273 6/26/2023
3.0.202 300 6/19/2023
3.0.193 226 6/18/2023
3.0.188 243 6/18/2023
3.0.183 223 6/18/2023
3.0.166 402 6/7/2023
3.0.156 396 5/31/2023
3.0.150 212 5/31/2023
3.0.147 230 5/31/2023
3.0.117 215 5/25/2023
3.0.114 487 5/4/2023
3.0.113 243 5/2/2023
3.0.109 252 4/28/2023
3.0.102 430 4/10/2023
3.0.97 268 4/9/2023
3.0.89 279 4/4/2023
3.0.84 398 4/3/2023
3.0.75 426 3/27/2023
3.0.72 360 3/25/2023
3.0.65 295 3/25/2023
3.0.56 285 3/25/2023
2.0.39 665 1/24/2023
2.0.38 737 1/9/2023
2.0.33 383 1/9/2023
2.0.32 377 1/9/2023
2.0.31 372 1/9/2023
2.0.26 414 12/14/2022
2.0.25 396 12/8/2022
2.0.24 389 12/8/2022
2.0.21 399 12/8/2022
2.0.12 1,315 11/1/2020
2.0.11 607 10/1/2020
2.0.10 675 9/1/2020
2.0.9 618 8/1/2020
2.0.8 757 7/1/2020
2.0.7 617 6/29/2020
1.0.58 727 6/1/2020
1.0.57 688 5/2/2020
1.0.56 676 5/2/2020
1.0.54 702 5/2/2020
1.0.52 641 5/2/2020
1.0.51 670 5/2/2020
1.0.50 683 5/2/2020
1.0.49 729 5/2/2020
1.0.48 665 5/2/2020
1.0.47 677 5/2/2020
1.0.46 687 5/1/2020
1.0.45 697 5/1/2020
1.0.44 676 5/1/2020
1.0.43 691 5/1/2020
1.0.42 660 5/1/2020
1.0.41 674 5/1/2020
1.0.40 699 5/1/2020
1.0.39 687 5/1/2020
1.0.38 683 5/1/2020
1.0.37 731 5/1/2020
1.0.36 665 5/1/2020
1.0.35 669 5/1/2020
1.0.34 671 5/1/2020
1.0.33 677 5/1/2020
1.0.32 643 5/1/2020
1.0.31 664 5/1/2020
1.0.30 642 5/1/2020
1.0.29 668 5/1/2020
1.0.28 655 5/1/2020
1.0.27 697 5/1/2020
1.0.26 721 5/1/2020
1.0.25 768 5/1/2020
1.0.24 699 5/1/2020
1.0.22 721 5/1/2020
1.0.21 663 4/24/2020
1.0.20 678 4/24/2020
1.0.19 656 4/24/2020
1.0.12 1,086 9/19/2018
1.0.9 1,060 8/16/2018
1.0.8 1,058 8/16/2018