Skip to contents

Authentication

bps_set_key()
Set BPS API key

Dataset

General

bps_subject_category() bps_subject()
Look up subject category and subject of dataset
bps_dataset() bps_get_dataset() bps_get_datasets()
Look up and request dataset
bps_vertical_var() bps_derived_var() bps_year() bps_period()
Look up dataset variable

Spreadsheet

bps_dataset_spreadsheet() bps_download_spreadsheet()
Look up and request spreadsheet dataset

Trade

Sustainable Development Goals (SDG)

bps_sdg()
Look up SDG dataset
bps_search()
Find resource on list endpoint

Domain

bps_domain()
Look up domain of BPS bureau

Core and low-level request functions

bps_request() bps_request_multiple() bps_request_paginated()
Perform single, multiple or paginated request to BPS API
bps_list()
Perform request to list endpoint
bps_view()
Perform request to view endpoint

Helper

bps_download()
Save resource from BPS API
bps_metadata()
Extract dataset metadata
bps_add_date()
Create date column in dataset