JapanAPIs

License: MIT

The JapanAPIs package provides a unified interface to access open data from the World Bank API, Nager.Date API, and the REST Countries API, with a focus on Japan. It allows users to retrieve up-to-date or historical information on topics such as economic indicators, population statistics, national holidays, and basic geopolitical details.

In addition to API-access functions, the package includes one of the largest curated collections of open datasets related to Japan. These datasets cover a wide range of topics including natural disasters, economic production, the vehicle industry, air quality, demographic trends, and administrative divisions.

Installation

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


install.packages("JapanAPis")

Usage

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


library(JapanAPIs)

JapanAPIs Functions

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

Dataset Suffixes

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

Datasets Included in JapanAPIs

In addition to API access functions, JapanAPIs offers one of the largest curated collections of open datasets focused on Japan. These preloaded datasets cover a wide range of topics including demography, natural disasters, public health, sports, centenarians, atomic bomb survivors, earthquakes, and administrative data. Below are some featured examples:

Example Code:


# Load the package

library(JapanAPIs)

# Retrieves essential information about Japan

get_country_info_jp()

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

get_japan_population()

# Load a dataset

data(japan_population_tbl_df)

# Shows six rows of the dataset

head(japan_population_tbl_df)

# Display the structure of the dataset

str(japan_population_tbl_df)

# Shows the whole dataset

View(japan_population_tbl_df)

mirror server hosted at Truenetwork, Russian Federation.