APIs


The data in this application can be accessed with direct requests to an API.

File exports

We provide up-to-date snapshots of XRONOS entire scientific database as flat-file exports:

This is the simplest and most efficient way to access larger portions of the database.

API v1

To query subsets of the database, we provide a JSON API at this endpoint:

https://xronos.ch/api/v1/data
      

You can also filter the data with this interface to only access the subsets relevant for you. With the following URL you get - for example - only one date with the Lab Number AAR-1847.

https://xronos.ch/api/v1/data?query_labnr=AAR-1847
      

The | ("pipe") operator allows you to combine multiple filter keys. | represents a logical OR. That means the following URL will give you both dates AAR-1847 and KN-2506.

https://xronos.ch/api/v1/data?query_labnr=AAR-1847|KN-2506
      

You can also combine multiple filter criteria by adding filter parameters to the URL with the & ("and") operator. The parameters are combined with a logical AND. The following query will therefore give you all dates measured on charcoal from Germany.

https://xronos.ch/api/v1/data?query_country=Germany&query_material=charcoal
      

Heres a list of the available filter criteria:

  • query_labnr
  • query_site
  • query_site_type
  • query_country
  • query_feature
  • query_material
  • query_species

Usage expectations

XRONOS is an open resource, and we welcome responsible reuse of its data. When accessing the API or harvesting pages programmatically, please be polite: identify yourself, respect the site policy, make requests slowly, and avoid asking for the same resource repeatedly.

  • Always set an informative User-Agent string that identifies your project or application and provides a contact email or URL.
  • Respect robots.txt and do not request paths that are excluded there.
  • Avoid unnecessary repeated requests. Cache responses locally where possible.
  • Keep request rates moderate and avoid parallel scraping or deep pagination loops.
  • Prefer documented API endpoints or flat-file data exports over scraping HTML pages.
  • If you need a substantial part of the database, use the flat-file exports we make available.

We reserve the right to block traffic uses an excessive amount of server resources or causes problems for other users. If in doubt, please contact us.