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.
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.
// Install CEPAberto as a Cake Addin
#addin nuget:?package=CEPAberto&version=3.0.356

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

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.612 57 12/2/2024
4.0.609 75 11/25/2024
4.0.606 57 11/25/2024
4.0.601 62 11/25/2024
4.0.594 75 11/18/2024
4.0.591 83 11/11/2024
4.0.588 79 11/5/2024
4.0.585 87 10/28/2024
4.0.582 82 10/28/2024
4.0.577 76 10/21/2024
4.0.574 84 10/21/2024
4.0.569 207 10/14/2024
4.0.566 88 10/7/2024
4.0.563 81 10/3/2024
4.0.560 78 10/3/2024
4.0.557 85 10/3/2024
4.0.550 243 9/23/2024
4.0.547 77 9/23/2024
4.0.542 126 9/16/2024
4.0.539 99 9/16/2024
4.0.534 102 9/9/2024
4.0.531 95 9/9/2024
4.0.526 96 9/9/2024
4.0.519 77 9/9/2024
4.0.510 95 9/9/2024
4.0.499 136 9/2/2024
4.0.496 89 9/2/2024
4.0.491 94 8/27/2024
4.0.486 93 8/27/2024
4.0.481 92 8/27/2024
4.0.476 96 8/27/2024
4.0.471 96 8/27/2024
4.0.464 126 8/26/2024
4.0.453 129 8/24/2024
4.0.449 148 8/12/2024
4.0.446 81 8/5/2024
4.0.443 79 7/29/2024
4.0.440 113 7/22/2024
4.0.437 89 7/16/2024
4.0.434 92 7/16/2024
4.0.431 91 7/16/2024
4.0.426 87 7/16/2024
4.0.419 91 7/16/2024
4.0.412 98 7/16/2024
4.0.382 105 6/10/2024
4.0.375 110 6/3/2024
4.0.372 100 5/28/2024
4.0.369 94 5/28/2024
4.0.364 88 5/28/2024
4.0.357 106 5/28/2024
4.0.348 88 5/20/2024
4.0.345 85 5/20/2024
4.0.340 108 5/13/2024
4.0.337 128 5/6/2024
4.0.334 122 5/6/2024
4.0.331 116 4/30/2024
4.0.328 121 4/30/2024
4.0.323 123 4/30/2024
4.0.316 122 4/30/2024
4.0.313 97 4/29/2024
4.0.302 115 4/22/2024
4.0.299 113 4/22/2024
4.0.294 110 4/22/2024
4.0.291 97 4/22/2024
4.0.282 116 4/16/2024
4.0.279 107 4/16/2024
4.0.274 107 4/16/2024
4.0.267 115 4/16/2024
4.0.250 121 4/8/2024
4.0.247 92 4/8/2024
4.0.242 117 4/8/2024
4.0.235 112 3/25/2024
4.0.232 110 3/25/2024
4.0.227 119 3/25/2024
4.0.220 119 3/21/2024
4.0.210 130 2/26/2024
4.0.207 121 2/26/2024
4.0.202 114 2/26/2024
4.0.193 116 2/19/2024
4.0.186 118 2/19/2024
4.0.177 107 2/19/2024
4.0.160 117 2/14/2024
4.0.154 107 2/12/2024
4.0.151 99 2/12/2024
4.0.148 109 2/6/2024
4.0.145 111 2/5/2024
4.0.140 115 1/30/2024
4.0.135 102 1/29/2024
4.0.132 105 1/29/2024
4.0.127 103 1/29/2024
4.0.120 110 1/29/2024
4.0.112 123 1/22/2024
4.0.107 113 1/22/2024
4.0.104 116 1/22/2024
4.0.99 114 1/22/2024
4.0.90 123 1/16/2024
4.0.82 129 1/15/2024
4.0.77 121 1/15/2024
4.0.70 130 1/8/2024
4.0.67 121 1/8/2024
4.0.62 161 12/25/2023
4.0.59 131 12/25/2023
4.0.54 138 12/25/2023
4.0.47 122 12/25/2023
4.0.38 148 12/18/2023
4.0.35 125 12/18/2023
4.0.32 131 12/18/2023
4.0.25 116 12/18/2023
4.0.3 142 12/17/2023
3.0.467 138 12/14/2023
3.0.461 144 12/12/2023
3.0.458 151 12/11/2023
3.0.455 139 12/11/2023
3.0.452 165 12/11/2023
3.0.445 167 12/5/2023
3.0.440 148 12/5/2023
3.0.435 142 11/28/2023
3.0.432 136 11/28/2023
3.0.427 266 11/23/2023
3.0.424 144 11/21/2023
3.0.417 706 11/14/2023
3.0.411 121 11/14/2023
3.0.408 144 11/14/2023
3.0.400 165 11/10/2023
3.0.391 151 11/7/2023
3.0.388 146 11/7/2023
3.0.385 174 10/24/2023
3.0.382 153 10/17/2023
3.0.378 185 9/25/2023
3.0.373 164 9/24/2023
3.0.370 160 9/24/2023
3.0.365 161 9/24/2023
3.0.356 175 9/17/2023
3.0.353 160 9/17/2023
3.0.348 197 9/13/2023
3.0.338 188 9/13/2023
3.0.335 179 9/13/2023
3.0.332 179 9/13/2023
3.0.322 345 8/28/2023
3.0.314 364 8/13/2023
3.0.311 176 8/13/2023
3.0.308 197 8/13/2023
3.0.301 200 8/13/2023
3.0.291 275 8/3/2023
3.0.288 216 8/2/2023
3.0.283 242 7/28/2023
3.0.280 210 7/25/2023
3.0.277 199 7/25/2023
3.0.269 263 7/19/2023
3.0.266 178 7/19/2023
3.0.212 360 6/27/2023
3.0.209 244 6/26/2023
3.0.202 266 6/19/2023
3.0.193 196 6/18/2023
3.0.188 216 6/18/2023
3.0.183 195 6/18/2023
3.0.166 370 6/7/2023
3.0.156 364 5/31/2023
3.0.150 181 5/31/2023
3.0.147 199 5/31/2023
3.0.117 183 5/25/2023
3.0.114 452 5/4/2023
3.0.113 208 5/2/2023
3.0.109 219 4/28/2023
3.0.102 394 4/10/2023
3.0.97 231 4/9/2023
3.0.89 245 4/4/2023
3.0.84 364 4/3/2023
3.0.75 389 3/27/2023
3.0.72 311 3/25/2023
3.0.65 260 3/25/2023
3.0.56 246 3/25/2023
2.0.39 627 1/24/2023
2.0.38 699 1/9/2023
2.0.33 344 1/9/2023
2.0.32 340 1/9/2023
2.0.31 333 1/9/2023
2.0.26 368 12/14/2022
2.0.25 361 12/8/2022
2.0.24 355 12/8/2022
2.0.21 363 12/8/2022
2.0.12 1,241 11/1/2020
2.0.11 540 10/1/2020
2.0.10 610 9/1/2020
2.0.9 550 8/1/2020
2.0.8 693 7/1/2020
2.0.7 551 6/29/2020
1.0.58 656 6/1/2020
1.0.57 610 5/2/2020
1.0.56 605 5/2/2020
1.0.54 627 5/2/2020
1.0.52 569 5/2/2020
1.0.51 598 5/2/2020
1.0.50 611 5/2/2020
1.0.49 658 5/2/2020
1.0.48 593 5/2/2020
1.0.47 601 5/2/2020
1.0.46 614 5/1/2020
1.0.45 623 5/1/2020
1.0.44 602 5/1/2020
1.0.43 621 5/1/2020
1.0.42 588 5/1/2020
1.0.41 602 5/1/2020
1.0.40 625 5/1/2020
1.0.39 613 5/1/2020
1.0.38 612 5/1/2020
1.0.37 657 5/1/2020
1.0.36 590 5/1/2020
1.0.35 597 5/1/2020
1.0.34 599 5/1/2020
1.0.33 603 5/1/2020
1.0.32 567 5/1/2020
1.0.31 590 5/1/2020
1.0.30 569 5/1/2020
1.0.29 593 5/1/2020
1.0.28 584 5/1/2020
1.0.27 624 5/1/2020
1.0.26 648 5/1/2020
1.0.25 695 5/1/2020
1.0.24 624 5/1/2020
1.0.22 650 5/1/2020
1.0.21 579 4/24/2020
1.0.20 606 4/24/2020
1.0.19 583 4/24/2020
1.0.12 979 9/19/2018
1.0.9 959 8/16/2018
1.0.8 954 8/16/2018