CEPAberto 3.0.365

There is a newer version of this package available.
See the version list below for details.
dotnet add package CEPAberto --version 3.0.365
                    
NuGet\Install-Package CEPAberto -Version 3.0.365
                    
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.365" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CEPAberto" Version="3.0.365" />
                    
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.365
                    
#r "nuget: CEPAberto, 3.0.365"
                    
#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.
#addin nuget:?package=CEPAberto&version=3.0.365
                    
Install CEPAberto as a Cake Addin
#tool nuget:?package=CEPAberto&version=3.0.365
                    
Install CEPAberto 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.758 110 5/6/2025
4.0.749 150 4/21/2025
4.0.746 476 3/25/2025
4.0.743 146 3/17/2025
4.0.740 140 3/3/2025
4.0.737 143 3/3/2025
4.0.732 127 2/24/2025
4.0.729 103 2/24/2025
4.0.726 105 2/21/2025
4.0.720 95 2/21/2025
4.0.712 98 2/21/2025
4.0.707 108 2/17/2025
4.0.704 106 2/17/2025
4.0.699 92 2/17/2025
4.0.692 105 2/10/2025
4.0.689 91 2/3/2025
4.0.686 89 1/27/2025
4.0.683 92 1/27/2025
4.0.678 93 1/20/2025
4.0.675 94 1/20/2025
4.0.670 95 1/13/2025
4.0.667 79 1/13/2025
4.0.662 74 1/13/2025
4.0.657 80 1/13/2025
4.0.654 107 1/6/2025
4.0.651 100 1/6/2025
4.0.646 103 1/6/2025
4.0.639 98 12/31/2024
4.0.636 93 12/23/2024
4.0.633 94 12/23/2024
4.0.628 114 12/16/2024
4.0.625 103 12/16/2024
4.0.620 104 12/9/2024
4.0.617 99 12/9/2024
4.0.612 97 12/2/2024
4.0.609 105 11/25/2024
4.0.606 85 11/25/2024
4.0.601 94 11/25/2024
4.0.594 101 11/18/2024
4.0.591 111 11/11/2024
4.0.588 105 11/5/2024
4.0.585 117 10/28/2024
4.0.582 108 10/28/2024
4.0.577 103 10/21/2024
4.0.574 110 10/21/2024
4.0.569 227 10/14/2024
4.0.566 109 10/7/2024
4.0.563 105 10/3/2024
4.0.560 101 10/3/2024
4.0.557 107 10/3/2024
4.0.550 508 9/23/2024
4.0.547 97 9/23/2024
4.0.542 151 9/16/2024
4.0.539 120 9/16/2024
4.0.534 124 9/9/2024
4.0.531 116 9/9/2024
4.0.526 118 9/9/2024
4.0.519 101 9/9/2024
4.0.510 120 9/9/2024
4.0.499 159 9/2/2024
4.0.496 112 9/2/2024
4.0.491 115 8/27/2024
4.0.486 114 8/27/2024
4.0.481 109 8/27/2024
4.0.476 116 8/27/2024
4.0.471 117 8/27/2024
4.0.464 147 8/26/2024
4.0.453 149 8/24/2024
4.0.449 172 8/12/2024
4.0.446 100 8/5/2024
4.0.443 99 7/29/2024
4.0.440 135 7/22/2024
4.0.437 112 7/16/2024
4.0.434 109 7/16/2024
4.0.431 116 7/16/2024
4.0.426 112 7/16/2024
4.0.419 113 7/16/2024
4.0.412 118 7/16/2024
4.0.382 119 6/10/2024
4.0.375 126 6/3/2024
4.0.372 115 5/28/2024
4.0.369 111 5/28/2024
4.0.364 104 5/28/2024
4.0.357 124 5/28/2024
4.0.348 107 5/20/2024
4.0.345 105 5/20/2024
4.0.340 126 5/13/2024
4.0.337 142 5/6/2024
4.0.334 136 5/6/2024
4.0.331 133 4/30/2024
4.0.328 135 4/30/2024
4.0.323 149 4/30/2024
4.0.316 137 4/30/2024
4.0.313 114 4/29/2024
4.0.302 130 4/22/2024
4.0.299 127 4/22/2024
4.0.294 127 4/22/2024
4.0.291 111 4/22/2024
4.0.282 136 4/16/2024
4.0.279 120 4/16/2024
4.0.274 121 4/16/2024
4.0.267 129 4/16/2024
4.0.250 133 4/8/2024
4.0.247 105 4/8/2024
4.0.242 137 4/8/2024
4.0.235 125 3/25/2024
4.0.232 124 3/25/2024
4.0.227 134 3/25/2024
4.0.220 132 3/21/2024
4.0.210 145 2/26/2024
4.0.207 135 2/26/2024
4.0.202 127 2/26/2024
4.0.193 133 2/19/2024
4.0.186 136 2/19/2024
4.0.177 127 2/19/2024
4.0.160 136 2/14/2024
4.0.154 126 2/12/2024
4.0.151 115 2/12/2024
4.0.148 126 2/6/2024
4.0.145 124 2/5/2024
4.0.140 128 1/30/2024
4.0.135 116 1/29/2024
4.0.132 121 1/29/2024
4.0.127 119 1/29/2024
4.0.120 124 1/29/2024
4.0.112 142 1/22/2024
4.0.107 127 1/22/2024
4.0.104 129 1/22/2024
4.0.99 129 1/22/2024
4.0.90 143 1/16/2024
4.0.82 144 1/15/2024
4.0.77 134 1/15/2024
4.0.70 146 1/8/2024
4.0.67 135 1/8/2024
4.0.62 180 12/25/2023
4.0.59 144 12/25/2023
4.0.54 151 12/25/2023
4.0.47 137 12/25/2023
4.0.38 162 12/18/2023
4.0.35 138 12/18/2023
4.0.32 145 12/18/2023
4.0.25 128 12/18/2023
4.0.3 156 12/17/2023
3.0.467 152 12/14/2023
3.0.461 162 12/12/2023
3.0.458 167 12/11/2023
3.0.455 156 12/11/2023
3.0.452 178 12/11/2023
3.0.445 174 12/5/2023
3.0.440 155 12/5/2023
3.0.435 152 11/28/2023
3.0.432 147 11/28/2023
3.0.427 310 11/23/2023
3.0.424 152 11/21/2023
3.0.417 714 11/14/2023
3.0.411 128 11/14/2023
3.0.408 152 11/14/2023
3.0.400 172 11/10/2023
3.0.391 161 11/7/2023
3.0.388 154 11/7/2023
3.0.385 183 10/24/2023
3.0.382 161 10/17/2023
3.0.378 192 9/25/2023
3.0.373 172 9/24/2023
3.0.370 169 9/24/2023
3.0.365 169 9/24/2023
3.0.356 181 9/17/2023
3.0.353 168 9/17/2023
3.0.348 205 9/13/2023
3.0.338 195 9/13/2023
3.0.335 186 9/13/2023
3.0.332 187 9/13/2023
3.0.322 353 8/28/2023
3.0.314 374 8/13/2023
3.0.311 186 8/13/2023
3.0.308 205 8/13/2023
3.0.301 208 8/13/2023
3.0.291 284 8/3/2023
3.0.288 225 8/2/2023
3.0.283 250 7/28/2023
3.0.280 218 7/25/2023
3.0.277 208 7/25/2023
3.0.269 274 7/19/2023
3.0.266 189 7/19/2023
3.0.212 371 6/27/2023
3.0.209 255 6/26/2023
3.0.202 279 6/19/2023
3.0.193 206 6/18/2023
3.0.188 225 6/18/2023
3.0.183 204 6/18/2023
3.0.166 385 6/7/2023
3.0.156 378 5/31/2023
3.0.150 194 5/31/2023
3.0.147 213 5/31/2023
3.0.117 196 5/25/2023
3.0.114 468 5/4/2023
3.0.113 224 5/2/2023
3.0.109 234 4/28/2023
3.0.102 410 4/10/2023
3.0.97 247 4/9/2023
3.0.89 261 4/4/2023
3.0.84 380 4/3/2023
3.0.75 405 3/27/2023
3.0.72 340 3/25/2023
3.0.65 277 3/25/2023
3.0.56 264 3/25/2023
2.0.39 644 1/24/2023
2.0.38 719 1/9/2023
2.0.33 362 1/9/2023
2.0.32 358 1/9/2023
2.0.31 353 1/9/2023
2.0.26 390 12/14/2022
2.0.25 379 12/8/2022
2.0.24 371 12/8/2022
2.0.21 379 12/8/2022
2.0.12 1,285 11/1/2020
2.0.11 579 10/1/2020
2.0.10 648 9/1/2020
2.0.9 590 8/1/2020
2.0.8 731 7/1/2020
2.0.7 591 6/29/2020
1.0.58 697 6/1/2020
1.0.57 655 5/2/2020
1.0.56 646 5/2/2020
1.0.54 669 5/2/2020
1.0.52 611 5/2/2020
1.0.51 640 5/2/2020
1.0.50 653 5/2/2020
1.0.49 699 5/2/2020
1.0.48 634 5/2/2020
1.0.47 645 5/2/2020
1.0.46 655 5/1/2020
1.0.45 665 5/1/2020
1.0.44 642 5/1/2020
1.0.43 661 5/1/2020
1.0.42 629 5/1/2020
1.0.41 643 5/1/2020
1.0.40 668 5/1/2020
1.0.39 653 5/1/2020
1.0.38 652 5/1/2020
1.0.37 698 5/1/2020
1.0.36 631 5/1/2020
1.0.35 637 5/1/2020
1.0.34 640 5/1/2020
1.0.33 644 5/1/2020
1.0.32 609 5/1/2020
1.0.31 631 5/1/2020
1.0.30 611 5/1/2020
1.0.29 635 5/1/2020
1.0.28 625 5/1/2020
1.0.27 665 5/1/2020
1.0.26 690 5/1/2020
1.0.25 736 5/1/2020
1.0.24 665 5/1/2020
1.0.22 691 5/1/2020
1.0.21 626 4/24/2020
1.0.20 648 4/24/2020
1.0.19 625 4/24/2020
1.0.12 1,040 9/19/2018
1.0.9 1,020 8/16/2018
1.0.8 1,017 8/16/2018