Skip to contents

License: MIT

The AlgeriAPIs package provides a unified interface to access open data from the World Bank API and the REST Countries API, with a focus on Algeria. It allows users to retrieve real-time or historical information on topics such as economic indicators, population statistics, and key geopolitical details.

AlgeriAPIs enables users to query data in a reproducible way and is designed for researchers, analysts, and developers who require reliable and programmatic access to Algerian data through established APIs.

Installation

You can install the AlgeriAPIs package from CRAN with the following R function:


install.packages("AlgeriAPIs")

You can install AlgeriAPIs package from its Github repository with the following R function:


# Make sure the 'devtools' package is installed before using install_github()


devtools::install_github("lightbluetitan/algeriapis")

Usage

After installation, load the package and start exploring and using its functions and datasets.

AlgeriAPIs Functions

Below is a list of the main functions included in the package:

Example Code:


# Load the package

library(AlgeriAPIs)

# Retrieves essential information about Algeria

get_country_info_dz()

# Get Algeria's Population (Total) from World Bank

get_algeria_population()

# Get Algeria’s GDP (current US$)

get_algeria_gdp()