Using SMEAR API

Last modified by Pasi Kolari on 2024/03/05 13:32

SMEAR database can be accessed from anywhere using the API. Here's some examples for constructing API calls.

Matlab function for downloading and parsing data into numeric matrix or table form

Python module for retrieving data as Pandas data frame

R function (updated 31.8.2021 to employ httr library instead of RCurl)


Matlab, Python and R examples for downloading short pieces of data in loop using the functions above.


If picking up table and column names or metadata of variables in GUI feels tedious, API provides convenient ways to search from variable metadata.
The examples below retrieve metadata in csv format, json and tsv are also available.