# Trends
**All statistics are calculated in the local time without shifts for daylight saving time of the station where the data originated from.
Daily aggregates will report the trend in ppbv/day and monthly aggregates will report the trend in ppbv/month.**
[https://toar-data.fz-juelich.de/api/v2/analysis/trends/[?QUERY-OPTIONS]](https://toar-data.fz-juelich.de/api/v2/analysis/trends/)
where QUERY-OPTIONS are:
any combination of query options from both [TOARDB REST interface - 2.4 Stationmeta](https://toar-data.fz-juelich.de/api/v2/#stationmeta) and [TOARDB REST interface - 2.5 Timeseries](https://toar-data.fz-juelich.de/api/v2/#stationmeta)
daterange = \
flags = \ (for a description of flags and all available flag names see User Guide - [5.2 Data Quality Flags](https://toar-data.fz-juelich.de/sphinx/TOAR_UG_Vol03_Database/build/html/data-quality.html#data-quality-flags))
sampling = \ (daily|monthly)
statistics = \ (for available values and details see [5.2. Available Statistics](available_statistics) )
seasons = \ (for available values see [SEASON_DICT](https://gitlab.jsc.fz-juelich.de/esde/toar-public/toarstats/-/blob/master/toarstats/metrics/constants.py#L93-147)) (default: "DJF,MAM,JJA,SON")
crops = \ (for available values see [ALLOWED_CROPS_VALUES](https://gitlab.jsc.fz-juelich.de/esde/toar-public/toarstats/-/blob/master/toarstats/metrics/constants.py#L149-152)) (default: "wheat,rice")
min_data_capture = \ (default: 0.75)
method = \ (OLS|quant) (default: quant)
quantiles = \
num_samples = \ (default: 50)
metadata_scheme = \ (basic|extended|full) (default: full)
format = \ (json_simple|by_stat_quant) (for details on the formats see Reference [8. Aggregated Output Formats](aggregated_output_formats) )(default: json_simple)
**Response:** The query will return a unique task identifier and a link to check the status of your query.
**Example:** [https://toar-data.fz-juelich.de/api/v2/analysis/trends/?country=DE&variable_id=5&limit=3&daterange=2010-01-01T00:00:00,2020-12-31T23:59:59&flags=AllOK&sampling=monthly&statistics=avgdma8epax,dma8eu&quantiles=0.25,0.5,0.75](https://toar-data.fz-juelich.de/api/v2/analysis/trends/?country=DE&variable_id=5&limit=3&daterange=2010-01-01T00:00:00,2020-12-31T23:59:59&flags=AllOK&sampling=monthly&statistics=avgdma8epax,dma8eu&quantiles=0.25,0.5,0.75)
**Result:** {"task_id":"24666af1-5a51-4223-b8fc-c7d2d5f0070e","status":"https://toar-data.fz-juelich.de/api/v2/analysis/status/24666af1-5a51-4223-b8fc-c7d2d5f0070e"}
To retrieve the result send a request to the status endpoint with your task identifier. If the result is there you will be redirected. The result will be a zip archive containing files in the format you have chosen.