ColombiAPI: Exploring Colombia's Public Data with API-Colombia"

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(ColombiAPI)
library(dplyr)

Introduction

The ColombiAPI package provides a seamless interface to access diverse public data about Colombia through the API-Colombia, a RESTful API. The package enables users to explore various aspects of Colombia, including general information, geography, and cultural insights. It includes five API-related functions to retrieve data on topics such as Colombia's general information, airports, departments, regions, and presidents.

Additionally, ColombiAPI offers a built-in function to view the datasets available within the package. The package also includes curated datasets covering Bogota air stations, business and holiday dates, public schools, Colombian coffee exports, cannabis licenses, Medellin rainfall, and malls in Bogota, making it a comprehensive tool for exploring Colombia's data.

Functions for API-Colombia

The ColombiAPI package provides five primary functions to retrieve data from the API-Colombia, we'll show you how two of them work in this section:

get_Colombia_info()
get_regions_list()

Datasets Included in ColombiAPI

In addition to API functions, ColombiAPI includes several preloaded datasets that provide valuable insights into various aspects of Colombia:

Dataset Suffixes

Each dataset in ColombiAPI is labeled with a suffix to indicate its type and structure:

Viewing All Available Datasets

The ColombiAPI package includes a built-in function, view_datasets(), which allows users to view a comprehensive list of all datasets available in the package directly from the console:

view_datasets()

Conclusion

The ColombiAPI package offers a powerful set of tools for accessing and analyzing public data about Colombia. From exploring general information about the country to diving into specific datasets on topics like air quality, public schools, or coffee exports, ColombiAPI enables users to engage with Colombia's rich data landscape easily. For more detailed examples and use cases, refer to the full package documentation or explore the datasets using the built-in functions.



Try the ColombiAPI package in your browser

Any scripts or data that you put into this service are public.

ColombiAPI documentation built on April 12, 2025, 1:42 a.m.