get_colombia_regions: Get Colombia's Regions from API Colombia

View source: R/get_colombia_regions.R

get_colombia_regionsR Documentation

Get Colombia's Regions from API Colombia

Description

Retrieves comprehensive information about Colombia's six natural regions from the API Colombia service. This function fetches data including region names, descriptions, and identifiers for all Colombian regions: Caribe, Pacífico, Orinoquía, Amazonía, Andina, and Insular.

Usage

get_colombia_regions()

Details

This function sends a GET request to the API Colombia service. If the API request fails or returns an error status code, the function returns NULL with an informative message.

Value

A tibble with the following columns:

  • id: Region identifier (integer)

  • name: Region name (character)

  • description: Detailed description of the region (character)

Note

Requires internet connection.

Source

API Colombia: https://api-colombia.com/api/v1/Region

See Also

GET, fromJSON, as_tibble

Examples

if (interactive()) {
  get_colombia_regions()
}


ColombiAPI documentation built on Nov. 5, 2025, 6:59 p.m.