get_colombia_presidents: Get Colombia's Presidents from API Colombia

View source: R/get_colombia_presidents.R

get_colombia_presidentsR Documentation

Get Colombia's Presidents from API Colombia

Description

Retrieves comprehensive information about all Colombian presidents from 1886 to present from the API Colombia service. This function fetches data including names, political parties, government periods, descriptions, and biographical information for each president.

Usage

get_colombia_presidents()

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

  • name: President's first name(s) (character)

  • last_name: President's last name(s) (character)

  • political_party: Political party affiliation (character)

  • start_period_date: Start date of presidency (character, YYYY-MM-DD format)

  • end_period_date: End date of presidency (character, YYYY-MM-DD format or NULL for current)

Note

Requires internet connection.

Source

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

See Also

GET, fromJSON, as_tibble

Examples

if (interactive()) {
  get_colombia_presidents()
}


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