Learn R Programming

FAOSTAT (version 2.4.0)

get_fao: REST functions to connect to FAO

Description

REST functions to connect to FAO

Usage

get_fao(
  endpoint,
  params = list(),
  language = c("en", "fr", "es", "NA"),
  base_url = "https://faostatservices.fao.org/api/v1"
)

Arguments

endpoint

character. Endpoint for FAO API

params

list of query parameters

language

character. One of the UN languages supported by FAOSTAT

base_url

character. Base URL for FAOSTAT API