Request data directly from the XRONOS API. See https://xronos.ch/api for supported filters. Use xronos_request() to retrieve all data.

xronos_request(query = NA, api_url = xronos_api_url())

Arguments

query

Valid query string.

api_url

Root address of the XRONOS API. xronos_api_url() provides the default value.

Value

Parsed JSON response.

Examples

xronos_request("query_labnr=AAR-1847")
#> # A tibble: 4 × 21
#>       id labnr      bp   std cal_bp cal_std delta…¹ reference    sourc…² mater…³
#>    <int> <chr>   <int> <int> <lgl>  <lgl>     <dbl> <list>       <chr>   <chr>  
#> 1  21924 AAR-18…  4780   100 NA     NA        -27.3 <named list> CalPal  food r…
#> 2  85745 AAR-18…  4780   100 NA     NA         NA   <named list> EUROEV… food r…
#> 3  88925 AAR-18…  4780   100 NA     NA        -27.3 <named list> RADON   food r…
#> 4 177143 AAR-18…  4780   100 NA     NA        -27.3 <named list> p3k14c  charco…
#> # … with 11 more variables: species <chr>, feature <chr>, periods <list>,
#> #   typochronological_units <list>, ecochronological_units <list>, site <chr>,
#> #   country <chr>, lat <chr>, lng <chr>, site_type <chr>, feature_type <chr>,
#> #   and abbreviated variable names ¹​delta_c13, ²​source_database, ³​material