How to use csv

Here is a simple example of how to use csv output format.

Request:

https://frost.met.no/observations/v0.csv?sources=sn18700&referencetime=R4/2009-12-01T06/2009-12-01T06/P1D&elements=air_temperature,min(air_temperature PT1H),max(air_temperature PT1H)&levels=default&timeoffsets=default&fields=sourceId,referenceTime,value,elementId

(insert your own client_id for 'user name'. client_id can also be entered into the request like this: https: //client_id@frost.met.no/...)

Output from request:

  
sourceId,referenceTime,air_temperature(-),min(air_temperature pt1h)(-),max(air_temperature pt1h)(-)
sn18700:0,2009-12-01T06:00:00.000Z,-3.4,-3.8,-2.8
sn18700:0,2009-12-02T06:00:00.000Z,-7.8,-8.0,-7.5
sn18700:0,2009-12-03T06:00:00.000Z,-6.4,-7.4,-5.3
sn18700:0,2009-12-04T06:00:00.000Z,0.7,0.2,0.7
	      

Each line have a station per time and one value per element (used default level and timeoffset).