get_data_aemet: Client tool for AEMET API

View source: R/aemet_api_query.R

get_data_aemetR Documentation

Client tool for AEMET API

Description

Client tool to get data and metadata from AEMET and convert json to tibble.

Usage

get_data_aemet(apidest, verbose = FALSE)

get_metadata_aemet(apidest, verbose = FALSE)

Arguments

apidest

Character string as destination URL. See https://opendata.aemet.es/dist/index.html.

verbose

Logical TRUE/FALSE. Provides information about the flow of information between the client and server.

Value

A tibble or an empty tibble if no valid results from the API.

Source

https://opendata.aemet.es/dist/index.html

Examples


# Run this example only if AEMET_API_KEY is detected

url <- "/api/valores/climatologicos/inventarioestaciones/todasestaciones"

get_data_aemet(url)


# Metadata

get_metadata_aemet(url)


climaemet documentation built on March 18, 2022, 7:01 p.m.