CEPAberto 3.0.75

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

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

CEP Aberto

CEP Aberto API wrapper written in C# (.NET). Implements all V3 features Fully tested!

GitHub license

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

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.302 58 4/22/2024
4.0.299 73 4/22/2024
4.0.294 73 4/22/2024
4.0.291 72 4/22/2024
4.0.282 79 4/16/2024
4.0.279 74 4/16/2024
4.0.274 71 4/16/2024
4.0.267 82 4/16/2024
4.0.250 87 4/8/2024
4.0.247 73 4/8/2024
4.0.242 70 4/8/2024
4.0.235 79 3/25/2024
4.0.232 75 3/25/2024
4.0.227 80 3/25/2024
4.0.220 85 3/21/2024
4.0.210 90 2/26/2024
4.0.207 81 2/26/2024
4.0.202 76 2/26/2024
4.0.193 79 2/19/2024
4.0.186 80 2/19/2024
4.0.177 73 2/19/2024
4.0.160 79 2/14/2024
4.0.154 73 2/12/2024
4.0.151 65 2/12/2024
4.0.148 72 2/6/2024
4.0.145 75 2/5/2024
4.0.140 83 1/30/2024
4.0.135 70 1/29/2024
4.0.132 69 1/29/2024
4.0.127 71 1/29/2024
4.0.120 72 1/29/2024
4.0.112 87 1/22/2024
4.0.107 77 1/22/2024
4.0.104 65 1/22/2024
4.0.99 80 1/22/2024
4.0.90 79 1/16/2024
4.0.82 76 1/15/2024
4.0.77 82 1/15/2024
4.0.70 93 1/8/2024
4.0.67 87 1/8/2024
4.0.62 125 12/25/2023
4.0.59 95 12/25/2023
4.0.54 99 12/25/2023
4.0.47 89 12/25/2023
4.0.38 110 12/18/2023
4.0.35 95 12/18/2023
4.0.32 98 12/18/2023
4.0.25 84 12/18/2023
4.0.3 111 12/17/2023
3.0.467 103 12/14/2023
3.0.461 108 12/12/2023
3.0.458 120 12/11/2023
3.0.455 104 12/11/2023
3.0.452 114 12/11/2023
3.0.445 138 12/5/2023
3.0.440 119 12/5/2023
3.0.435 123 11/28/2023
3.0.432 106 11/28/2023
3.0.427 177 11/23/2023
3.0.424 111 11/21/2023
3.0.417 182 11/14/2023
3.0.411 93 11/14/2023
3.0.408 113 11/14/2023
3.0.400 134 11/10/2023
3.0.391 117 11/7/2023
3.0.388 116 11/7/2023
3.0.385 144 10/24/2023
3.0.382 124 10/17/2023
3.0.378 151 9/25/2023
3.0.373 132 9/24/2023
3.0.370 126 9/24/2023
3.0.365 130 9/24/2023
3.0.356 146 9/17/2023
3.0.353 129 9/17/2023
3.0.348 165 9/13/2023
3.0.338 158 9/13/2023
3.0.335 143 9/13/2023
3.0.332 148 9/13/2023
3.0.322 315 8/28/2023
3.0.314 338 8/13/2023
3.0.311 145 8/13/2023
3.0.308 164 8/13/2023
3.0.301 170 8/13/2023
3.0.291 245 8/3/2023
3.0.288 185 8/2/2023
3.0.283 212 7/28/2023
3.0.280 177 7/25/2023
3.0.277 168 7/25/2023
3.0.269 230 7/19/2023
3.0.266 149 7/19/2023
3.0.212 328 6/27/2023
3.0.209 214 6/26/2023
3.0.202 233 6/19/2023
3.0.193 167 6/18/2023
3.0.188 175 6/18/2023
3.0.183 165 6/18/2023
3.0.166 337 6/7/2023
3.0.156 334 5/31/2023
3.0.150 153 5/31/2023
3.0.147 169 5/31/2023
3.0.117 154 5/25/2023
3.0.114 423 5/4/2023
3.0.113 175 5/2/2023
3.0.109 188 4/28/2023
3.0.102 366 4/10/2023
3.0.97 197 4/9/2023
3.0.89 212 4/4/2023
3.0.84 335 4/3/2023
3.0.75 360 3/27/2023
3.0.72 281 3/25/2023
3.0.65 229 3/25/2023
3.0.56 231 3/25/2023
2.0.39 597 1/24/2023
2.0.38 673 1/9/2023
2.0.33 317 1/9/2023
2.0.32 312 1/9/2023
2.0.31 304 1/9/2023
2.0.26 338 12/14/2022
2.0.25 325 12/8/2022
2.0.24 325 12/8/2022
2.0.21 333 12/8/2022
2.0.12 1,201 11/1/2020
2.0.11 506 10/1/2020
2.0.10 578 9/1/2020
2.0.9 520 8/1/2020
2.0.8 674 7/1/2020
2.0.7 499 6/29/2020
1.0.58 624 6/1/2020
1.0.57 582 5/2/2020
1.0.56 575 5/2/2020
1.0.54 596 5/2/2020
1.0.52 540 5/2/2020
1.0.51 567 5/2/2020
1.0.50 583 5/2/2020
1.0.49 630 5/2/2020
1.0.48 564 5/2/2020
1.0.47 568 5/2/2020
1.0.46 584 5/1/2020
1.0.45 587 5/1/2020
1.0.44 571 5/1/2020
1.0.43 590 5/1/2020
1.0.42 558 5/1/2020
1.0.41 568 5/1/2020
1.0.40 594 5/1/2020
1.0.39 574 5/1/2020
1.0.38 582 5/1/2020
1.0.37 629 5/1/2020
1.0.36 554 5/1/2020
1.0.35 569 5/1/2020
1.0.34 568 5/1/2020
1.0.33 574 5/1/2020
1.0.32 539 5/1/2020
1.0.31 557 5/1/2020
1.0.30 538 5/1/2020
1.0.29 562 5/1/2020
1.0.28 553 5/1/2020
1.0.27 582 5/1/2020
1.0.26 613 5/1/2020
1.0.25 664 5/1/2020
1.0.24 593 5/1/2020
1.0.22 621 5/1/2020
1.0.21 548 4/24/2020
1.0.20 576 4/24/2020
1.0.19 553 4/24/2020
1.0.12 940 9/19/2018
1.0.9 925 8/16/2018
1.0.8 918 8/16/2018