get_colombia_natural_areas: Get Natural Areas of Colombia

View source: R/get_colombia_natural_areas.R

get_colombia_natural_areasR Documentation

Get Natural Areas of Colombia

Description

Retrieves information about natural areas in Colombia from the API Colombia. This function fetches only selected fields: id, areaGroupId, categoryNaturalAreaId, name, departmentId, daneCode, and landArea.

Usage

get_colombia_natural_areas()

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: Natural area identifier (integer)

  • areaGroupId: Area group identifier (integer)

  • categoryNaturalAreaId: Category identifier for the natural area (integer)

  • name: Natural area name (character)

  • departmentId: Department identifier (integer)

  • daneCode: DANE statistical code (character)

  • landArea: Land area in hectares (numeric)

Returns NULL if the API request fails.

Note

Requires internet connection.

Source

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

See Also

GET, fromJSON, tibble

Examples

if (interactive()) {
  get_colombia_natural_areas()
}


ColombiAPI documentation built on May 6, 2026, 9:07 a.m.