% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_colombia_child_mortality.R
\name{get_colombia_child_mortality}
\alias{get_colombia_child_mortality}
\title{Get Colombia's Under-5 Mortality Rate from World Bank}
\source{
World Bank Open Data API: \url{https://data.worldbank.org/indicator/SH.DYN.MORT}
}
\usage{
get_colombia_child_mortality()
}
\value{
A tibble with the following columns:
\itemize{
  \item \code{indicator}: Indicator name (e.g., "Mortality rate, under-5 (per 1,000 live births)")
  \item \code{country}: Country name ("Colombia")
  \item \code{year}: Year of the data (integer)
  \item \code{value}: Mortality rate (per 1,000 live births)
}
}
\description{
Retrieves Colombia's under-5 mortality rate, measured as the number of deaths
of children under five years of age per 1,000 live births, for the years 2010 to 2022
using the World Bank Open Data API. The indicator used is \code{SH.DYN.MORT}.
}
\details{
This function sends a GET request to the World Bank API.
If the API request fails or returns an error status code,
the function returns \code{NULL} with an informative message.
}
\note{
Requires internet connection.
}
\examples{
if (interactive()) {
  get_colombia_child_mortality()
}

}
\seealso{
\code{\link[httr]{GET}}, \code{\link[jsonlite]{fromJSON}}, \code{\link[dplyr]{as_tibble}}
}
