get_colombia_cities: Get All Cities of Colombia

View source: R/get_colombia_cities.R

get_colombia_citiesR Documentation

Get All Cities of Colombia

Description

Retrieves basic information about all cities in Colombia from the API Colombia. This function fetches only the city ID and name to provide a clean and concise dataset.

Usage

get_colombia_cities()

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

  • name: City name (character)

Returns NULL if the API request fails.

Note

Requires internet connection.

Source

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

See Also

GET, fromJSON, tibble

Examples

if (interactive()) {
  get_colombia_cities()
}


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