{"openapi":"3.0.0","info":{"title":"DTN Marine Weather API","version":"1.0.0","x-logo":{"url":"https://www.dtn.com/wp-content/uploads/2019/03/dtn-logo-tag.png","altText":"https://www.dtn.com"},"description":"# Introduction\nWelcome to DTN’s Marine Weather API – the gateway to global forecast and historical marine weather conditions. This API caters to a wide range of users, including:\n * Scientists engaged in climate research\n * Shipping companies analyzing fleet performance\n * Offshore platforms enhancing weather safety measures\n * Software developers building maritime applications\n\n\n**Key features:** The Marine Weather API provides a time series of forecast and historical parameters, including wave heights, wind speed and direction, current direction, and more. It leverages state-of-the-art cloud technology and DTN's extensive global metocean forecast models. The data is continuously validated, calibrated, and enhanced with the latest satellite data, buoy measurements, and observation networks.\n\n**Conditions at a location:** For simplicity, the API provides a single endpoint for both historical and forecast data. Specify an ocean location, the marine parameters of interest, and a time range up to 10 days long, from 10 years in the past to 10 days in the future. The API responds with the requested time series in GeoJSON format for easy parsing.\n\n**Conditions along a route:** For users dealing with numerous waypoints and timestamps, the API provides a second endpoint tailored for bulk requests along a route. This feature provides marine conditions at each location and timestamp pair for applications that are more complex.\n\nThe interactive documentation that follows is a guide to setting up requests, understanding responses, and leveraging all the features of DTN’s Marine Weather API.\n# Getting Started\n## Obtaining credentials\nTo get started, all users need their own client ID and client secret. Please contact an account manager or the [DTN sales team](https://www.dtn.com/contact-us/) to obtain these. Then, review the `Authentication` section to learn how to request an API access token. Do not share or use others' API credentials, since doing so may compromise information security.\n\n## Making requests\nThere are multiple ways to make an initial API request:\n\n**1. Interactive documentation:** Navigate to the `Authentication` section on this page, insert credentials to obtain an access token, then explore the API endpoints described in the `Endpoints` section.\n\n**2. Postman collection:** For a hands-on approach, consider downloading the Postman collection and environment from the top of this page. Insert credentials and start testing the API in Postman's interactive application.\n\n**3. Writing code:** Ready to start coding? Try the Python example below, replacing `client_id` and `client_secret` with proper credentials. This invokes the Marine Conditions endpoint with a GET request and prints the response.\n\n```python\n import requests\n\n #--- Obtain an API access token ---\n\n auth_url = 'https://api.auth.dtn.com/v1/tokens/authorize'\n\n body = {\n 'grant_type': 'client_credentials',\n 'client_id': '...insert your client id here...',\n 'client_secret': '...insert your client secret here...',\n 'audience': 'https://weather.api.dtn.com/conditions/marine'\n }\n response = requests.post(auth_url, json=body)\n access_token = response.json()['data']['access_token']\n\n #--- Invoke the API ---\n\n api_base_url = 'https://weather.api.dtn.com/v1'\n query_parameters = '&'.join([\n 'lat=55.81',\n 'lon=3.88',\n 'startTime=2023-07-11T00:06:10Z',\n 'endTime=2023-07-19T00:06:10Z',\n ])\n endpoint = '/conditions/marine?' + query_parameters\n\n headers = {'Authorization': 'Bearer ' + access_token}\n response = requests.get(api_base_url + endpoint, headers=headers)\n\n #--- Print the response ---\n\n print(response.json())\n```\n## Latitude and longitude in the response\nRequested latitudes and longitudes are rounded to three (3) decimal places when presented in `$.features.*.geometry.coordinates`. Floating point precision might affect the last digit.\n### Rounding examples\n* 1.5555 => 1.556\n* 1.5545 => 1.554\n* -1.5555 => -1.556"},"servers":[{"url":"https://weather.api.dtn.com"}],"tags":[{"name":"Endpoints","description":"The Marine Weather API has 3 endpoints that each cater to a specific need, such as the time series at a single location, conditions at multiple location and timestamp pairs along a route, or the associated metadata."},{"name":"Parameters","description":"The Marine Weather API offers two categories of marine weather parameters: forecast and historical. These provide detailed insights for planning future marine operations or analyzing past weather patterns during specific voyages and offshore operations.\n## Forecast Parameters\nForecast parameters provide predictive marine weather data for up to 10 days in the future. Expand the table below to view available parameters and each one's description, unit of measurement, and whether it is a default. The API returns only defaults unless specific parameters are requested.\n
Click to expand...\n\n| Parameter Name | Default | Description | Units |\n|-----------------------------------------------|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------|\n| airDensity | | Air density at 10 metres above ground. | kilogram per cubic meter | \n| airPressureMeanSeaLevel | Yes | Air pressure at mean sea level | hectoPascal |\n| airTemp | Yes | Air temperature at 2m | degree Celsius |\n| airTemp10m | | Air temperature at 10m | degree Celsius |\n| airTemp50m | | Air temperature at 50m | degree Celsius |\n| airTemp100m | | Air temperature at 100m | degree Celsius |\n| dewPoint | | Dew point temperature at 2m | degree Celsius |\n| geopotentialHeight500hpa | | Indicates the altitude where atmospheric pressure is 500 hPa. It's a key metric for understanding mid-tropospheric conditions | meter |\n| firstSwellMeanPeriod | | Mean period of primary swell | second |\n| firstSwellPeakPeriod | | Smoothed inverse frequency of the group of waves with the highest energy in the first swell section of the spectrum | second |\n| firstSwellSignificantWaveHeight | | Spectral approximation of the observed mean wave height of the largest 33% of the waves in the first swell section of the spectrum within a 20 minute window | meter |\n| firstSwellMeanWaveDirection | | Mean direction from which waves in the first swell section of the spectrum are arriving (meteorological convention: zero means coming from the north) | degree |\n| iceAccretionSeverity | | Risk of ice formation on vessel from freezing sea spray | unitless |\n| lightningProb | | Specifies the probability of lightning occurring at a given latitude and longitude | percentage |\n| maximumWaveHeight | | Mean of 1% highest waves or 1.67 * Hm0 according to deep water Rayleigh distribution (total seastate only) | meter |\n| meanWaveDirection | Yes | Mean direction from which waves are arriving (meteorological convention: zero means coming from the north) | degree |\n| meanWaveDirectionalSpreading | | Directional focus of waves | degree |\n| meanWavePeriodTm02 | | Spectral approximation of the observed zero upcrossing wave period | second |\n| meanWavePeriodTmm10 | | Tmm10 is usually meant when Tm is not fully specified and is particularly sensitive to energy in the lower frequency range | second |\n| peakPeriod | | Smoothed inverse frequency of the group of waves with the highest energy | second |\n| precipAmount1h | | Amount of precipitation in the past hour | millimeter |\n| precipProb | | Probability of precipitation. | percentage |\n| relativeHumidity | | Relative humidity at 2m | percentage |\n| seaIceConcentration | | Percentage of the sea ice forecasted for the requested location. | percentage |\n| seaSurfaceHeightAnomalyAstronomic | | Deviations of the sea surface height from the mean sea surface level due to astronomical forcing (tidal elevation). | meter |\n| seaSurfaceHeightAnomalyResidual | | Deviations of the sea surface height from the mean sea surface level due to storm surge and wave dynamics. | meter |\n| seaSurfaceHeightAnomalyTotal | | Deviations of the sea surface height from the mean sea surface level due to astronomical forcing (tidal elevation), storm surge, and wave dynamics. | meter |\n| seaSurfaceSalinity | | Sea surface salinity is the salt content of sea water close to the sea surface given as parts per 1000 | gram per kilogram|\n| seaSurfaceTemp | Yes | Sea surface temperature | degree Celsius |\n| seaWaterChlorophyll | | Sea water mass concentration of chlorophyll at 0.49 meters | milligram per cubic meter |\n| seaWaterIron | | Sea water mole concentration of dissolved iron at 0.49 meters | millimole per cubic meter |\n| seaWaterNitrate | | Sea water mole concentration of nitrate at 0.49 meters | millimole per cubic meter |\n| seaWaterPhosphate | | Sea water mole concentration of phosphate at 0.49 meters | millimole per cubic meter |\n| seaWaterSilicate | | Sea water mole concentration of silicate at 0.49 meters | millimole per cubic meter |\n| secondSwellMeanPeriod | | Mean period of secondary swell | second |\n| secondSwellPeakPeriod | | Smoothed inverse frequency of the group of waves with the highest energy in the second swell section of the spectrum | second |\n| secondSwellSignificantWaveHeight | | Spectral approximation of the observed mean wave height of the largest 33% of the waves in the second swell section of the spectrum within a 20 minute window | meter |\n| secondSwellMeanWaveDirection | | Mean direction from which waves in the second swell section of the spectrum are arriving (meteorological convention: zero means coming from the north) | degree |\n| significantWaveHeight | Yes | Spectral approximation of the observed mean wave height of the largest 33% of the waves within a 20 minute window | meter |\n| significantWaveHeightRiskP90 | | Significant wave height multiplied by 90-percentile of ratios computed by dividing forecasted significant wave heights by an observed value for a given time and location (total seastate only) | meter |\n| statisticalMaximumWaveHeight | | Statistical maximum individual wave height, 99.9th percentile | meter |\n| totalCurrentDirection | Yes | Total current direction (oceanographic convention) from tidal and general ocean circulation | degree |\n| totalCurrentVelocity | Yes | Total current velocity from tidal and general ocean circulation | meter per second |\n| totalSwellMeanWaveDirection | Yes | Mean direction from which waves are arriving (meteorological convention: zero means coming from the north) | degree |\n| totalSwellMeanWaveDirectionalSpreading | | Swell 1 of 1 spectral directional focus of waves | degree |\n| totalSwellMeanWavePeriodTm02 | | Swell 1 of 1 spectral approximation of the observed zero upcrossing wave period | second |\n| totalSwellMeanWavePeriodTmm10 | | Swell 1 of 1 Tmm10 is usually meant when Tm is not fully specified and is particularly sensitive to energy in the lower frequency range | second |\n| totalSwellPeakPeriod | | Smoothed inverse frequency of the group of waves with the highest energy | second |\n| totalSwellSignificantWaveHeight | Yes | Spectral approximation of the observed mean wave height of the largest 33% of the waves within a 20 minute window | meter |\n| visibility | Yes | Distance at which something can be seen | kilometer |\n| weatherCode | | Numerical code summarizing the weather conditions. See `Weather Codes and Icons` section. | unitless |\n| windDirection10m | Yes | Wind direction at 10m | degree |\n| windDirection50m | | Wind direction at 50m | degree |\n| windDirection100m | | Wind direction at 100m | degree |\n| windGust10m | | Wind gust at 10m | meter per second |\n| windGust50m | | Wind gust at 50m | meter per second |\n| windGust100m | | Wind gust at 100m | meter per second |\n| windSpeed10m | Yes | Wind speed at 10m | meter per second |\n| windSpeed50m | | Wind speed at 50m | meter per second |\n| windSpeed100m | | Wind speed at 100m | meter per second |\n| windSpeed10mRiskP90 | | Represents the 90th percentile risk value of wind speed at 10 meters above ground level | meter per second |\n| windWaveMeanWaveDirection | Yes | Mean direction from which waves are arriving (meteorological convention: zero means coming from the north considering the windwave part of the spectrum) | degree |\n| windWaveMeanWaveDirectionalSpreading | | Directional focus of waves considering the windwave part of the spectrum | degree |\n| windWaveMeanWavePeriodTm02 | | Spectral approximation of the observed zero upcrossing wave period considering the windwave part of the spectrum | second |\n| windWaveMeanWavePeriodTmm10 | | Tmm10 is usually meant when Tm is not fully specified and is particularly sensitive to energy in the lower frequency range considering the windwave part of the spectrum | second |\n| windWavePeakPeriod | | Smoothed inverse frequency of the group of waves with the highest energy considering the windwave part of the spectrum | second |\n| windWaveSignificantWaveHeight | Yes | Spectral approximation of the observed mean wave height of the largest 33% of the waves within a 20 minute window considering the windwave part of the spectrum | meter |\n
\n\n## Historical Parameters\nHistorical parameters are available for up to 10 years in the past. Expand the table below to view available parameters and each one's description, unit of measurement, and whether it is a default. The API returns only defaults unless specific parameters are requested.\n
Click to expand...\n\n| Parameter Name | Default | Description | Units |\n|-----------------------------------------------|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------|\n| airDensity | | Air density at 10 metres above ground. | kilogram per cubic meter | \n| airPressureMeanSeaLevel | Yes | Air pressure at mean sea level | hectoPascal |\n| airTemp | Yes | Air temperature at 2m | degree Celsius |\n| maximumWaveHeight | | Mean of 1% highest waves or 1.67 * Hm0 according to deep water Rayleigh distribution (total seastate only) | meter |\n| meanWaveDirection | Yes | Mean direction from which waves are arriving (meteorological convention: zero means coming from the north) | degree |\n| meanWaveDirectionalSpreading | | Directional focus of waves | degree |\n| meanWavePeriodTm02 | | Spectral approximation of the observed zero upcrossing wave period | second |\n| meanWavePeriodTmm10 | | Tmm10 is usually meant when Tm is not fully specified and is particularly sensitive to energy in the lower frequency range | second |\n| peakPeriod | | Smoothed inverse frequency of the group of waves with the highest energy | second |\n| precipAmount1h | | Amount of precipitation in the past hour | millimeter |\n| seaSurfaceTemp | Yes | Sea surface temperature | degree Celsius |\n| significantWaveHeight | Yes | Spectral approximation of the observed mean wave height of the largest 33% of the waves within a 20 minute window | meter |\n| totalCurrentDirection | Yes | Total current direction (oceanographic convention) from tidal and general ocean circulation | degree |\n| totalCurrentVelocity | Yes | Total current velocity from tidal and general ocean circulation | meter per second |\n| totalSwellMeanWaveDirection | Yes | Mean direction from which waves are arriving (meteorological convention: zero means coming from the north) | degree |\n| totalSwellMeanWaveDirectionalSpreading | | Swell 1 of 1 spectral directional focus of waves | degree |\n| totalSwellMeanWavePeriodTm02 | | Swell 1 of 1 spectral approximation of the observed zero upcrossing wave period | second |\n| totalSwellMeanWavePeriodTmm10 | | Swell 1 of 1 Tmm10 is usually meant when Tm is not fully specified and is particularly sensitive to energy in the lower frequency range | second |\n| totalSwellPeakPeriod | | Smoothed inverse frequency of the group of waves with the highest energy | second |\n| totalSwellSignificantWaveHeight | Yes | Spectral approximation of the observed mean wave height of the largest 33% of the waves within a 20 minute window | meter |\n| visibility | Yes | Distance at which something can be seen | kilometer |\n| weatherCode | | Numerical code summarizing the weather conditions. See `Weather Codes and Icons` section. | unitless |\n| windDirection10m | Yes | Wind direction at 10m | degree |\n| windDirection50m | | Wind direction at 50m | degree |\n| windDirection100m | | Wind direction at 100m | degree |\n| windGust10m | | Wind gust at 10m | meter per second |\n| windGust50m | | Wind gust at 50m | meter per second |\n| windGust100m | | Wind gust at 100m | meter per second |\n| windSpeed10m | Yes | Wind speed at 10m | meter per second |\n| windSpeed50m | | Wind speed at 50m | meter per second |\n| windSpeed100m | | Wind speed at 100m | meter per second |\n| windWaveMeanWaveDirection | Yes | Mean direction from which waves are arriving (meteorological convention: zero means coming from the north considering the windwave part of the spectrum) | degree |\n| windWaveMeanWaveDirectionalSpreading | | Directional focus of waves considering the windwave part of the spectrum | degree |\n| windWaveMeanWavePeriodTm02 | | Spectral approximation of the observed zero upcrossing wave period considering the windwave part of the spectrum | second |\n| windWaveMeanWavePeriodTmm10 | | Tmm10 is usually meant when Tm is not fully specified and is particularly sensitive to energy in the lower frequency range considering the windwave part of the spectrum | second |\n| windWavePeakPeriod | | Smoothed inverse frequency of the group of waves with the highest energy considering the windwave part of the spectrum | second |\n| windWaveSignificantWaveHeight | Yes | Spectral approximation of the observed mean wave height of the largest 33% of the waves within a 20 minute window considering the windwave part of the spectrum | meter |\n
\n\n## Wave Partitions Parameters\nThese parameters are available from the wave partitions endpoint. Expand the table below to view available parameters and each one's description, unit of measurement, and whether it is a default. The API returns only defaults unless specific parameters are requested.\n
Click to expand...\n\n| Parameter Name | Default | Description | Units |\n|--------------------------------------|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|\n| meanWaveDirectionPart1Of6 | Yes | Mean direction from which waves are arriving (partition 1 of 6 within the windwave spectrum) | degree |\n| meanWaveDirectionPart2Of6 | | Mean direction from which waves are arriving (partition 2 of 6 within the windwave spectrum) | degree |\n| meanWaveDirectionPart3Of6 | | Mean direction from which waves are arriving (partition 3 of 6 within the windwave spectrum) | degree |\n| meanWaveDirectionPart4Of6 | | Mean direction from which waves are arriving (partition 4 of 6 within the windwave spectrum) | degree |\n| meanWaveDirectionPart5Of6 | | Mean direction from which waves are arriving (partition 5 of 6 within the windwave spectrum) | degree |\n| meanWaveDirectionPart6Of6 | | Mean direction from which waves are arriving (partition 6 of 6 within the windwave spectrum) | degree |\n| meanWaveDirectionalSpreadingPart1Of6 | Yes | Directional focus of waves (partition 1 of 6 within the windwave spectrum) | degree |\n| meanWaveDirectionalSpreadingPart2Of6 | | Directional focus of waves (partition 2 of 6 within the windwave spectrum) | degree |\n| meanWaveDirectionalSpreadingPart3Of6 | | Directional focus of waves (partition 3 of 6 within the windwave spectrum) | degree |\n| meanWaveDirectionalSpreadingPart4Of6 | | Directional focus of waves (partition 4 of 6 within the windwave spectrum) | degree |\n| meanWaveDirectionalSpreadingPart5Of6 | | Directional focus of waves (partition 5 of 6 within the windwave spectrum) | degree |\n| meanWaveDirectionalSpreadingPart6Of6 | | Directional focus of waves (partition 6 of 6 within the windwave spectrum) | degree |\n| peakPeriodPart1Of6 | Yes | Discrete or smoothed inverse frequency of the group of waves with the highest energy (partition 1 of 6 within the windwave spectrum) | second |\n| peakPeriodPart2Of6 | | Discrete or smoothed inverse frequency of the group of waves with the highest energy (partition 2 of 6 within the windwave spectrum) | second |\n| peakPeriodPart3Of6 | | Discrete or smoothed inverse frequency of the group of waves with the highest energy (partition 3 of 6 within the windwave spectrum) | second |\n| peakPeriodPart4Of6 | | Discrete or smoothed inverse frequency of the group of waves with the highest energy (partition 4 of 6 within the windwave spectrum) | second |\n| peakPeriodPart5Of6 | | Discrete or smoothed inverse frequency of the group of waves with the highest energy (partition 5 of 6 within the windwave spectrum) | second |\n| peakPeriodPart6Of6 | | Discrete or smoothed inverse frequency of the group of waves with the highest energy (partition 6 of 6 within the windwave spectrum) | second |\n| significantWaveHeightPart1Of6 | Yes | Spectral approximation of the observed mean wave height of the largest 33% of the waves within a 20 minute window (partition 1 of 6 within the windwave spectrum) | meter |\n| significantWaveHeightPart2Of6 | | Spectral approximation of the observed mean wave height of the largest 33% of the waves within a 20 minute window (partition 2 of 6 within the windwave spectrum) | meter |\n| significantWaveHeightPart3Of6 | | Spectral approximation of the observed mean wave height of the largest 33% of the waves within a 20 minute window (partition 3 of 6 within the windwave spectrum) | meter |\n| significantWaveHeightPart4Of6 | | Spectral approximation of the observed mean wave height of the largest 33% of the waves within a 20 minute window (partition 4 of 6 within the windwave spectrum) | meter |\n| significantWaveHeightPart5Of6 | | Spectral approximation of the observed mean wave height of the largest 33% of the waves within a 20 minute window (partition 5 of 6 within the windwave spectrum) | meter |\n| significantWaveHeightPart6Of6 | | Spectral approximation of the observed mean wave height of the largest 33% of the waves within a 20 minute window (partition 6 of 6 within the windwave spectrum) | meter |\n
\n\n## Weather Codes and Icons\nExpand the table below to view available weather codes and each code's description. If desired, obtain an icon for the weather code by substituing its filename into the following URL: https://static-assets.dtn.com/icons/weather-conditions/v1/{filename}.\n
Click to expand...\n\n| Weather code | Description | Icon file names |\n|--------------|-----------------------|---------------- |\n| 1 | Clear skies | clear skies.svg
clear_skies_night.svg |\n| 2 | Fair | fair.svg
fair_night.svg |\n| 3 | Partly cloudy | partly_cloudy.svg
partly_cloudy_night.svg \t|\n| 4 | Mostly cloudy | mostly_cloudy.svg
mostly_cloudy_night.svg \t|\n| 5 | Cloudy | cloudy.svg |\n| 6 | Mist | mist.svg |\n| 7 | Fog | fog.svg |\n| 8 | Drizzle | drizzle.svg \t|\n| 9 | Rain | rain.svg |\n| 10 | Heavy rain | heavy_rain.svg |\n| 11 | Freezing drizzle | freezing_drizzle.svg \t|\n| 12 | Freezing rain | freezing_rain.svg \t|\n| 13 | Freezing heavy rain | freezing_heavy_rain.svg \t|\n| 14 | Rain and snow | rain_and_snow.svg |\n| 15 | Heavy rain and snow | heavy_rain_and_snow.svg \t|\n| 16 | Snow | snow.svg \t|\n| 17 | Heavy snow | heavy_snow.svg \t|\n| 18 | Blizzard | blizzard.svg \t|\n| 19 | Ice pellets | ice_pellets.svg |\n| 20 | Rain showers | rain_showers.svg |\n| 21 | Heavy rain showers | heavy_rain_showers.svg \t|\n| 22 | Freezing rain showers | freezing_rain_showers.svg \t|\n| 23 | Heavy freezing rain showers | heavy_freezing_rain_showers.svg \t|\n| 24 | Rain and snow showers | rain_and_snow_showers.svg |\n| 25 | Heavy rain and snow showers | heavy_rain_and_snow_showers.svg \t|\n| 26 | Snow showers | snow_showers.svg \t|\n| 27 | Heavy snow showers | heavy_snow_showers.svg \t|\n| 28 | Hail showers | hail_showers.svg |\n| 29 | Heavy hail showers | heavy_hail_showers.svg \t|\n| 30 | Thunderstorms | thunderstorms.svg \t|\n| 31 | Severe thunderstorms | heavy_thunderstorms.svg |\n| 32 | Windy | windy.svg \t|
"}],"paths":{"/":{"get":{"tags":["Parameters"]}},"/v1/conditions/marine":{"get":{"tags":["Endpoints"],"summary":"Marine Conditions","description":"This endpoint provides forecast and historical conditions for any specific point in the ocean. Specify the location, the marine parameters of interest, and a time range up to 10 days long, from 10 years in the past to 10 days in the future. The API responds with the requested time series in GeoJSON format.\n\nCommon uses include weather monitoring, marine research, localized operations, and supply-chain management planning in ports and offshore platforms.\n\nUse query parameters to control the results in the response body:\n\n * Specify a location as latitude (`lat`) and longitude (`lon`).\n\n * Specify `parameters` to filter by specific marine weather parameters. Include multiple as comma-separated values. The API returns only defaults when no specific parameters are requested.\n\n * Two important parameters are `startTime` and `endTime`:\n + The API returns forecast data when `startTime` and `endTime` are in the future.\n + The API returns historical data when `startTime` and `endTime` are in the past.\n + The API returns only one exact timestamp when only `startTime` is specified.\n\n * Complete example: `https://weather.api.dtn.com/v1/conditions/marine?lat={lat}&lon={lon}&startTime={start_time}&endTime={end_time}¶meters={param1,param2}`\n","operationId":"marineConditions","security":[{"clientCredentials":[]}],"parameters":[{"in":"header","name":"Accept-Encoding","schema":{"type":"string","description":"Use this request header to communicate which compression algorithms the client understands. The API supports gzip.","example":"gzip"}},{"in":"header","name":"Accept","schema":{"type":"string","description":"Use this request header to specify an acceptable response media type.","example":"application/json"}},{"name":"lat","in":"query","schema":{"type":"number","format":"float"},"example":55.81,"required":true},{"name":"lon","in":"query","schema":{"type":"number","format":"float"},"example":3.88,"required":true},{"name":"startTime","in":"query","schema":{"type":"string","format":"date-time"},"example":"2023-06-30T10:00:00Z","required":true},{"name":"endTime","in":"query","schema":{"type":"string","format":"date-time"},"example":"2023-07-07T10:00:00Z"},{"name":"parameters","in":"query","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}},"example":"airTemp,seaSurfaceTemp,windSpeed10m"}],"responses":{"200":{"description":"A successful request.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"url":{"type":"string"},"type":{"type":"string"},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"geometry":{"type":"object","properties":{"type":{"type":"string"},"coordinates":{"type":"array","items":{"type":"number"}}}},"properties":{"type":"object","properties":{"2023-06-30T10:00:00Z":{"type":"object","properties":{"airPressureMeanSeaLevel":{"type":"number"},"airTemp":{"type":"number"},"airTemp10m":{"type":"number"},"dewPoint":{"type":"number"},"lightningProb":{"type":"number"},"maximumWaveHeight":{"type":"number"},"meanWaveDirection":{"type":"number"},"meanWaveDirectionalSpreading":{"type":"number"},"meanWavePeriodTm02":{"type":"number"},"meanWavePeriodTmm10":{"type":"number"},"peakPeriod":{"type":"number"},"precipAmount1h":{"type":"number"},"precipProb":{"type":"number"},"relativeHumidity":{"type":"number"},"seaIceConcentration":{"type":"number"},"seaSurfaceTemp":{"type":"number"},"significantWaveHeight":{"type":"number"},"significantWaveHeightRiskP90":{"type":"number"},"totalCurrentDirection":{"type":"number"},"totalCurrentVelocity":{"type":"number"},"totalSwellMeanWaveDirection":{"type":"number"},"totalSwellMeanWaveDirectionalSpreading":{"type":"number"},"totalSwellMeanWavePeriodTm02":{"type":"number"},"totalSwellMeanWavePeriodTmm10":{"type":"number"},"totalSwellPeakPeriod":{"type":"number"},"totalSwellSignificantWaveHeight":{"type":"number"},"visibility":{"type":"number"},"weatherCode":{"type":"number"},"windDirection100m":{"type":"number"},"windDirection10m":{"type":"number"},"windDirection50m":{"type":"number"},"windGust100m":{"type":"number"},"windGust10m":{"type":"number"},"windGust50m":{"type":"number"},"windSpeed100m":{"type":"number"},"windSpeed10m":{"type":"number"},"windSpeed50m":{"type":"number"},"windWaveMeanWaveDirection":{"type":"number"},"windWaveMeanWaveDirectionalSpreading":{"type":"number"},"windWaveMeanWavePeriodTm02":{"type":"number"},"windWaveMeanWavePeriodTmm10":{"type":"number"},"windWavePeakPeriod":{"type":"number"},"windWaveSignificantWaveHeight":{"type":"number"}}}}}}}}},"example":{"url":"https://weather.api.dtn.com/v1/conditions/marine?lat=55.81&lon=3.88¶meters=airPressureMeanSeaLevel,airTemp,airTemp10m,dewPoint,lightningProb,maximumWaveHeight,meanWaveDirection,meanWaveDirectionalSpreading,meanWavePeriodTm02,meanWavePeriodTmm10,peakPeriod,precipAmount1h,precipProb,relativeHumidity,seaIceConcentration,seaSurfaceTemp,significantWaveHeight,significantWaveHeightRiskP90,totalCurrentDirection,totalCurrentVelocity,totalSwellMeanWaveDirection,totalSwellMeanWaveDirectionalSpreading,totalSwellMeanWavePeriodTm02,totalSwellMeanWavePeriodTmm10,totalSwellPeakPeriod,totalSwellSignificantWaveHeight,visibility,weatherCode,windDirection100m,windDirection10m,windDirection50m,windGust100m,windGust10m,windGust50m,windSpeed100m,windSpeed10m,windSpeed50m,windWaveMeanWaveDirection,windWaveMeanWaveDirectionalSpreading,windWaveMeanWavePeriodTm02,windWaveMeanWavePeriodTmm10,windWavePeakPeriod,windWaveSignificantWaveHeight,seaSurfaceHeightAnomalyAstronomic,seaSurfaceHeightAnomalyResidual,seaSurfaceHeightAnomalyTotal&startTime=2023-08-11T16:13:53Z&endTime=2023-08-11T19:13:53Z","type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[3.88,55.81]},"properties":{"2023-08-11T16:00:00Z":{"airPressureMeanSeaLevel":1014.4,"airTemp":16.7,"airTemp10m":16.65,"dewPoint":15.6,"lightningProb":0,"maximumWaveHeight":2.06,"meanWaveDirection":259.95,"meanWaveDirectionalSpreading":64.07,"meanWavePeriodTm02":4.4,"meanWavePeriodTmm10":5.9,"peakPeriod":9.15,"precipAmount1h":0,"precipProb":0,"relativeHumidity":93,"seaIceConcentration":0,"seaSurfaceTemp":15.15,"significantWaveHeight":1.24,"significantWaveHeightRiskP90":1.35,"totalCurrentDirection":96.25,"totalCurrentVelocity":0.29,"totalSwellMeanWaveDirection":343.95,"totalSwellMeanWaveDirectionalSpreading":20.99,"totalSwellMeanWavePeriodTm02":7.25,"totalSwellMeanWavePeriodTmm10":8.25,"totalSwellPeakPeriod":9.15,"totalSwellSignificantWaveHeight":0.78,"visibility":24.04,"weatherCode":1,"windDirection100m":229,"windDirection10m":223,"windDirection50m":226,"windGust100m":11.4,"windGust10m":8.7,"windGust50m":10.6,"windSpeed100m":9.4,"windSpeed10m":6.7,"windSpeed50m":8.6,"windWaveMeanWaveDirection":211.75,"windWaveMeanWaveDirectionalSpreading":31.86,"windWaveMeanWavePeriodTm02":3.65,"windWaveMeanWavePeriodTmm10":4.25,"windWavePeakPeriod":4.7,"windWaveSignificantWaveHeight":0.95,"seaSurfaceHeightAnomalyAstronomic":0.06,"seaSurfaceHeightAnomalyResidual":-0.01,"seaSurfaceHeightAnomalyTotal":0.04},"2023-08-11T17:00:00Z":{"airPressureMeanSeaLevel":1014.5,"airTemp":16.75,"airTemp10m":16.7,"dewPoint":15.6,"lightningProb":0,"maximumWaveHeight":2,"meanWaveDirection":257.85,"meanWaveDirectionalSpreading":63.72,"meanWavePeriodTm02":4.35,"meanWavePeriodTmm10":5.85,"peakPeriod":9.15,"precipAmount1h":0,"precipProb":0,"relativeHumidity":93,"seaIceConcentration":0,"seaSurfaceTemp":15.15,"significantWaveHeight":1.19,"significantWaveHeightRiskP90":1.31,"totalCurrentDirection":104.2,"totalCurrentVelocity":0.25,"totalSwellMeanWaveDirection":343.85,"totalSwellMeanWaveDirectionalSpreading":24.43,"totalSwellMeanWavePeriodTm02":7.2,"totalSwellMeanWavePeriodTmm10":8.2,"totalSwellPeakPeriod":9.15,"totalSwellSignificantWaveHeight":0.76,"visibility":24.43,"weatherCode":1,"windDirection100m":230,"windDirection10m":222,"windDirection50m":226,"windGust100m":11.05,"windGust10m":8.45,"windGust50m":10.25,"windSpeed100m":9.05,"windSpeed10m":6.45,"windSpeed50m":8.25,"windWaveMeanWaveDirection":212.4,"windWaveMeanWaveDirectionalSpreading":31.88,"windWaveMeanWavePeriodTm02":3.65,"windWaveMeanWavePeriodTmm10":4.25,"windWavePeakPeriod":4.7,"windWaveSignificantWaveHeight":0.93,"seaSurfaceHeightAnomalyAstronomic":0.15,"seaSurfaceHeightAnomalyResidual":-0.03,"seaSurfaceHeightAnomalyTotal":0.13},"2023-08-11T18:00:00Z":{"airPressureMeanSeaLevel":1014.4,"airTemp":16.75,"airTemp10m":16.7,"dewPoint":15.55,"lightningProb":0,"maximumWaveHeight":1.93,"meanWaveDirection":255.65,"meanWaveDirectionalSpreading":63.6,"meanWavePeriodTm02":4.35,"meanWavePeriodTmm10":5.8,"peakPeriod":9.15,"precipAmount1h":0,"precipProb":0,"relativeHumidity":92.5,"seaIceConcentration":0,"seaSurfaceTemp":15.15,"significantWaveHeight":1.16,"significantWaveHeightRiskP90":1.27,"totalCurrentDirection":115.55,"totalCurrentVelocity":0.2,"totalSwellMeanWaveDirection":343.65,"totalSwellMeanWaveDirectionalSpreading":28.13,"totalSwellMeanWavePeriodTm02":7.15,"totalSwellMeanWavePeriodTmm10":8.15,"totalSwellPeakPeriod":9.15,"totalSwellSignificantWaveHeight":0.73,"visibility":24.05,"weatherCode":1,"windDirection100m":228,"windDirection10m":224,"windDirection50m":226,"windGust100m":10.8,"windGust10m":8.45,"windGust50m":10.1,"windSpeed100m":8.7,"windSpeed10m":6.35,"windSpeed50m":8,"windWaveMeanWaveDirection":212.5,"windWaveMeanWaveDirectionalSpreading":31.97,"windWaveMeanWavePeriodTm02":3.65,"windWaveMeanWavePeriodTmm10":4.25,"windWavePeakPeriod":4.7,"windWaveSignificantWaveHeight":0.9,"seaSurfaceHeightAnomalyAstronomic":-0.04,"seaSurfaceHeightAnomalyResidual":-0.01,"seaSurfaceHeightAnomalyTotal":-0.06},"2023-08-11T19:00:00Z":{"airPressureMeanSeaLevel":1014.6,"airTemp":16.7,"airTemp10m":16.65,"dewPoint":15.5,"lightningProb":0,"maximumWaveHeight":1.87,"meanWaveDirection":254.4,"meanWaveDirectionalSpreading":63.82,"meanWavePeriodTm02":4.3,"meanWavePeriodTmm10":5.75,"peakPeriod":9.15,"precipAmount1h":0,"precipProb":0,"relativeHumidity":92.5,"seaIceConcentration":0,"seaSurfaceTemp":15.05,"significantWaveHeight":1.12,"significantWaveHeightRiskP90":1.23,"totalCurrentDirection":133.05,"totalCurrentVelocity":0.14,"totalSwellMeanWaveDirection":342.45,"totalSwellMeanWaveDirectionalSpreading":31.18,"totalSwellMeanWavePeriodTm02":7.05,"totalSwellMeanWavePeriodTmm10":8.1,"totalSwellPeakPeriod":9.15,"totalSwellSignificantWaveHeight":0.71,"visibility":24.06,"weatherCode":1,"windDirection100m":223,"windDirection10m":216,"windDirection50m":220,"windGust100m":10.05,"windGust10m":7.65,"windGust50m":9.35,"windSpeed100m":8.35,"windSpeed10m":5.95,"windSpeed50m":7.65,"windWaveMeanWaveDirection":211.35,"windWaveMeanWaveDirectionalSpreading":32,"windWaveMeanWavePeriodTm02":3.65,"windWaveMeanWavePeriodTmm10":4.2,"windWavePeakPeriod":4.7,"windWaveSignificantWaveHeight":0.86,"seaSurfaceHeightAnomalyAstronomic":-0.13,"seaSurfaceHeightAnomalyResidual":-0.04,"seaSurfaceHeightAnomalyTotal":-0.16}}}]}}]}}}},"400":{"description":"An invalid request.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"bad-request","title":"Invalid Request","detail":"Validation failed.","status":400,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}},"401":{"description":"Unable to authenticate credentials.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"unauthorized","title":"Error while authenticating the user.","detail":"invalid token","status":401,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}},"406":{"description":"Unable to produce a response matching the Accept request header.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"not-acceptable","title":"Not Acceptable","detail":"The Accept header value is invalid or unsupported.","status":406,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}}},"x-codeSamples":[{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"Accept-Encoding: SOME_STRING_VALUE\");\nheaders = curl_slist_append(headers, \"Accept: SOME_STRING_VALUE\");\nheaders = curl_slist_append(headers, \"Authorization: Bearer REPLACE_BEARER_TOKEN\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"Accept\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\nIRestResponse response = client.Execute(request);"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"Accept\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Okhttp","source":"OkHttpClient client = new OkHttpClient();\n\nRequest request = new Request.Builder()\n .url(\"https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\")\n .get()\n .addHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n .addHeader(\"Accept\", \"SOME_STRING_VALUE\")\n .addHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"},{"lang":"Java + Unirest","source":"HttpResponse response = Unirest.get(\"https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\")\n .header(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n .header(\"Accept\", \"SOME_STRING_VALUE\")\n .header(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n .asString();"},{"lang":"Javascript + Jquery","source":"const settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\",\n \"method\": \"GET\",\n \"headers\": {\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n }\n};\n\n$.ajax(settings).done(function (response) {\n console.log(response);\n});"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n if (this.readyState === this.DONE) {\n console.log(this.responseText);\n }\n});\n\nxhr.open(\"GET\", \"https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\");\nxhr.setRequestHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"Accept\", \"SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\n\nxhr.send(data);"},{"lang":"Javascript + Jquery","source":"const settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\",\n \"method\": \"GET\",\n \"headers\": {\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n }\n};\n\n$.ajax(settings).done(function (response) {\n console.log(response);\n});"},{"lang":"Node + Native","source":"const http = require(\"https\");\n\nconst options = {\n \"method\": \"GET\",\n \"hostname\": \"weather.api.dtn.com\",\n \"port\": null,\n \"path\": \"/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\",\n \"headers\": {\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n }\n};\n\nconst req = http.request(options, function (res) {\n const chunks = [];\n\n res.on(\"data\", function (chunk) {\n chunks.push(chunk);\n });\n\n res.on(\"end\", function () {\n const body = Buffer.concat(chunks);\n console.log(body.toString());\n });\n});\n\nreq.end();"},{"lang":"Node + Request","source":"const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://weather.api.dtn.com/v1/conditions/marine',\n qs: {\n lat: 'SOME_NUMBER_VALUE',\n lon: 'SOME_NUMBER_VALUE',\n startTime: 'SOME_STRING_VALUE',\n endTime: 'SOME_STRING_VALUE',\n parameters: 'SOME_ARRAY_VALUE'\n },\n headers: {\n 'Accept-Encoding': 'SOME_STRING_VALUE',\n Accept: 'SOME_STRING_VALUE',\n Authorization: 'Bearer REPLACE_BEARER_TOKEN'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://weather.api.dtn.com/v1/conditions/marine\");\n\nreq.query({\n \"lat\": \"SOME_NUMBER_VALUE\",\n \"lon\": \"SOME_NUMBER_VALUE\",\n \"startTime\": \"SOME_STRING_VALUE\",\n \"endTime\": \"SOME_STRING_VALUE\",\n \"parameters\": \"SOME_ARRAY_VALUE\"\n});\n\nreq.headers({\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n});\n\nreq.end(function (res) {\n if (res.error) throw new Error(res.error);\n\n console.log(res.body);\n});\n"},{"lang":"Objc + Nsurlsession","source":"#import \n\nNSDictionary *headers = @{ @\"Accept-Encoding\": @\"SOME_STRING_VALUE\",\n @\"Accept\": @\"SOME_STRING_VALUE\",\n @\"Authorization\": @\"Bearer REPLACE_BEARER_TOKEN\" };\n\nNSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@\"https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\"]\n cachePolicy:NSURLRequestUseProtocolCachePolicy\n timeoutInterval:10.0];\n[request setHTTPMethod:@\"GET\"];\n[request setAllHTTPHeaderFields:headers];\n\nNSURLSession *session = [NSURLSession sharedSession];\nNSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request\n completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {\n if (error) {\n NSLog(@\"%@\", error);\n } else {\n NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;\n NSLog(@\"%@\", httpResponse);\n }\n }];\n[dataTask resume];"},{"lang":"Ocaml + Cohttp","source":"open Cohttp_lwt_unix\nopen Cohttp\nopen Lwt\n\nlet uri = Uri.of_string \"https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\" in\nlet headers = Header.add_list (Header.init ()) [\n (\"Accept-Encoding\", \"SOME_STRING_VALUE\");\n (\"Accept\", \"SOME_STRING_VALUE\");\n (\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\n] in\n\nClient.call ~headers `GET uri\n>>= fun (res, body_stream) ->\n (* Do stuff with the result *)"},{"lang":"Php + Curl","source":" \"https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"GET\",\n CURLOPT_HTTPHEADER => [\n \"Accept: SOME_STRING_VALUE\",\n \"Accept-Encoding: SOME_STRING_VALUE\",\n \"Authorization: Bearer REPLACE_BEARER_TOKEN\"\n ],\n]);\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}"},{"lang":"Php + Http1","source":"setUrl('https://weather.api.dtn.com/v1/conditions/marine');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'lat' => 'SOME_NUMBER_VALUE',\n 'lon' => 'SOME_NUMBER_VALUE',\n 'startTime' => 'SOME_STRING_VALUE',\n 'endTime' => 'SOME_STRING_VALUE',\n 'parameters' => 'SOME_ARRAY_VALUE'\n]);\n\n$request->setHeaders([\n 'Accept-Encoding' => 'SOME_STRING_VALUE',\n 'Accept' => 'SOME_STRING_VALUE',\n 'Authorization' => 'Bearer REPLACE_BEARER_TOKEN'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}"},{"lang":"Php + Http2","source":"setRequestUrl('https://weather.api.dtn.com/v1/conditions/marine');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n 'lat' => 'SOME_NUMBER_VALUE',\n 'lon' => 'SOME_NUMBER_VALUE',\n 'startTime' => 'SOME_STRING_VALUE',\n 'endTime' => 'SOME_STRING_VALUE',\n 'parameters' => 'SOME_ARRAY_VALUE'\n]));\n\n$request->setHeaders([\n 'Accept-Encoding' => 'SOME_STRING_VALUE',\n 'Accept' => 'SOME_STRING_VALUE',\n 'Authorization' => 'Bearer REPLACE_BEARER_TOKEN'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"weather.api.dtn.com\")\n\nheaders = {\n 'Accept-Encoding': \"SOME_STRING_VALUE\",\n 'Accept': \"SOME_STRING_VALUE\",\n 'Authorization': \"Bearer REPLACE_BEARER_TOKEN\"\n }\n\nconn.request(\"GET\", \"/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://weather.api.dtn.com/v1/conditions/marine\"\n\nquerystring = {\"lat\":\"SOME_NUMBER_VALUE\",\"lon\":\"SOME_NUMBER_VALUE\",\"startTime\":\"SOME_STRING_VALUE\",\"endTime\":\"SOME_STRING_VALUE\",\"parameters\":\"SOME_ARRAY_VALUE\"}\n\nheaders = {\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Accept-Encoding\"] = 'SOME_STRING_VALUE'\nrequest[\"Accept\"] = 'SOME_STRING_VALUE'\nrequest[\"Authorization\"] = 'Bearer REPLACE_BEARER_TOKEN'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Shell + Curl","source":"curl --request GET \\\n --url 'https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE' \\\n --header 'Accept: SOME_STRING_VALUE' \\\n --header 'Accept-Encoding: SOME_STRING_VALUE' \\\n --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'"},{"lang":"Shell + Httpie","source":"http GET 'https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE' \\\n Accept:SOME_STRING_VALUE \\\n Accept-Encoding:SOME_STRING_VALUE \\\n Authorization:'Bearer REPLACE_BEARER_TOKEN'"},{"lang":"Shell + Wget","source":"wget --quiet \\\n --method GET \\\n --header 'Accept-Encoding: SOME_STRING_VALUE' \\\n --header 'Accept: SOME_STRING_VALUE' \\\n --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \\\n --output-document \\\n - 'https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE'"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://weather.api.dtn.com/v1/conditions/marine?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE¶meters=SOME_ARRAY_VALUE\")! as URL,\n cachePolicy: .useProtocolCachePolicy,\n timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n if (error != nil) {\n print(error)\n } else {\n let httpResponse = response as? HTTPURLResponse\n print(httpResponse)\n }\n})\n\ndataTask.resume()"}]}},"/v1/conditions/marine/route":{"post":{"tags":["Endpoints"],"summary":"Marine Route","description":"This endpoint is designed for complex shipping applications, route planning, and back-track vessel analysis. Submit up to 1000 waypoints and timestamps in a single request body. The API responds with the marine weather conditions for each location and timestamp pair in GeoJSON format.\n\nQuota calculation: Please note that the quota charged is based on the number of locations or waypoints in your API requests, and not the number of requests. One request with 1000 locations uses the same API quota as 1000 requests with one location each.\n","operationId":"marineRoute","security":[{"clientCredentials":[]}],"parameters":[{"in":"header","name":"Accept-Encoding","schema":{"type":"string","description":"Use this request header to communicate which compression algorithms the client understands. The API supports gzip.","example":"gzip"}},{"in":"header","name":"Accept","schema":{"type":"string","description":"Use this request header to specify an acceptable response media type.","example":"application/json"}},{"name":"parameters","in":"query","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}},"example":"airTemp,seaSurfaceTemp,windSpeed10m"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["timestamp","lat","lon"],"properties":{"timestamp":{"type":"string","format":"date-time"},"lat":{"type":"number","format":"float"},"lon":{"type":"number","format":"float"},"parameters":{"type":"array","items":{"type":"string"}}}},"example":[{"timestamp":"2023-08-10T16:00:00Z","lat":55.81,"lon":3.88,"parameters":["airPressureMeanSeaLevel","airTemp","airTemp10m","dewPoint","lightningProb","maximumWaveHeight","meanWaveDirection","meanWaveDirectionalSpreading","meanWavePeriodTm02","meanWavePeriodTmm10","peakPeriod","precipAmount1h","precipProb","relativeHumidity","seaIceConcentration","seaSurfaceTemp","significantWaveHeight","significantWaveHeightRiskP90","totalCurrentDirection","totalCurrentVelocity","totalSwellMeanWaveDirection","totalSwellMeanWaveDirectionalSpreading","totalSwellMeanWavePeriodTm02","totalSwellMeanWavePeriodTmm10","totalSwellPeakPeriod","totalSwellSignificantWaveHeight","visibility","weatherCode","windDirection100m","windDirection10m","windDirection50m","windGust100m","windGust10m","windGust50m","windSpeed100m","windSpeed10m","windSpeed50m","windWaveMeanWaveDirection","windWaveMeanWaveDirectionalSpreading","windWaveMeanWavePeriodTm02","windWaveMeanWavePeriodTmm10","windWavePeakPeriod","windWaveSignificantWaveHeight"]},{"timestamp":"2023-08-10T17:00:00Z","lat":57.48,"lon":2.49,"parameters":["airPressureMeanSeaLevel","airTemp","airTemp10m","dewPoint","lightningProb","maximumWaveHeight","meanWaveDirection","meanWaveDirectionalSpreading","meanWavePeriodTm02","meanWavePeriodTmm10","peakPeriod","precipAmount1h","precipProb","relativeHumidity","seaIceConcentration","seaSurfaceTemp","significantWaveHeight","significantWaveHeightRiskP90","totalCurrentDirection","totalCurrentVelocity","totalSwellMeanWaveDirection","totalSwellMeanWaveDirectionalSpreading","totalSwellMeanWavePeriodTm02","totalSwellMeanWavePeriodTmm10","totalSwellPeakPeriod","totalSwellSignificantWaveHeight","visibility","weatherCode","windDirection100m","windDirection10m","windDirection50m","windGust100m","windGust10m","windGust50m","windSpeed100m","windSpeed10m","windSpeed50m","windWaveMeanWaveDirection","windWaveMeanWaveDirectionalSpreading","windWaveMeanWavePeriodTm02","windWaveMeanWavePeriodTmm10","windWavePeakPeriod","windWaveSignificantWaveHeight"]}]}}}},"responses":{"200":{"description":"A successful request.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"url":{"type":"string"},"type":{"type":"string"},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"geometry":{"type":"object","properties":{"type":{"type":"string"},"coordinates":{"type":"array","items":{"type":"number"}}}},"properties":{"type":"object","properties":{"2023-06-30T10:00:00Z":{"type":"object","properties":{"airPressureMeanSeaLevel":{"type":"number"},"airTemp":{"type":"number"},"airTemp10m":{"type":"number"},"dewPoint":{"type":"number"},"lightningProb":{"type":"number"},"maximumWaveHeight":{"type":"number"},"meanWaveDirection":{"type":"number"},"meanWaveDirectionalSpreading":{"type":"number"},"meanWavePeriodTm02":{"type":"number"},"meanWavePeriodTmm10":{"type":"number"},"peakPeriod":{"type":"number"},"precipAmount1h":{"type":"number"},"precipProb":{"type":"number"},"relativeHumidity":{"type":"number"},"seaIceConcentration":{"type":"number"},"seaSurfaceTemp":{"type":"number"},"significantWaveHeight":{"type":"number"},"significantWaveHeightRiskP90":{"type":"number"},"totalCurrentDirection":{"type":"number"},"totalCurrentVelocity":{"type":"number"},"totalSwellMeanWaveDirection":{"type":"number"},"totalSwellMeanWaveDirectionalSpreading":{"type":"number"},"totalSwellMeanWavePeriodTm02":{"type":"number"},"totalSwellMeanWavePeriodTmm10":{"type":"number"},"totalSwellPeakPeriod":{"type":"number"},"totalSwellSignificantWaveHeight":{"type":"number"},"visibility":{"type":"number"},"weatherCode":{"type":"number"},"windDirection100m":{"type":"number"},"windDirection10m":{"type":"number"},"windDirection50m":{"type":"number"},"windGust100m":{"type":"number"},"windGust10m":{"type":"number"},"windGust50m":{"type":"number"},"windSpeed100m":{"type":"number"},"windSpeed10m":{"type":"number"},"windSpeed50m":{"type":"number"},"windWaveMeanWaveDirection":{"type":"number"},"windWaveMeanWaveDirectionalSpreading":{"type":"number"},"windWaveMeanWavePeriodTm02":{"type":"number"},"windWaveMeanWavePeriodTmm10":{"type":"number"},"windWavePeakPeriod":{"type":"number"},"windWaveSignificantWaveHeight":{"type":"number"}}}}}}}}},"example":{"url":"https://weather.api.dtn.com/v1/conditions/marine?lat=55.81&lon=3.88¶meters=airPressureMeanSeaLevel,airTemp,airTemp10m,dewPoint,lightningProb,maximumWaveHeight,meanWaveDirection,meanWaveDirectionalSpreading,meanWavePeriodTm02,meanWavePeriodTmm10,peakPeriod,precipAmount1h,precipProb,relativeHumidity,seaIceConcentration,seaSurfaceTemp,significantWaveHeight,significantWaveHeightRiskP90,totalCurrentDirection,totalCurrentVelocity,totalSwellMeanWaveDirection,totalSwellMeanWaveDirectionalSpreading,totalSwellMeanWavePeriodTm02,totalSwellMeanWavePeriodTmm10,totalSwellPeakPeriod,totalSwellSignificantWaveHeight,visibility,weatherCode,windDirection100m,windDirection10m,windDirection50m,windGust100m,windGust10m,windGust50m,windSpeed100m,windSpeed10m,windSpeed50m,windWaveMeanWaveDirection,windWaveMeanWaveDirectionalSpreading,windWaveMeanWavePeriodTm02,windWaveMeanWavePeriodTmm10,windWavePeakPeriod,windWaveSignificantWaveHeight,seaSurfaceHeightAnomalyAstronomic,seaSurfaceHeightAnomalyResidual,seaSurfaceHeightAnomalyTotal&startTime=2023-08-11T16:13:53Z&endTime=2023-08-11T19:13:53Z","type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[3.88,55.81]},"properties":{"2023-08-11T16:00:00Z":{"airPressureMeanSeaLevel":1014.4,"airTemp":16.7,"airTemp10m":16.65,"dewPoint":15.6,"lightningProb":0,"maximumWaveHeight":2.06,"meanWaveDirection":259.95,"meanWaveDirectionalSpreading":64.07,"meanWavePeriodTm02":4.4,"meanWavePeriodTmm10":5.9,"peakPeriod":9.15,"precipAmount1h":0,"precipProb":0,"relativeHumidity":93,"seaIceConcentration":0,"seaSurfaceTemp":15.15,"significantWaveHeight":1.24,"significantWaveHeightRiskP90":1.35,"totalCurrentDirection":96.25,"totalCurrentVelocity":0.29,"totalSwellMeanWaveDirection":343.95,"totalSwellMeanWaveDirectionalSpreading":20.99,"totalSwellMeanWavePeriodTm02":7.25,"totalSwellMeanWavePeriodTmm10":8.25,"totalSwellPeakPeriod":9.15,"totalSwellSignificantWaveHeight":0.78,"visibility":24.04,"weatherCode":1,"windDirection100m":229,"windDirection10m":223,"windDirection50m":226,"windGust100m":11.4,"windGust10m":8.7,"windGust50m":10.6,"windSpeed100m":9.4,"windSpeed10m":6.7,"windSpeed50m":8.6,"windWaveMeanWaveDirection":211.75,"windWaveMeanWaveDirectionalSpreading":31.86,"windWaveMeanWavePeriodTm02":3.65,"windWaveMeanWavePeriodTmm10":4.25,"windWavePeakPeriod":4.7,"windWaveSignificantWaveHeight":0.95,"seaSurfaceHeightAnomalyAstronomic":0.06,"seaSurfaceHeightAnomalyResidual":-0.01,"seaSurfaceHeightAnomalyTotal":0.04},"2023-08-11T17:00:00Z":{"airPressureMeanSeaLevel":1014.5,"airTemp":16.75,"airTemp10m":16.7,"dewPoint":15.6,"lightningProb":0,"maximumWaveHeight":2,"meanWaveDirection":257.85,"meanWaveDirectionalSpreading":63.72,"meanWavePeriodTm02":4.35,"meanWavePeriodTmm10":5.85,"peakPeriod":9.15,"precipAmount1h":0,"precipProb":0,"relativeHumidity":93,"seaIceConcentration":0,"seaSurfaceTemp":15.15,"significantWaveHeight":1.19,"significantWaveHeightRiskP90":1.31,"totalCurrentDirection":104.2,"totalCurrentVelocity":0.25,"totalSwellMeanWaveDirection":343.85,"totalSwellMeanWaveDirectionalSpreading":24.43,"totalSwellMeanWavePeriodTm02":7.2,"totalSwellMeanWavePeriodTmm10":8.2,"totalSwellPeakPeriod":9.15,"totalSwellSignificantWaveHeight":0.76,"visibility":24.43,"weatherCode":1,"windDirection100m":230,"windDirection10m":222,"windDirection50m":226,"windGust100m":11.05,"windGust10m":8.45,"windGust50m":10.25,"windSpeed100m":9.05,"windSpeed10m":6.45,"windSpeed50m":8.25,"windWaveMeanWaveDirection":212.4,"windWaveMeanWaveDirectionalSpreading":31.88,"windWaveMeanWavePeriodTm02":3.65,"windWaveMeanWavePeriodTmm10":4.25,"windWavePeakPeriod":4.7,"windWaveSignificantWaveHeight":0.93,"seaSurfaceHeightAnomalyAstronomic":0.15,"seaSurfaceHeightAnomalyResidual":-0.03,"seaSurfaceHeightAnomalyTotal":0.13},"2023-08-11T18:00:00Z":{"airPressureMeanSeaLevel":1014.4,"airTemp":16.75,"airTemp10m":16.7,"dewPoint":15.55,"lightningProb":0,"maximumWaveHeight":1.93,"meanWaveDirection":255.65,"meanWaveDirectionalSpreading":63.6,"meanWavePeriodTm02":4.35,"meanWavePeriodTmm10":5.8,"peakPeriod":9.15,"precipAmount1h":0,"precipProb":0,"relativeHumidity":92.5,"seaIceConcentration":0,"seaSurfaceTemp":15.15,"significantWaveHeight":1.16,"significantWaveHeightRiskP90":1.27,"totalCurrentDirection":115.55,"totalCurrentVelocity":0.2,"totalSwellMeanWaveDirection":343.65,"totalSwellMeanWaveDirectionalSpreading":28.13,"totalSwellMeanWavePeriodTm02":7.15,"totalSwellMeanWavePeriodTmm10":8.15,"totalSwellPeakPeriod":9.15,"totalSwellSignificantWaveHeight":0.73,"visibility":24.05,"weatherCode":1,"windDirection100m":228,"windDirection10m":224,"windDirection50m":226,"windGust100m":10.8,"windGust10m":8.45,"windGust50m":10.1,"windSpeed100m":8.7,"windSpeed10m":6.35,"windSpeed50m":8,"windWaveMeanWaveDirection":212.5,"windWaveMeanWaveDirectionalSpreading":31.97,"windWaveMeanWavePeriodTm02":3.65,"windWaveMeanWavePeriodTmm10":4.25,"windWavePeakPeriod":4.7,"windWaveSignificantWaveHeight":0.9,"seaSurfaceHeightAnomalyAstronomic":-0.04,"seaSurfaceHeightAnomalyResidual":-0.01,"seaSurfaceHeightAnomalyTotal":-0.06},"2023-08-11T19:00:00Z":{"airPressureMeanSeaLevel":1014.6,"airTemp":16.7,"airTemp10m":16.65,"dewPoint":15.5,"lightningProb":0,"maximumWaveHeight":1.87,"meanWaveDirection":254.4,"meanWaveDirectionalSpreading":63.82,"meanWavePeriodTm02":4.3,"meanWavePeriodTmm10":5.75,"peakPeriod":9.15,"precipAmount1h":0,"precipProb":0,"relativeHumidity":92.5,"seaIceConcentration":0,"seaSurfaceTemp":15.05,"significantWaveHeight":1.12,"significantWaveHeightRiskP90":1.23,"totalCurrentDirection":133.05,"totalCurrentVelocity":0.14,"totalSwellMeanWaveDirection":342.45,"totalSwellMeanWaveDirectionalSpreading":31.18,"totalSwellMeanWavePeriodTm02":7.05,"totalSwellMeanWavePeriodTmm10":8.1,"totalSwellPeakPeriod":9.15,"totalSwellSignificantWaveHeight":0.71,"visibility":24.06,"weatherCode":1,"windDirection100m":223,"windDirection10m":216,"windDirection50m":220,"windGust100m":10.05,"windGust10m":7.65,"windGust50m":9.35,"windSpeed100m":8.35,"windSpeed10m":5.95,"windSpeed50m":7.65,"windWaveMeanWaveDirection":211.35,"windWaveMeanWaveDirectionalSpreading":32,"windWaveMeanWavePeriodTm02":3.65,"windWaveMeanWavePeriodTmm10":4.2,"windWavePeakPeriod":4.7,"windWaveSignificantWaveHeight":0.86,"seaSurfaceHeightAnomalyAstronomic":-0.13,"seaSurfaceHeightAnomalyResidual":-0.04,"seaSurfaceHeightAnomalyTotal":-0.16}}}]}}]}}}},"400":{"description":"An invalid request.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"bad-request","title":"Invalid Request","detail":"Validation failed.","status":400,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}},"401":{"description":"Unable to authenticate credentials.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"unauthorized","title":"Error while authenticating the user.","detail":"invalid token","status":401,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}},"406":{"description":"Unable to produce a response matching the Accept request header.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"not-acceptable","title":"Not Acceptable","detail":"The Accept header value is invalid or unsupported.","status":406,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}}},"x-codeSamples":[{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application/json\");\nheaders = curl_slist_append(headers, \"Accept-Encoding: SOME_STRING_VALUE\");\nheaders = curl_slist_append(headers, \"Accept: SOME_STRING_VALUE\");\nheaders = curl_slist_append(headers, \"Authorization: Bearer REPLACE_BEARER_TOKEN\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"[{\\\"timestamp\\\":\\\"2023-08-10T16:00:00Z\\\",\\\"lat\\\":55.81,\\\"lon\\\":3.88,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]},{\\\"timestamp\\\":\\\"2023-08-10T17:00:00Z\\\",\\\"lat\\\":57.48,\\\"lon\\\":2.49,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]}]\");\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\");\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"Accept\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\nrequest.AddParameter(\"application/json\", \"[{\\\"timestamp\\\":\\\"2023-08-10T16:00:00Z\\\",\\\"lat\\\":55.81,\\\"lon\\\":3.88,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]},{\\\"timestamp\\\":\\\"2023-08-10T17:00:00Z\\\",\\\"lat\\\":57.48,\\\"lon\\\":2.49,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]}]\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\"\n\n\tpayload := strings.NewReader(\"[{\\\"timestamp\\\":\\\"2023-08-10T16:00:00Z\\\",\\\"lat\\\":55.81,\\\"lon\\\":3.88,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]},{\\\"timestamp\\\":\\\"2023-08-10T17:00:00Z\\\",\\\"lat\\\":57.48,\\\"lon\\\":2.49,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]}]\")\n\n\treq, _ := http.NewRequest(\"POST\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"Accept\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Okhttp","source":"OkHttpClient client = new OkHttpClient();\n\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"[{\\\"timestamp\\\":\\\"2023-08-10T16:00:00Z\\\",\\\"lat\\\":55.81,\\\"lon\\\":3.88,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]},{\\\"timestamp\\\":\\\"2023-08-10T17:00:00Z\\\",\\\"lat\\\":57.48,\\\"lon\\\":2.49,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]}]\");\nRequest request = new Request.Builder()\n .url(\"https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\")\n .post(body)\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n .addHeader(\"Accept\", \"SOME_STRING_VALUE\")\n .addHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"},{"lang":"Java + Unirest","source":"HttpResponse response = Unirest.post(\"https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\")\n .header(\"content-type\", \"application/json\")\n .header(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n .header(\"Accept\", \"SOME_STRING_VALUE\")\n .header(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n .body(\"[{\\\"timestamp\\\":\\\"2023-08-10T16:00:00Z\\\",\\\"lat\\\":55.81,\\\"lon\\\":3.88,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]},{\\\"timestamp\\\":\\\"2023-08-10T17:00:00Z\\\",\\\"lat\\\":57.48,\\\"lon\\\":2.49,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]}]\")\n .asString();"},{"lang":"Javascript + Jquery","source":"const settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\",\n \"method\": \"POST\",\n \"headers\": {\n \"content-type\": \"application/json\",\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n },\n \"processData\": false,\n \"data\": \"[{\\\"timestamp\\\":\\\"2023-08-10T16:00:00Z\\\",\\\"lat\\\":55.81,\\\"lon\\\":3.88,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]},{\\\"timestamp\\\":\\\"2023-08-10T17:00:00Z\\\",\\\"lat\\\":57.48,\\\"lon\\\":2.49,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]}]\"\n};\n\n$.ajax(settings).done(function (response) {\n console.log(response);\n});"},{"lang":"Javascript + Xhr","source":"const data = JSON.stringify([\n {\n \"timestamp\": \"2023-08-10T16:00:00Z\",\n \"lat\": 55.81,\n \"lon\": 3.88,\n \"parameters\": [\n \"airPressureMeanSeaLevel\",\n \"airTemp\",\n \"airTemp10m\",\n \"dewPoint\",\n \"lightningProb\",\n \"maximumWaveHeight\",\n \"meanWaveDirection\",\n \"meanWaveDirectionalSpreading\",\n \"meanWavePeriodTm02\",\n \"meanWavePeriodTmm10\",\n \"peakPeriod\",\n \"precipAmount1h\",\n \"precipProb\",\n \"relativeHumidity\",\n \"seaIceConcentration\",\n \"seaSurfaceTemp\",\n \"significantWaveHeight\",\n \"significantWaveHeightRiskP90\",\n \"totalCurrentDirection\",\n \"totalCurrentVelocity\",\n \"totalSwellMeanWaveDirection\",\n \"totalSwellMeanWaveDirectionalSpreading\",\n \"totalSwellMeanWavePeriodTm02\",\n \"totalSwellMeanWavePeriodTmm10\",\n \"totalSwellPeakPeriod\",\n \"totalSwellSignificantWaveHeight\",\n \"visibility\",\n \"weatherCode\",\n \"windDirection100m\",\n \"windDirection10m\",\n \"windDirection50m\",\n \"windGust100m\",\n \"windGust10m\",\n \"windGust50m\",\n \"windSpeed100m\",\n \"windSpeed10m\",\n \"windSpeed50m\",\n \"windWaveMeanWaveDirection\",\n \"windWaveMeanWaveDirectionalSpreading\",\n \"windWaveMeanWavePeriodTm02\",\n \"windWaveMeanWavePeriodTmm10\",\n \"windWavePeakPeriod\",\n \"windWaveSignificantWaveHeight\"\n ]\n },\n {\n \"timestamp\": \"2023-08-10T17:00:00Z\",\n \"lat\": 57.48,\n \"lon\": 2.49,\n \"parameters\": [\n \"airPressureMeanSeaLevel\",\n \"airTemp\",\n \"airTemp10m\",\n \"dewPoint\",\n \"lightningProb\",\n \"maximumWaveHeight\",\n \"meanWaveDirection\",\n \"meanWaveDirectionalSpreading\",\n \"meanWavePeriodTm02\",\n \"meanWavePeriodTmm10\",\n \"peakPeriod\",\n \"precipAmount1h\",\n \"precipProb\",\n \"relativeHumidity\",\n \"seaIceConcentration\",\n \"seaSurfaceTemp\",\n \"significantWaveHeight\",\n \"significantWaveHeightRiskP90\",\n \"totalCurrentDirection\",\n \"totalCurrentVelocity\",\n \"totalSwellMeanWaveDirection\",\n \"totalSwellMeanWaveDirectionalSpreading\",\n \"totalSwellMeanWavePeriodTm02\",\n \"totalSwellMeanWavePeriodTmm10\",\n \"totalSwellPeakPeriod\",\n \"totalSwellSignificantWaveHeight\",\n \"visibility\",\n \"weatherCode\",\n \"windDirection100m\",\n \"windDirection10m\",\n \"windDirection50m\",\n \"windGust100m\",\n \"windGust10m\",\n \"windGust50m\",\n \"windSpeed100m\",\n \"windSpeed10m\",\n \"windSpeed50m\",\n \"windWaveMeanWaveDirection\",\n \"windWaveMeanWaveDirectionalSpreading\",\n \"windWaveMeanWavePeriodTm02\",\n \"windWaveMeanWavePeriodTmm10\",\n \"windWavePeakPeriod\",\n \"windWaveSignificantWaveHeight\"\n ]\n }\n]);\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n if (this.readyState === this.DONE) {\n console.log(this.responseText);\n }\n});\n\nxhr.open(\"POST\", \"https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\nxhr.setRequestHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"Accept\", \"SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\n\nxhr.send(data);"},{"lang":"Javascript + Jquery","source":"const settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\",\n \"method\": \"POST\",\n \"headers\": {\n \"content-type\": \"application/json\",\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n },\n \"processData\": false,\n \"data\": \"[{\\\"timestamp\\\":\\\"2023-08-10T16:00:00Z\\\",\\\"lat\\\":55.81,\\\"lon\\\":3.88,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]},{\\\"timestamp\\\":\\\"2023-08-10T17:00:00Z\\\",\\\"lat\\\":57.48,\\\"lon\\\":2.49,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]}]\"\n};\n\n$.ajax(settings).done(function (response) {\n console.log(response);\n});"},{"lang":"Node + Native","source":"const http = require(\"https\");\n\nconst options = {\n \"method\": \"POST\",\n \"hostname\": \"weather.api.dtn.com\",\n \"port\": null,\n \"path\": \"/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\",\n \"headers\": {\n \"content-type\": \"application/json\",\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n }\n};\n\nconst req = http.request(options, function (res) {\n const chunks = [];\n\n res.on(\"data\", function (chunk) {\n chunks.push(chunk);\n });\n\n res.on(\"end\", function () {\n const body = Buffer.concat(chunks);\n console.log(body.toString());\n });\n});\n\nreq.write(JSON.stringify([\n {\n timestamp: '2023-08-10T16:00:00Z',\n lat: 55.81,\n lon: 3.88,\n parameters: [\n 'airPressureMeanSeaLevel',\n 'airTemp',\n 'airTemp10m',\n 'dewPoint',\n 'lightningProb',\n 'maximumWaveHeight',\n 'meanWaveDirection',\n 'meanWaveDirectionalSpreading',\n 'meanWavePeriodTm02',\n 'meanWavePeriodTmm10',\n 'peakPeriod',\n 'precipAmount1h',\n 'precipProb',\n 'relativeHumidity',\n 'seaIceConcentration',\n 'seaSurfaceTemp',\n 'significantWaveHeight',\n 'significantWaveHeightRiskP90',\n 'totalCurrentDirection',\n 'totalCurrentVelocity',\n 'totalSwellMeanWaveDirection',\n 'totalSwellMeanWaveDirectionalSpreading',\n 'totalSwellMeanWavePeriodTm02',\n 'totalSwellMeanWavePeriodTmm10',\n 'totalSwellPeakPeriod',\n 'totalSwellSignificantWaveHeight',\n 'visibility',\n 'weatherCode',\n 'windDirection100m',\n 'windDirection10m',\n 'windDirection50m',\n 'windGust100m',\n 'windGust10m',\n 'windGust50m',\n 'windSpeed100m',\n 'windSpeed10m',\n 'windSpeed50m',\n 'windWaveMeanWaveDirection',\n 'windWaveMeanWaveDirectionalSpreading',\n 'windWaveMeanWavePeriodTm02',\n 'windWaveMeanWavePeriodTmm10',\n 'windWavePeakPeriod',\n 'windWaveSignificantWaveHeight'\n ]\n },\n {\n timestamp: '2023-08-10T17:00:00Z',\n lat: 57.48,\n lon: 2.49,\n parameters: [\n 'airPressureMeanSeaLevel',\n 'airTemp',\n 'airTemp10m',\n 'dewPoint',\n 'lightningProb',\n 'maximumWaveHeight',\n 'meanWaveDirection',\n 'meanWaveDirectionalSpreading',\n 'meanWavePeriodTm02',\n 'meanWavePeriodTmm10',\n 'peakPeriod',\n 'precipAmount1h',\n 'precipProb',\n 'relativeHumidity',\n 'seaIceConcentration',\n 'seaSurfaceTemp',\n 'significantWaveHeight',\n 'significantWaveHeightRiskP90',\n 'totalCurrentDirection',\n 'totalCurrentVelocity',\n 'totalSwellMeanWaveDirection',\n 'totalSwellMeanWaveDirectionalSpreading',\n 'totalSwellMeanWavePeriodTm02',\n 'totalSwellMeanWavePeriodTmm10',\n 'totalSwellPeakPeriod',\n 'totalSwellSignificantWaveHeight',\n 'visibility',\n 'weatherCode',\n 'windDirection100m',\n 'windDirection10m',\n 'windDirection50m',\n 'windGust100m',\n 'windGust10m',\n 'windGust50m',\n 'windSpeed100m',\n 'windSpeed10m',\n 'windSpeed50m',\n 'windWaveMeanWaveDirection',\n 'windWaveMeanWaveDirectionalSpreading',\n 'windWaveMeanWavePeriodTm02',\n 'windWaveMeanWavePeriodTmm10',\n 'windWavePeakPeriod',\n 'windWaveSignificantWaveHeight'\n ]\n }\n]));\nreq.end();"},{"lang":"Node + Request","source":"const request = require('request');\n\nconst options = {\n method: 'POST',\n url: 'https://weather.api.dtn.com/v1/conditions/marine/route',\n qs: {parameters: 'SOME_ARRAY_VALUE'},\n headers: {\n 'content-type': 'application/json',\n 'Accept-Encoding': 'SOME_STRING_VALUE',\n Accept: 'SOME_STRING_VALUE',\n Authorization: 'Bearer REPLACE_BEARER_TOKEN'\n },\n body: [\n {\n timestamp: '2023-08-10T16:00:00Z',\n lat: 55.81,\n lon: 3.88,\n parameters: [\n 'airPressureMeanSeaLevel',\n 'airTemp',\n 'airTemp10m',\n 'dewPoint',\n 'lightningProb',\n 'maximumWaveHeight',\n 'meanWaveDirection',\n 'meanWaveDirectionalSpreading',\n 'meanWavePeriodTm02',\n 'meanWavePeriodTmm10',\n 'peakPeriod',\n 'precipAmount1h',\n 'precipProb',\n 'relativeHumidity',\n 'seaIceConcentration',\n 'seaSurfaceTemp',\n 'significantWaveHeight',\n 'significantWaveHeightRiskP90',\n 'totalCurrentDirection',\n 'totalCurrentVelocity',\n 'totalSwellMeanWaveDirection',\n 'totalSwellMeanWaveDirectionalSpreading',\n 'totalSwellMeanWavePeriodTm02',\n 'totalSwellMeanWavePeriodTmm10',\n 'totalSwellPeakPeriod',\n 'totalSwellSignificantWaveHeight',\n 'visibility',\n 'weatherCode',\n 'windDirection100m',\n 'windDirection10m',\n 'windDirection50m',\n 'windGust100m',\n 'windGust10m',\n 'windGust50m',\n 'windSpeed100m',\n 'windSpeed10m',\n 'windSpeed50m',\n 'windWaveMeanWaveDirection',\n 'windWaveMeanWaveDirectionalSpreading',\n 'windWaveMeanWavePeriodTm02',\n 'windWaveMeanWavePeriodTmm10',\n 'windWavePeakPeriod',\n 'windWaveSignificantWaveHeight'\n ]\n },\n {\n timestamp: '2023-08-10T17:00:00Z',\n lat: 57.48,\n lon: 2.49,\n parameters: [\n 'airPressureMeanSeaLevel',\n 'airTemp',\n 'airTemp10m',\n 'dewPoint',\n 'lightningProb',\n 'maximumWaveHeight',\n 'meanWaveDirection',\n 'meanWaveDirectionalSpreading',\n 'meanWavePeriodTm02',\n 'meanWavePeriodTmm10',\n 'peakPeriod',\n 'precipAmount1h',\n 'precipProb',\n 'relativeHumidity',\n 'seaIceConcentration',\n 'seaSurfaceTemp',\n 'significantWaveHeight',\n 'significantWaveHeightRiskP90',\n 'totalCurrentDirection',\n 'totalCurrentVelocity',\n 'totalSwellMeanWaveDirection',\n 'totalSwellMeanWaveDirectionalSpreading',\n 'totalSwellMeanWavePeriodTm02',\n 'totalSwellMeanWavePeriodTmm10',\n 'totalSwellPeakPeriod',\n 'totalSwellSignificantWaveHeight',\n 'visibility',\n 'weatherCode',\n 'windDirection100m',\n 'windDirection10m',\n 'windDirection50m',\n 'windGust100m',\n 'windGust10m',\n 'windGust50m',\n 'windSpeed100m',\n 'windSpeed10m',\n 'windSpeed50m',\n 'windWaveMeanWaveDirection',\n 'windWaveMeanWaveDirectionalSpreading',\n 'windWaveMeanWavePeriodTm02',\n 'windWaveMeanWavePeriodTmm10',\n 'windWavePeakPeriod',\n 'windWaveSignificantWaveHeight'\n ]\n }\n ],\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"POST\", \"https://weather.api.dtn.com/v1/conditions/marine/route\");\n\nreq.query({\n \"parameters\": \"SOME_ARRAY_VALUE\"\n});\n\nreq.headers({\n \"content-type\": \"application/json\",\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n});\n\nreq.type(\"json\");\nreq.send([\n {\n \"timestamp\": \"2023-08-10T16:00:00Z\",\n \"lat\": 55.81,\n \"lon\": 3.88,\n \"parameters\": [\n \"airPressureMeanSeaLevel\",\n \"airTemp\",\n \"airTemp10m\",\n \"dewPoint\",\n \"lightningProb\",\n \"maximumWaveHeight\",\n \"meanWaveDirection\",\n \"meanWaveDirectionalSpreading\",\n \"meanWavePeriodTm02\",\n \"meanWavePeriodTmm10\",\n \"peakPeriod\",\n \"precipAmount1h\",\n \"precipProb\",\n \"relativeHumidity\",\n \"seaIceConcentration\",\n \"seaSurfaceTemp\",\n \"significantWaveHeight\",\n \"significantWaveHeightRiskP90\",\n \"totalCurrentDirection\",\n \"totalCurrentVelocity\",\n \"totalSwellMeanWaveDirection\",\n \"totalSwellMeanWaveDirectionalSpreading\",\n \"totalSwellMeanWavePeriodTm02\",\n \"totalSwellMeanWavePeriodTmm10\",\n \"totalSwellPeakPeriod\",\n \"totalSwellSignificantWaveHeight\",\n \"visibility\",\n \"weatherCode\",\n \"windDirection100m\",\n \"windDirection10m\",\n \"windDirection50m\",\n \"windGust100m\",\n \"windGust10m\",\n \"windGust50m\",\n \"windSpeed100m\",\n \"windSpeed10m\",\n \"windSpeed50m\",\n \"windWaveMeanWaveDirection\",\n \"windWaveMeanWaveDirectionalSpreading\",\n \"windWaveMeanWavePeriodTm02\",\n \"windWaveMeanWavePeriodTmm10\",\n \"windWavePeakPeriod\",\n \"windWaveSignificantWaveHeight\"\n ]\n },\n {\n \"timestamp\": \"2023-08-10T17:00:00Z\",\n \"lat\": 57.48,\n \"lon\": 2.49,\n \"parameters\": [\n \"airPressureMeanSeaLevel\",\n \"airTemp\",\n \"airTemp10m\",\n \"dewPoint\",\n \"lightningProb\",\n \"maximumWaveHeight\",\n \"meanWaveDirection\",\n \"meanWaveDirectionalSpreading\",\n \"meanWavePeriodTm02\",\n \"meanWavePeriodTmm10\",\n \"peakPeriod\",\n \"precipAmount1h\",\n \"precipProb\",\n \"relativeHumidity\",\n \"seaIceConcentration\",\n \"seaSurfaceTemp\",\n \"significantWaveHeight\",\n \"significantWaveHeightRiskP90\",\n \"totalCurrentDirection\",\n \"totalCurrentVelocity\",\n \"totalSwellMeanWaveDirection\",\n \"totalSwellMeanWaveDirectionalSpreading\",\n \"totalSwellMeanWavePeriodTm02\",\n \"totalSwellMeanWavePeriodTmm10\",\n \"totalSwellPeakPeriod\",\n \"totalSwellSignificantWaveHeight\",\n \"visibility\",\n \"weatherCode\",\n \"windDirection100m\",\n \"windDirection10m\",\n \"windDirection50m\",\n \"windGust100m\",\n \"windGust10m\",\n \"windGust50m\",\n \"windSpeed100m\",\n \"windSpeed10m\",\n \"windSpeed50m\",\n \"windWaveMeanWaveDirection\",\n \"windWaveMeanWaveDirectionalSpreading\",\n \"windWaveMeanWavePeriodTm02\",\n \"windWaveMeanWavePeriodTmm10\",\n \"windWavePeakPeriod\",\n \"windWaveSignificantWaveHeight\"\n ]\n }\n]);\n\nreq.end(function (res) {\n if (res.error) throw new Error(res.error);\n\n console.log(res.body);\n});\n"},{"lang":"Objc + Nsurlsession","source":"#import \n\nNSDictionary *headers = @{ @\"content-type\": @\"application/json\",\n @\"Accept-Encoding\": @\"SOME_STRING_VALUE\",\n @\"Accept\": @\"SOME_STRING_VALUE\",\n @\"Authorization\": @\"Bearer REPLACE_BEARER_TOKEN\" };\nNSDictionary *parameters = @[ @{ @\"timestamp\": @\"2023-08-10T16:00:00Z\", @\"lat\": @55.81, @\"lon\": @3.88, @\"parameters\": @[ @\"airPressureMeanSeaLevel\", @\"airTemp\", @\"airTemp10m\", @\"dewPoint\", @\"lightningProb\", @\"maximumWaveHeight\", @\"meanWaveDirection\", @\"meanWaveDirectionalSpreading\", @\"meanWavePeriodTm02\", @\"meanWavePeriodTmm10\", @\"peakPeriod\", @\"precipAmount1h\", @\"precipProb\", @\"relativeHumidity\", @\"seaIceConcentration\", @\"seaSurfaceTemp\", @\"significantWaveHeight\", @\"significantWaveHeightRiskP90\", @\"totalCurrentDirection\", @\"totalCurrentVelocity\", @\"totalSwellMeanWaveDirection\", @\"totalSwellMeanWaveDirectionalSpreading\", @\"totalSwellMeanWavePeriodTm02\", @\"totalSwellMeanWavePeriodTmm10\", @\"totalSwellPeakPeriod\", @\"totalSwellSignificantWaveHeight\", @\"visibility\", @\"weatherCode\", @\"windDirection100m\", @\"windDirection10m\", @\"windDirection50m\", @\"windGust100m\", @\"windGust10m\", @\"windGust50m\", @\"windSpeed100m\", @\"windSpeed10m\", @\"windSpeed50m\", @\"windWaveMeanWaveDirection\", @\"windWaveMeanWaveDirectionalSpreading\", @\"windWaveMeanWavePeriodTm02\", @\"windWaveMeanWavePeriodTmm10\", @\"windWavePeakPeriod\", @\"windWaveSignificantWaveHeight\" ] },\n @{ @\"timestamp\": @\"2023-08-10T17:00:00Z\", @\"lat\": @57.48, @\"lon\": @2.49, @\"parameters\": @[ @\"airPressureMeanSeaLevel\", @\"airTemp\", @\"airTemp10m\", @\"dewPoint\", @\"lightningProb\", @\"maximumWaveHeight\", @\"meanWaveDirection\", @\"meanWaveDirectionalSpreading\", @\"meanWavePeriodTm02\", @\"meanWavePeriodTmm10\", @\"peakPeriod\", @\"precipAmount1h\", @\"precipProb\", @\"relativeHumidity\", @\"seaIceConcentration\", @\"seaSurfaceTemp\", @\"significantWaveHeight\", @\"significantWaveHeightRiskP90\", @\"totalCurrentDirection\", @\"totalCurrentVelocity\", @\"totalSwellMeanWaveDirection\", @\"totalSwellMeanWaveDirectionalSpreading\", @\"totalSwellMeanWavePeriodTm02\", @\"totalSwellMeanWavePeriodTmm10\", @\"totalSwellPeakPeriod\", @\"totalSwellSignificantWaveHeight\", @\"visibility\", @\"weatherCode\", @\"windDirection100m\", @\"windDirection10m\", @\"windDirection50m\", @\"windGust100m\", @\"windGust10m\", @\"windGust50m\", @\"windSpeed100m\", @\"windSpeed10m\", @\"windSpeed50m\", @\"windWaveMeanWaveDirection\", @\"windWaveMeanWaveDirectionalSpreading\", @\"windWaveMeanWavePeriodTm02\", @\"windWaveMeanWavePeriodTmm10\", @\"windWavePeakPeriod\", @\"windWaveSignificantWaveHeight\" ] } ];\n\nNSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];\n\nNSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@\"https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\"]\n cachePolicy:NSURLRequestUseProtocolCachePolicy\n timeoutInterval:10.0];\n[request setHTTPMethod:@\"POST\"];\n[request setAllHTTPHeaderFields:headers];\n[request setHTTPBody:postData];\n\nNSURLSession *session = [NSURLSession sharedSession];\nNSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request\n completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {\n if (error) {\n NSLog(@\"%@\", error);\n } else {\n NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;\n NSLog(@\"%@\", httpResponse);\n }\n }];\n[dataTask resume];"},{"lang":"Ocaml + Cohttp","source":"open Cohttp_lwt_unix\nopen Cohttp\nopen Lwt\n\nlet uri = Uri.of_string \"https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\" in\nlet headers = Header.add_list (Header.init ()) [\n (\"content-type\", \"application/json\");\n (\"Accept-Encoding\", \"SOME_STRING_VALUE\");\n (\"Accept\", \"SOME_STRING_VALUE\");\n (\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\n] in\nlet body = Cohttp_lwt_body.of_string \"[{\\\"timestamp\\\":\\\"2023-08-10T16:00:00Z\\\",\\\"lat\\\":55.81,\\\"lon\\\":3.88,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]},{\\\"timestamp\\\":\\\"2023-08-10T17:00:00Z\\\",\\\"lat\\\":57.48,\\\"lon\\\":2.49,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]}]\" in\n\nClient.call ~headers ~body `POST uri\n>>= fun (res, body_stream) ->\n (* Do stuff with the result *)"},{"lang":"Php + Curl","source":" \"https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_POSTFIELDS => \"[{\\\"timestamp\\\":\\\"2023-08-10T16:00:00Z\\\",\\\"lat\\\":55.81,\\\"lon\\\":3.88,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]},{\\\"timestamp\\\":\\\"2023-08-10T17:00:00Z\\\",\\\"lat\\\":57.48,\\\"lon\\\":2.49,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]}]\",\n CURLOPT_HTTPHEADER => [\n \"Accept: SOME_STRING_VALUE\",\n \"Accept-Encoding: SOME_STRING_VALUE\",\n \"Authorization: Bearer REPLACE_BEARER_TOKEN\",\n \"content-type: application/json\"\n ],\n]);\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}"},{"lang":"Php + Http1","source":"setUrl('https://weather.api.dtn.com/v1/conditions/marine/route');\n$request->setMethod(HTTP_METH_POST);\n\n$request->setQueryData([\n 'parameters' => 'SOME_ARRAY_VALUE'\n]);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Accept-Encoding' => 'SOME_STRING_VALUE',\n 'Accept' => 'SOME_STRING_VALUE',\n 'Authorization' => 'Bearer REPLACE_BEARER_TOKEN'\n]);\n\n$request->setBody('[{\"timestamp\":\"2023-08-10T16:00:00Z\",\"lat\":55.81,\"lon\":3.88,\"parameters\":[\"airPressureMeanSeaLevel\",\"airTemp\",\"airTemp10m\",\"dewPoint\",\"lightningProb\",\"maximumWaveHeight\",\"meanWaveDirection\",\"meanWaveDirectionalSpreading\",\"meanWavePeriodTm02\",\"meanWavePeriodTmm10\",\"peakPeriod\",\"precipAmount1h\",\"precipProb\",\"relativeHumidity\",\"seaIceConcentration\",\"seaSurfaceTemp\",\"significantWaveHeight\",\"significantWaveHeightRiskP90\",\"totalCurrentDirection\",\"totalCurrentVelocity\",\"totalSwellMeanWaveDirection\",\"totalSwellMeanWaveDirectionalSpreading\",\"totalSwellMeanWavePeriodTm02\",\"totalSwellMeanWavePeriodTmm10\",\"totalSwellPeakPeriod\",\"totalSwellSignificantWaveHeight\",\"visibility\",\"weatherCode\",\"windDirection100m\",\"windDirection10m\",\"windDirection50m\",\"windGust100m\",\"windGust10m\",\"windGust50m\",\"windSpeed100m\",\"windSpeed10m\",\"windSpeed50m\",\"windWaveMeanWaveDirection\",\"windWaveMeanWaveDirectionalSpreading\",\"windWaveMeanWavePeriodTm02\",\"windWaveMeanWavePeriodTmm10\",\"windWavePeakPeriod\",\"windWaveSignificantWaveHeight\"]},{\"timestamp\":\"2023-08-10T17:00:00Z\",\"lat\":57.48,\"lon\":2.49,\"parameters\":[\"airPressureMeanSeaLevel\",\"airTemp\",\"airTemp10m\",\"dewPoint\",\"lightningProb\",\"maximumWaveHeight\",\"meanWaveDirection\",\"meanWaveDirectionalSpreading\",\"meanWavePeriodTm02\",\"meanWavePeriodTmm10\",\"peakPeriod\",\"precipAmount1h\",\"precipProb\",\"relativeHumidity\",\"seaIceConcentration\",\"seaSurfaceTemp\",\"significantWaveHeight\",\"significantWaveHeightRiskP90\",\"totalCurrentDirection\",\"totalCurrentVelocity\",\"totalSwellMeanWaveDirection\",\"totalSwellMeanWaveDirectionalSpreading\",\"totalSwellMeanWavePeriodTm02\",\"totalSwellMeanWavePeriodTmm10\",\"totalSwellPeakPeriod\",\"totalSwellSignificantWaveHeight\",\"visibility\",\"weatherCode\",\"windDirection100m\",\"windDirection10m\",\"windDirection50m\",\"windGust100m\",\"windGust10m\",\"windGust50m\",\"windSpeed100m\",\"windSpeed10m\",\"windSpeed50m\",\"windWaveMeanWaveDirection\",\"windWaveMeanWaveDirectionalSpreading\",\"windWaveMeanWavePeriodTm02\",\"windWaveMeanWavePeriodTmm10\",\"windWavePeakPeriod\",\"windWaveSignificantWaveHeight\"]}]');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}"},{"lang":"Php + Http2","source":"append('[{\"timestamp\":\"2023-08-10T16:00:00Z\",\"lat\":55.81,\"lon\":3.88,\"parameters\":[\"airPressureMeanSeaLevel\",\"airTemp\",\"airTemp10m\",\"dewPoint\",\"lightningProb\",\"maximumWaveHeight\",\"meanWaveDirection\",\"meanWaveDirectionalSpreading\",\"meanWavePeriodTm02\",\"meanWavePeriodTmm10\",\"peakPeriod\",\"precipAmount1h\",\"precipProb\",\"relativeHumidity\",\"seaIceConcentration\",\"seaSurfaceTemp\",\"significantWaveHeight\",\"significantWaveHeightRiskP90\",\"totalCurrentDirection\",\"totalCurrentVelocity\",\"totalSwellMeanWaveDirection\",\"totalSwellMeanWaveDirectionalSpreading\",\"totalSwellMeanWavePeriodTm02\",\"totalSwellMeanWavePeriodTmm10\",\"totalSwellPeakPeriod\",\"totalSwellSignificantWaveHeight\",\"visibility\",\"weatherCode\",\"windDirection100m\",\"windDirection10m\",\"windDirection50m\",\"windGust100m\",\"windGust10m\",\"windGust50m\",\"windSpeed100m\",\"windSpeed10m\",\"windSpeed50m\",\"windWaveMeanWaveDirection\",\"windWaveMeanWaveDirectionalSpreading\",\"windWaveMeanWavePeriodTm02\",\"windWaveMeanWavePeriodTmm10\",\"windWavePeakPeriod\",\"windWaveSignificantWaveHeight\"]},{\"timestamp\":\"2023-08-10T17:00:00Z\",\"lat\":57.48,\"lon\":2.49,\"parameters\":[\"airPressureMeanSeaLevel\",\"airTemp\",\"airTemp10m\",\"dewPoint\",\"lightningProb\",\"maximumWaveHeight\",\"meanWaveDirection\",\"meanWaveDirectionalSpreading\",\"meanWavePeriodTm02\",\"meanWavePeriodTmm10\",\"peakPeriod\",\"precipAmount1h\",\"precipProb\",\"relativeHumidity\",\"seaIceConcentration\",\"seaSurfaceTemp\",\"significantWaveHeight\",\"significantWaveHeightRiskP90\",\"totalCurrentDirection\",\"totalCurrentVelocity\",\"totalSwellMeanWaveDirection\",\"totalSwellMeanWaveDirectionalSpreading\",\"totalSwellMeanWavePeriodTm02\",\"totalSwellMeanWavePeriodTmm10\",\"totalSwellPeakPeriod\",\"totalSwellSignificantWaveHeight\",\"visibility\",\"weatherCode\",\"windDirection100m\",\"windDirection10m\",\"windDirection50m\",\"windGust100m\",\"windGust10m\",\"windGust50m\",\"windSpeed100m\",\"windSpeed10m\",\"windSpeed50m\",\"windWaveMeanWaveDirection\",\"windWaveMeanWaveDirectionalSpreading\",\"windWaveMeanWavePeriodTm02\",\"windWaveMeanWavePeriodTmm10\",\"windWavePeakPeriod\",\"windWaveSignificantWaveHeight\"]}]');\n\n$request->setRequestUrl('https://weather.api.dtn.com/v1/conditions/marine/route');\n$request->setRequestMethod('POST');\n$request->setBody($body);\n\n$request->setQuery(new http\\QueryString([\n 'parameters' => 'SOME_ARRAY_VALUE'\n]));\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Accept-Encoding' => 'SOME_STRING_VALUE',\n 'Accept' => 'SOME_STRING_VALUE',\n 'Authorization' => 'Bearer REPLACE_BEARER_TOKEN'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"weather.api.dtn.com\")\n\npayload = \"[{\\\"timestamp\\\":\\\"2023-08-10T16:00:00Z\\\",\\\"lat\\\":55.81,\\\"lon\\\":3.88,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]},{\\\"timestamp\\\":\\\"2023-08-10T17:00:00Z\\\",\\\"lat\\\":57.48,\\\"lon\\\":2.49,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]}]\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Accept-Encoding': \"SOME_STRING_VALUE\",\n 'Accept': \"SOME_STRING_VALUE\",\n 'Authorization': \"Bearer REPLACE_BEARER_TOKEN\"\n }\n\nconn.request(\"POST\", \"/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://weather.api.dtn.com/v1/conditions/marine/route\"\n\nquerystring = {\"parameters\":\"SOME_ARRAY_VALUE\"}\n\npayload = [\n {\n \"timestamp\": \"2023-08-10T16:00:00Z\",\n \"lat\": 55.81,\n \"lon\": 3.88,\n \"parameters\": [\"airPressureMeanSeaLevel\", \"airTemp\", \"airTemp10m\", \"dewPoint\", \"lightningProb\", \"maximumWaveHeight\", \"meanWaveDirection\", \"meanWaveDirectionalSpreading\", \"meanWavePeriodTm02\", \"meanWavePeriodTmm10\", \"peakPeriod\", \"precipAmount1h\", \"precipProb\", \"relativeHumidity\", \"seaIceConcentration\", \"seaSurfaceTemp\", \"significantWaveHeight\", \"significantWaveHeightRiskP90\", \"totalCurrentDirection\", \"totalCurrentVelocity\", \"totalSwellMeanWaveDirection\", \"totalSwellMeanWaveDirectionalSpreading\", \"totalSwellMeanWavePeriodTm02\", \"totalSwellMeanWavePeriodTmm10\", \"totalSwellPeakPeriod\", \"totalSwellSignificantWaveHeight\", \"visibility\", \"weatherCode\", \"windDirection100m\", \"windDirection10m\", \"windDirection50m\", \"windGust100m\", \"windGust10m\", \"windGust50m\", \"windSpeed100m\", \"windSpeed10m\", \"windSpeed50m\", \"windWaveMeanWaveDirection\", \"windWaveMeanWaveDirectionalSpreading\", \"windWaveMeanWavePeriodTm02\", \"windWaveMeanWavePeriodTmm10\", \"windWavePeakPeriod\", \"windWaveSignificantWaveHeight\"]\n },\n {\n \"timestamp\": \"2023-08-10T17:00:00Z\",\n \"lat\": 57.48,\n \"lon\": 2.49,\n \"parameters\": [\"airPressureMeanSeaLevel\", \"airTemp\", \"airTemp10m\", \"dewPoint\", \"lightningProb\", \"maximumWaveHeight\", \"meanWaveDirection\", \"meanWaveDirectionalSpreading\", \"meanWavePeriodTm02\", \"meanWavePeriodTmm10\", \"peakPeriod\", \"precipAmount1h\", \"precipProb\", \"relativeHumidity\", \"seaIceConcentration\", \"seaSurfaceTemp\", \"significantWaveHeight\", \"significantWaveHeightRiskP90\", \"totalCurrentDirection\", \"totalCurrentVelocity\", \"totalSwellMeanWaveDirection\", \"totalSwellMeanWaveDirectionalSpreading\", \"totalSwellMeanWavePeriodTm02\", \"totalSwellMeanWavePeriodTmm10\", \"totalSwellPeakPeriod\", \"totalSwellSignificantWaveHeight\", \"visibility\", \"weatherCode\", \"windDirection100m\", \"windDirection10m\", \"windDirection50m\", \"windGust100m\", \"windGust10m\", \"windGust50m\", \"windSpeed100m\", \"windSpeed10m\", \"windSpeed50m\", \"windWaveMeanWaveDirection\", \"windWaveMeanWaveDirectionalSpreading\", \"windWaveMeanWavePeriodTm02\", \"windWaveMeanWavePeriodTmm10\", \"windWavePeakPeriod\", \"windWaveSignificantWaveHeight\"]\n }\n]\nheaders = {\n \"content-type\": \"application/json\",\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Accept-Encoding\"] = 'SOME_STRING_VALUE'\nrequest[\"Accept\"] = 'SOME_STRING_VALUE'\nrequest[\"Authorization\"] = 'Bearer REPLACE_BEARER_TOKEN'\nrequest.body = \"[{\\\"timestamp\\\":\\\"2023-08-10T16:00:00Z\\\",\\\"lat\\\":55.81,\\\"lon\\\":3.88,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]},{\\\"timestamp\\\":\\\"2023-08-10T17:00:00Z\\\",\\\"lat\\\":57.48,\\\"lon\\\":2.49,\\\"parameters\\\":[\\\"airPressureMeanSeaLevel\\\",\\\"airTemp\\\",\\\"airTemp10m\\\",\\\"dewPoint\\\",\\\"lightningProb\\\",\\\"maximumWaveHeight\\\",\\\"meanWaveDirection\\\",\\\"meanWaveDirectionalSpreading\\\",\\\"meanWavePeriodTm02\\\",\\\"meanWavePeriodTmm10\\\",\\\"peakPeriod\\\",\\\"precipAmount1h\\\",\\\"precipProb\\\",\\\"relativeHumidity\\\",\\\"seaIceConcentration\\\",\\\"seaSurfaceTemp\\\",\\\"significantWaveHeight\\\",\\\"significantWaveHeightRiskP90\\\",\\\"totalCurrentDirection\\\",\\\"totalCurrentVelocity\\\",\\\"totalSwellMeanWaveDirection\\\",\\\"totalSwellMeanWaveDirectionalSpreading\\\",\\\"totalSwellMeanWavePeriodTm02\\\",\\\"totalSwellMeanWavePeriodTmm10\\\",\\\"totalSwellPeakPeriod\\\",\\\"totalSwellSignificantWaveHeight\\\",\\\"visibility\\\",\\\"weatherCode\\\",\\\"windDirection100m\\\",\\\"windDirection10m\\\",\\\"windDirection50m\\\",\\\"windGust100m\\\",\\\"windGust10m\\\",\\\"windGust50m\\\",\\\"windSpeed100m\\\",\\\"windSpeed10m\\\",\\\"windSpeed50m\\\",\\\"windWaveMeanWaveDirection\\\",\\\"windWaveMeanWaveDirectionalSpreading\\\",\\\"windWaveMeanWavePeriodTm02\\\",\\\"windWaveMeanWavePeriodTmm10\\\",\\\"windWavePeakPeriod\\\",\\\"windWaveSignificantWaveHeight\\\"]}]\"\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Shell + Curl","source":"curl --request POST \\\n --url 'https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE' \\\n --header 'Accept: SOME_STRING_VALUE' \\\n --header 'Accept-Encoding: SOME_STRING_VALUE' \\\n --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \\\n --header 'content-type: application/json' \\\n --data '[{\"timestamp\":\"2023-08-10T16:00:00Z\",\"lat\":55.81,\"lon\":3.88,\"parameters\":[\"airPressureMeanSeaLevel\",\"airTemp\",\"airTemp10m\",\"dewPoint\",\"lightningProb\",\"maximumWaveHeight\",\"meanWaveDirection\",\"meanWaveDirectionalSpreading\",\"meanWavePeriodTm02\",\"meanWavePeriodTmm10\",\"peakPeriod\",\"precipAmount1h\",\"precipProb\",\"relativeHumidity\",\"seaIceConcentration\",\"seaSurfaceTemp\",\"significantWaveHeight\",\"significantWaveHeightRiskP90\",\"totalCurrentDirection\",\"totalCurrentVelocity\",\"totalSwellMeanWaveDirection\",\"totalSwellMeanWaveDirectionalSpreading\",\"totalSwellMeanWavePeriodTm02\",\"totalSwellMeanWavePeriodTmm10\",\"totalSwellPeakPeriod\",\"totalSwellSignificantWaveHeight\",\"visibility\",\"weatherCode\",\"windDirection100m\",\"windDirection10m\",\"windDirection50m\",\"windGust100m\",\"windGust10m\",\"windGust50m\",\"windSpeed100m\",\"windSpeed10m\",\"windSpeed50m\",\"windWaveMeanWaveDirection\",\"windWaveMeanWaveDirectionalSpreading\",\"windWaveMeanWavePeriodTm02\",\"windWaveMeanWavePeriodTmm10\",\"windWavePeakPeriod\",\"windWaveSignificantWaveHeight\"]},{\"timestamp\":\"2023-08-10T17:00:00Z\",\"lat\":57.48,\"lon\":2.49,\"parameters\":[\"airPressureMeanSeaLevel\",\"airTemp\",\"airTemp10m\",\"dewPoint\",\"lightningProb\",\"maximumWaveHeight\",\"meanWaveDirection\",\"meanWaveDirectionalSpreading\",\"meanWavePeriodTm02\",\"meanWavePeriodTmm10\",\"peakPeriod\",\"precipAmount1h\",\"precipProb\",\"relativeHumidity\",\"seaIceConcentration\",\"seaSurfaceTemp\",\"significantWaveHeight\",\"significantWaveHeightRiskP90\",\"totalCurrentDirection\",\"totalCurrentVelocity\",\"totalSwellMeanWaveDirection\",\"totalSwellMeanWaveDirectionalSpreading\",\"totalSwellMeanWavePeriodTm02\",\"totalSwellMeanWavePeriodTmm10\",\"totalSwellPeakPeriod\",\"totalSwellSignificantWaveHeight\",\"visibility\",\"weatherCode\",\"windDirection100m\",\"windDirection10m\",\"windDirection50m\",\"windGust100m\",\"windGust10m\",\"windGust50m\",\"windSpeed100m\",\"windSpeed10m\",\"windSpeed50m\",\"windWaveMeanWaveDirection\",\"windWaveMeanWaveDirectionalSpreading\",\"windWaveMeanWavePeriodTm02\",\"windWaveMeanWavePeriodTmm10\",\"windWavePeakPeriod\",\"windWaveSignificantWaveHeight\"]}]'"},{"lang":"Shell + Httpie","source":"echo '[{\"timestamp\":\"2023-08-10T16:00:00Z\",\"lat\":55.81,\"lon\":3.88,\"parameters\":[\"airPressureMeanSeaLevel\",\"airTemp\",\"airTemp10m\",\"dewPoint\",\"lightningProb\",\"maximumWaveHeight\",\"meanWaveDirection\",\"meanWaveDirectionalSpreading\",\"meanWavePeriodTm02\",\"meanWavePeriodTmm10\",\"peakPeriod\",\"precipAmount1h\",\"precipProb\",\"relativeHumidity\",\"seaIceConcentration\",\"seaSurfaceTemp\",\"significantWaveHeight\",\"significantWaveHeightRiskP90\",\"totalCurrentDirection\",\"totalCurrentVelocity\",\"totalSwellMeanWaveDirection\",\"totalSwellMeanWaveDirectionalSpreading\",\"totalSwellMeanWavePeriodTm02\",\"totalSwellMeanWavePeriodTmm10\",\"totalSwellPeakPeriod\",\"totalSwellSignificantWaveHeight\",\"visibility\",\"weatherCode\",\"windDirection100m\",\"windDirection10m\",\"windDirection50m\",\"windGust100m\",\"windGust10m\",\"windGust50m\",\"windSpeed100m\",\"windSpeed10m\",\"windSpeed50m\",\"windWaveMeanWaveDirection\",\"windWaveMeanWaveDirectionalSpreading\",\"windWaveMeanWavePeriodTm02\",\"windWaveMeanWavePeriodTmm10\",\"windWavePeakPeriod\",\"windWaveSignificantWaveHeight\"]},{\"timestamp\":\"2023-08-10T17:00:00Z\",\"lat\":57.48,\"lon\":2.49,\"parameters\":[\"airPressureMeanSeaLevel\",\"airTemp\",\"airTemp10m\",\"dewPoint\",\"lightningProb\",\"maximumWaveHeight\",\"meanWaveDirection\",\"meanWaveDirectionalSpreading\",\"meanWavePeriodTm02\",\"meanWavePeriodTmm10\",\"peakPeriod\",\"precipAmount1h\",\"precipProb\",\"relativeHumidity\",\"seaIceConcentration\",\"seaSurfaceTemp\",\"significantWaveHeight\",\"significantWaveHeightRiskP90\",\"totalCurrentDirection\",\"totalCurrentVelocity\",\"totalSwellMeanWaveDirection\",\"totalSwellMeanWaveDirectionalSpreading\",\"totalSwellMeanWavePeriodTm02\",\"totalSwellMeanWavePeriodTmm10\",\"totalSwellPeakPeriod\",\"totalSwellSignificantWaveHeight\",\"visibility\",\"weatherCode\",\"windDirection100m\",\"windDirection10m\",\"windDirection50m\",\"windGust100m\",\"windGust10m\",\"windGust50m\",\"windSpeed100m\",\"windSpeed10m\",\"windSpeed50m\",\"windWaveMeanWaveDirection\",\"windWaveMeanWaveDirectionalSpreading\",\"windWaveMeanWavePeriodTm02\",\"windWaveMeanWavePeriodTmm10\",\"windWavePeakPeriod\",\"windWaveSignificantWaveHeight\"]}]' | \\\n http POST 'https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE' \\\n Accept:SOME_STRING_VALUE \\\n Accept-Encoding:SOME_STRING_VALUE \\\n Authorization:'Bearer REPLACE_BEARER_TOKEN' \\\n content-type:application/json"},{"lang":"Shell + Wget","source":"wget --quiet \\\n --method POST \\\n --header 'content-type: application/json' \\\n --header 'Accept-Encoding: SOME_STRING_VALUE' \\\n --header 'Accept: SOME_STRING_VALUE' \\\n --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \\\n --body-data '[{\"timestamp\":\"2023-08-10T16:00:00Z\",\"lat\":55.81,\"lon\":3.88,\"parameters\":[\"airPressureMeanSeaLevel\",\"airTemp\",\"airTemp10m\",\"dewPoint\",\"lightningProb\",\"maximumWaveHeight\",\"meanWaveDirection\",\"meanWaveDirectionalSpreading\",\"meanWavePeriodTm02\",\"meanWavePeriodTmm10\",\"peakPeriod\",\"precipAmount1h\",\"precipProb\",\"relativeHumidity\",\"seaIceConcentration\",\"seaSurfaceTemp\",\"significantWaveHeight\",\"significantWaveHeightRiskP90\",\"totalCurrentDirection\",\"totalCurrentVelocity\",\"totalSwellMeanWaveDirection\",\"totalSwellMeanWaveDirectionalSpreading\",\"totalSwellMeanWavePeriodTm02\",\"totalSwellMeanWavePeriodTmm10\",\"totalSwellPeakPeriod\",\"totalSwellSignificantWaveHeight\",\"visibility\",\"weatherCode\",\"windDirection100m\",\"windDirection10m\",\"windDirection50m\",\"windGust100m\",\"windGust10m\",\"windGust50m\",\"windSpeed100m\",\"windSpeed10m\",\"windSpeed50m\",\"windWaveMeanWaveDirection\",\"windWaveMeanWaveDirectionalSpreading\",\"windWaveMeanWavePeriodTm02\",\"windWaveMeanWavePeriodTmm10\",\"windWavePeakPeriod\",\"windWaveSignificantWaveHeight\"]},{\"timestamp\":\"2023-08-10T17:00:00Z\",\"lat\":57.48,\"lon\":2.49,\"parameters\":[\"airPressureMeanSeaLevel\",\"airTemp\",\"airTemp10m\",\"dewPoint\",\"lightningProb\",\"maximumWaveHeight\",\"meanWaveDirection\",\"meanWaveDirectionalSpreading\",\"meanWavePeriodTm02\",\"meanWavePeriodTmm10\",\"peakPeriod\",\"precipAmount1h\",\"precipProb\",\"relativeHumidity\",\"seaIceConcentration\",\"seaSurfaceTemp\",\"significantWaveHeight\",\"significantWaveHeightRiskP90\",\"totalCurrentDirection\",\"totalCurrentVelocity\",\"totalSwellMeanWaveDirection\",\"totalSwellMeanWaveDirectionalSpreading\",\"totalSwellMeanWavePeriodTm02\",\"totalSwellMeanWavePeriodTmm10\",\"totalSwellPeakPeriod\",\"totalSwellSignificantWaveHeight\",\"visibility\",\"weatherCode\",\"windDirection100m\",\"windDirection10m\",\"windDirection50m\",\"windGust100m\",\"windGust10m\",\"windGust50m\",\"windSpeed100m\",\"windSpeed10m\",\"windSpeed50m\",\"windWaveMeanWaveDirection\",\"windWaveMeanWaveDirectionalSpreading\",\"windWaveMeanWavePeriodTm02\",\"windWaveMeanWavePeriodTmm10\",\"windWavePeakPeriod\",\"windWaveSignificantWaveHeight\"]}]' \\\n --output-document \\\n - 'https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE'"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\n \"content-type\": \"application/json\",\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n]\nlet parameters = [\n [\n \"timestamp\": \"2023-08-10T16:00:00Z\",\n \"lat\": 55.81,\n \"lon\": 3.88,\n \"parameters\": [\"airPressureMeanSeaLevel\", \"airTemp\", \"airTemp10m\", \"dewPoint\", \"lightningProb\", \"maximumWaveHeight\", \"meanWaveDirection\", \"meanWaveDirectionalSpreading\", \"meanWavePeriodTm02\", \"meanWavePeriodTmm10\", \"peakPeriod\", \"precipAmount1h\", \"precipProb\", \"relativeHumidity\", \"seaIceConcentration\", \"seaSurfaceTemp\", \"significantWaveHeight\", \"significantWaveHeightRiskP90\", \"totalCurrentDirection\", \"totalCurrentVelocity\", \"totalSwellMeanWaveDirection\", \"totalSwellMeanWaveDirectionalSpreading\", \"totalSwellMeanWavePeriodTm02\", \"totalSwellMeanWavePeriodTmm10\", \"totalSwellPeakPeriod\", \"totalSwellSignificantWaveHeight\", \"visibility\", \"weatherCode\", \"windDirection100m\", \"windDirection10m\", \"windDirection50m\", \"windGust100m\", \"windGust10m\", \"windGust50m\", \"windSpeed100m\", \"windSpeed10m\", \"windSpeed50m\", \"windWaveMeanWaveDirection\", \"windWaveMeanWaveDirectionalSpreading\", \"windWaveMeanWavePeriodTm02\", \"windWaveMeanWavePeriodTmm10\", \"windWavePeakPeriod\", \"windWaveSignificantWaveHeight\"]\n ],\n [\n \"timestamp\": \"2023-08-10T17:00:00Z\",\n \"lat\": 57.48,\n \"lon\": 2.49,\n \"parameters\": [\"airPressureMeanSeaLevel\", \"airTemp\", \"airTemp10m\", \"dewPoint\", \"lightningProb\", \"maximumWaveHeight\", \"meanWaveDirection\", \"meanWaveDirectionalSpreading\", \"meanWavePeriodTm02\", \"meanWavePeriodTmm10\", \"peakPeriod\", \"precipAmount1h\", \"precipProb\", \"relativeHumidity\", \"seaIceConcentration\", \"seaSurfaceTemp\", \"significantWaveHeight\", \"significantWaveHeightRiskP90\", \"totalCurrentDirection\", \"totalCurrentVelocity\", \"totalSwellMeanWaveDirection\", \"totalSwellMeanWaveDirectionalSpreading\", \"totalSwellMeanWavePeriodTm02\", \"totalSwellMeanWavePeriodTmm10\", \"totalSwellPeakPeriod\", \"totalSwellSignificantWaveHeight\", \"visibility\", \"weatherCode\", \"windDirection100m\", \"windDirection10m\", \"windDirection50m\", \"windGust100m\", \"windGust10m\", \"windGust50m\", \"windSpeed100m\", \"windSpeed10m\", \"windSpeed50m\", \"windWaveMeanWaveDirection\", \"windWaveMeanWaveDirectionalSpreading\", \"windWaveMeanWavePeriodTm02\", \"windWaveMeanWavePeriodTmm10\", \"windWavePeakPeriod\", \"windWaveSignificantWaveHeight\"]\n ]\n] as [String : Any]\n\nlet postData = JSONSerialization.data(withJSONObject: parameters, options: [])\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://weather.api.dtn.com/v1/conditions/marine/route?parameters=SOME_ARRAY_VALUE\")! as URL,\n cachePolicy: .useProtocolCachePolicy,\n timeoutInterval: 10.0)\nrequest.httpMethod = \"POST\"\nrequest.allHTTPHeaderFields = headers\nrequest.httpBody = postData as Data\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n if (error != nil) {\n print(error)\n } else {\n let httpResponse = response as? HTTPURLResponse\n print(httpResponse)\n }\n})\n\ndataTask.resume()"}]}},"/v1/conditions/marine/wave-partitions":{"get":{"tags":["Endpoints"],"summary":"Wave Partitions","description":"This endpoint provides a forecast for unique wave partition parameters. Like the Marine Conditions endpoint, specify the location, the marine parameters of interest, and a time range up to 10 days long, from now to 10 days in the future. The API responds with the requested time series in GeoJSON format.\n\nUse query parameters to control the results in the response body:\n\n * Specify a location as latitude (`lat`) and longitude (`lon`).\n\n * Specify `parameters` to filter by specific marine weather parameters. Include multiple as comma-separated values. The API returns only defaults when no specific parameters are requested.\n\n * Two important parameters are `startTime` and `endTime`:\n + The API returns forecast data when `startTime` and `endTime` are in the future.\n + The API returns only one exact timestamp when only `startTime` is specified.\n\n * Complete example: `https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat={lat}&lon={lon}&startTime={start_time}&endTime={end_time}¶meters={param1,param2}`\n","operationId":"wavePartitions","security":[{"clientCredentials":[]}],"parameters":[{"in":"header","name":"Accept-Encoding","schema":{"type":"string","description":"Use this request header to communicate which compression algorithms the client understands. The API supports gzip.","example":"gzip"}},{"in":"header","name":"Accept","schema":{"type":"string","description":"Use this request header to specify an acceptable response media type.","example":"application/json"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"type":{"type":"string"},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"geometry":{"type":"object","properties":{"type":{"type":"string"},"coordinates":{"type":"array","items":{"type":"number"}}}},"properties":{"type":"object","properties":{"2024-05-20T10:00:00Z":{"type":"object","properties":{"significantWaveHeightPart1Of6":{"type":"number"},"significantWaveHeightPart2Of6":{"type":"number"},"significantWaveHeightPart3Of6":{"type":"number"},"significantWaveHeightPart4Of6":{"type":"number"},"significantWaveHeightPart5Of6":{"type":"number"},"significantWaveHeightPart6Of6":{"type":"number"},"peakPeriodPart1Of6":{"type":"number"},"peakPeriodPart2Of6":{"type":"number"},"peakPeriodPart3Of6":{"type":"number"},"peakPeriodPart4Of6":{"type":"number"},"peakPeriodPart5Of6":{"type":"number"},"peakPeriodPart6Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart1Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart2Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart3Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart4Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart5Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart6Of6":{"type":"number"},"meanWaveDirectionPart1Of6":{"type":"number"},"meanWaveDirectionPart2Of6":{"type":"number"},"meanWaveDirectionPart3Of6":{"type":"number"},"meanWaveDirectionPart4Of6":{"type":"number"},"meanWaveDirectionPart5Of6":{"type":"number"},"meanWaveDirectionPart6Of6":{"type":"number"}}}}}}}}},"example":{"url":"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z","type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[3.88,55.81]},"properties":{"2024-05-15T16:00:00Z":{"meanWaveDirectionPart1Of6":"108.3,","meanWaveDirectionPart2Of6":"42.5,","meanWaveDirectionPart3Of6":"45.7,","meanWaveDirectionPart4Of6":"198.6,","meanWaveDirectionPart5Of6":"44.2,","meanWaveDirectionPart6Of6":"134.1,","meanWaveDirectionalSpreadingPart1Of6":"35,","meanWaveDirectionalSpreadingPart2Of6":"13.45,","meanWaveDirectionalSpreadingPart3Of6":"14.82,","meanWaveDirectionalSpreadingPart4Of6":"9.3,","meanWaveDirectionalSpreadingPart5Of6":"10.32,","meanWaveDirectionalSpreadingPart6Of6":"12.34,","peakPeriodPart1Of6":"6.3,","peakPeriodPart2Of6":"5.2,","peakPeriodPart3Of6":"5.2,","peakPeriodPart4Of6":"4.75,","peakPeriodPart5Of6":"4.89,","peakPeriodPart6Of6":"5.2,","significantWaveHeightPart1Of6":"1.72,","significantWaveHeightPart2Of6":"0.57,","significantWaveHeightPart3Of6":"0.63,","significantWaveHeightPart4Of6":"0.16,","significantWaveHeightPart5Of6":"0.12,","significantWaveHeightPart6Of6":0.11},"2024-05-15T17:00:00Z":{"meanWaveDirectionPart1Of6":"115,","meanWaveDirectionPart2Of6":"41.8,","meanWaveDirectionPart3Of6":"41.4,","meanWaveDirectionPart4Of6":"36.6,","meanWaveDirectionPart5Of6":"190,","meanWaveDirectionPart6Of6":"130.1,","meanWaveDirectionalSpreadingPart1Of6":"29.2,","meanWaveDirectionalSpreadingPart2Of6":"13.4,","meanWaveDirectionalSpreadingPart3Of6":"13.3,","meanWaveDirectionalSpreadingPart4Of6":"12.13,","meanWaveDirectionalSpreadingPart5Of6":"0,","meanWaveDirectionalSpreadingPart6Of6":"12.11,","peakPeriodPart1Of6":"6.3,","peakPeriodPart2Of6":"5.2,","peakPeriodPart3Of6":"5.2,","peakPeriodPart4Of6":"6.3,","peakPeriodPart5Of6":"4.75,","peakPeriodPart6Of6":"4.1,","significantWaveHeightPart1Of6":"1.65,","significantWaveHeightPart2Of6":"0.58,","significantWaveHeightPart3Of6":"0.59,","significantWaveHeightPart4Of6":"0.34,","significantWaveHeightPart5Of6":"0.08,","significantWaveHeightPart6Of6":0.15},"2024-05-15T18:00:00Z":{"meanWaveDirectionPart1Of6":"107.2,","meanWaveDirectionPart2Of6":"63.55,","meanWaveDirectionPart3Of6":"40.65,","meanWaveDirectionPart4Of6":"35.9,","meanWaveDirectionPart5Of6":"108.1,","meanWaveDirectionPart6Of6":"77.1,","meanWaveDirectionalSpreadingPart1Of6":"35.1,","meanWaveDirectionalSpreadingPart2Of6":"15.16,","meanWaveDirectionalSpreadingPart3Of6":"13.56,","meanWaveDirectionalSpreadingPart4Of6":"12.4,","meanWaveDirectionalSpreadingPart5Of6":"12.1,","meanWaveDirectionalSpreadingPart6Of6":"13.9,","peakPeriodPart1Of6":"6.3,","peakPeriodPart2Of6":"5.5,","peakPeriodPart3Of6":"5.2,","peakPeriodPart4Of6":"6.3,","peakPeriodPart5Of6":"5.2,","peakPeriodPart6Of6":"5.9,","significantWaveHeightPart1Of6":"1.79,","significantWaveHeightPart2Of6":"0.83,","significantWaveHeightPart3Of6":"0.6,","significantWaveHeightPart4Of6":"0.33,","significantWaveHeightPart5Of6":"0.78,","significantWaveHeightPart6Of6":1.55}}}]}}}}},"responses":{"200":{"description":"A successful request.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"url":{"type":"string"},"type":{"type":"string"},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"geometry":{"type":"object","properties":{"type":{"type":"string"},"coordinates":{"type":"array","items":{"type":"number"}}}},"properties":{"type":"object","properties":{"2024-05-20T10:00:00Z":{"type":"object","properties":{"significantWaveHeightPart1Of6":{"type":"number"},"significantWaveHeightPart2Of6":{"type":"number"},"significantWaveHeightPart3Of6":{"type":"number"},"significantWaveHeightPart4Of6":{"type":"number"},"significantWaveHeightPart5Of6":{"type":"number"},"significantWaveHeightPart6Of6":{"type":"number"},"peakPeriodPart1Of6":{"type":"number"},"peakPeriodPart2Of6":{"type":"number"},"peakPeriodPart3Of6":{"type":"number"},"peakPeriodPart4Of6":{"type":"number"},"peakPeriodPart5Of6":{"type":"number"},"peakPeriodPart6Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart1Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart2Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart3Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart4Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart5Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart6Of6":{"type":"number"},"meanWaveDirectionPart1Of6":{"type":"number"},"meanWaveDirectionPart2Of6":{"type":"number"},"meanWaveDirectionPart3Of6":{"type":"number"},"meanWaveDirectionPart4Of6":{"type":"number"},"meanWaveDirectionPart5Of6":{"type":"number"},"meanWaveDirectionPart6Of6":{"type":"number"}}}}}}}}},"example":{"url":"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z","type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[3.88,55.81]},"properties":{"2024-05-15T16:00:00Z":{"meanWaveDirectionPart1Of6":"108.3,","meanWaveDirectionPart2Of6":"42.5,","meanWaveDirectionPart3Of6":"45.7,","meanWaveDirectionPart4Of6":"198.6,","meanWaveDirectionPart5Of6":"44.2,","meanWaveDirectionPart6Of6":"134.1,","meanWaveDirectionalSpreadingPart1Of6":"35,","meanWaveDirectionalSpreadingPart2Of6":"13.45,","meanWaveDirectionalSpreadingPart3Of6":"14.82,","meanWaveDirectionalSpreadingPart4Of6":"9.3,","meanWaveDirectionalSpreadingPart5Of6":"10.32,","meanWaveDirectionalSpreadingPart6Of6":"12.34,","peakPeriodPart1Of6":"6.3,","peakPeriodPart2Of6":"5.2,","peakPeriodPart3Of6":"5.2,","peakPeriodPart4Of6":"4.75,","peakPeriodPart5Of6":"4.89,","peakPeriodPart6Of6":"5.2,","significantWaveHeightPart1Of6":"1.72,","significantWaveHeightPart2Of6":"0.57,","significantWaveHeightPart3Of6":"0.63,","significantWaveHeightPart4Of6":"0.16,","significantWaveHeightPart5Of6":"0.12,","significantWaveHeightPart6Of6":0.11},"2024-05-15T17:00:00Z":{"meanWaveDirectionPart1Of6":"115,","meanWaveDirectionPart2Of6":"41.8,","meanWaveDirectionPart3Of6":"41.4,","meanWaveDirectionPart4Of6":"36.6,","meanWaveDirectionPart5Of6":"190,","meanWaveDirectionPart6Of6":"130.1,","meanWaveDirectionalSpreadingPart1Of6":"29.2,","meanWaveDirectionalSpreadingPart2Of6":"13.4,","meanWaveDirectionalSpreadingPart3Of6":"13.3,","meanWaveDirectionalSpreadingPart4Of6":"12.13,","meanWaveDirectionalSpreadingPart5Of6":"0,","meanWaveDirectionalSpreadingPart6Of6":"12.11,","peakPeriodPart1Of6":"6.3,","peakPeriodPart2Of6":"5.2,","peakPeriodPart3Of6":"5.2,","peakPeriodPart4Of6":"6.3,","peakPeriodPart5Of6":"4.75,","peakPeriodPart6Of6":"4.1,","significantWaveHeightPart1Of6":"1.65,","significantWaveHeightPart2Of6":"0.58,","significantWaveHeightPart3Of6":"0.59,","significantWaveHeightPart4Of6":"0.34,","significantWaveHeightPart5Of6":"0.08,","significantWaveHeightPart6Of6":0.15},"2024-05-15T18:00:00Z":{"meanWaveDirectionPart1Of6":"107.2,","meanWaveDirectionPart2Of6":"63.55,","meanWaveDirectionPart3Of6":"40.65,","meanWaveDirectionPart4Of6":"35.9,","meanWaveDirectionPart5Of6":"108.1,","meanWaveDirectionPart6Of6":"77.1,","meanWaveDirectionalSpreadingPart1Of6":"35.1,","meanWaveDirectionalSpreadingPart2Of6":"15.16,","meanWaveDirectionalSpreadingPart3Of6":"13.56,","meanWaveDirectionalSpreadingPart4Of6":"12.4,","meanWaveDirectionalSpreadingPart5Of6":"12.1,","meanWaveDirectionalSpreadingPart6Of6":"13.9,","peakPeriodPart1Of6":"6.3,","peakPeriodPart2Of6":"5.5,","peakPeriodPart3Of6":"5.2,","peakPeriodPart4Of6":"6.3,","peakPeriodPart5Of6":"5.2,","peakPeriodPart6Of6":"5.9,","significantWaveHeightPart1Of6":"1.79,","significantWaveHeightPart2Of6":"0.83,","significantWaveHeightPart3Of6":"0.6,","significantWaveHeightPart4Of6":"0.33,","significantWaveHeightPart5Of6":"0.78,","significantWaveHeightPart6Of6":1.55}}}]}}]}}}},"400":{"description":"An invalid request.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"bad-request","title":"Invalid Request","detail":"Validation failed.","status":400,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}},"401":{"description":"Unable to authenticate credentials.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"unauthorized","title":"Error while authenticating the user.","detail":"invalid token","status":401,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}},"406":{"description":"Unable to produce a response matching the Accept request header.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"not-acceptable","title":"Not Acceptable","detail":"The Accept header value is invalid or unsupported.","status":406,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}}},"x-codeSamples":[{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"content-type: application/json\");\nheaders = curl_slist_append(headers, \"Accept-Encoding: SOME_STRING_VALUE\");\nheaders = curl_slist_append(headers, \"Accept: SOME_STRING_VALUE\");\nheaders = curl_slist_append(headers, \"Authorization: Bearer REPLACE_BEARER_TOKEN\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\ncurl_easy_setopt(hnd, CURLOPT_POSTFIELDS, \"{\\\"url\\\":\\\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\\\",\\\"type\\\":\\\"FeatureCollection\\\",\\\"features\\\":[{\\\"type\\\":\\\"Feature\\\",\\\"geometry\\\":{\\\"type\\\":\\\"Point\\\",\\\"coordinates\\\":[3.88,55.81]},\\\"properties\\\":{\\\"2024-05-15T16:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"108.3,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"42.5,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"45.7,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"198.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"44.2,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"134.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.45,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"14.82,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"9.3,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"10.32,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.34,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.89,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.2,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.72,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.57,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.63,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.16,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.12,\\\",\\\"significantWaveHeightPart6Of6\\\":0.11},\\\"2024-05-15T17:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"115,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"41.8,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"41.4,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"36.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"190,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"130.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"29.2,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.4,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.3,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.13,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"0,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.11,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart6Of6\\\":\\\"4.1,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.65,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.58,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.59,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.34,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.08,\\\",\\\"significantWaveHeightPart6Of6\\\":0.15},\\\"2024-05-15T18:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"107.2,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"63.55,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"40.65,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"35.9,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"108.1,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"77.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35.1,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"15.16,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.56,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.4,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"12.1,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"13.9,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.5,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.9,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.79,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.83,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.6,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.33,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.78,\\\",\\\"significantWaveHeightPart6Of6\\\":1.55}}}]}\");\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"content-type\", \"application/json\");\nrequest.AddHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"Accept\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\nrequest.AddParameter(\"application/json\", \"{\\\"url\\\":\\\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\\\",\\\"type\\\":\\\"FeatureCollection\\\",\\\"features\\\":[{\\\"type\\\":\\\"Feature\\\",\\\"geometry\\\":{\\\"type\\\":\\\"Point\\\",\\\"coordinates\\\":[3.88,55.81]},\\\"properties\\\":{\\\"2024-05-15T16:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"108.3,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"42.5,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"45.7,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"198.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"44.2,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"134.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.45,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"14.82,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"9.3,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"10.32,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.34,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.89,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.2,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.72,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.57,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.63,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.16,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.12,\\\",\\\"significantWaveHeightPart6Of6\\\":0.11},\\\"2024-05-15T17:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"115,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"41.8,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"41.4,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"36.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"190,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"130.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"29.2,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.4,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.3,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.13,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"0,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.11,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart6Of6\\\":\\\"4.1,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.65,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.58,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.59,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.34,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.08,\\\",\\\"significantWaveHeightPart6Of6\\\":0.15},\\\"2024-05-15T18:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"107.2,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"63.55,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"40.65,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"35.9,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"108.1,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"77.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35.1,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"15.16,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.56,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.4,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"12.1,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"13.9,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.5,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.9,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.79,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.83,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.6,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.33,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.78,\\\",\\\"significantWaveHeightPart6Of6\\\":1.55}}}]}\", ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"strings\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\"\n\n\tpayload := strings.NewReader(\"{\\\"url\\\":\\\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\\\",\\\"type\\\":\\\"FeatureCollection\\\",\\\"features\\\":[{\\\"type\\\":\\\"Feature\\\",\\\"geometry\\\":{\\\"type\\\":\\\"Point\\\",\\\"coordinates\\\":[3.88,55.81]},\\\"properties\\\":{\\\"2024-05-15T16:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"108.3,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"42.5,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"45.7,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"198.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"44.2,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"134.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.45,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"14.82,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"9.3,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"10.32,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.34,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.89,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.2,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.72,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.57,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.63,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.16,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.12,\\\",\\\"significantWaveHeightPart6Of6\\\":0.11},\\\"2024-05-15T17:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"115,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"41.8,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"41.4,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"36.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"190,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"130.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"29.2,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.4,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.3,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.13,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"0,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.11,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart6Of6\\\":\\\"4.1,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.65,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.58,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.59,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.34,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.08,\\\",\\\"significantWaveHeightPart6Of6\\\":0.15},\\\"2024-05-15T18:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"107.2,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"63.55,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"40.65,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"35.9,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"108.1,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"77.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35.1,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"15.16,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.56,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.4,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"12.1,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"13.9,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.5,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.9,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.79,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.83,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.6,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.33,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.78,\\\",\\\"significantWaveHeightPart6Of6\\\":1.55}}}]}\")\n\n\treq, _ := http.NewRequest(\"GET\", url, payload)\n\n\treq.Header.Add(\"content-type\", \"application/json\")\n\treq.Header.Add(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"Accept\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Okhttp","source":"OkHttpClient client = new OkHttpClient();\n\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\\"url\\\":\\\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\\\",\\\"type\\\":\\\"FeatureCollection\\\",\\\"features\\\":[{\\\"type\\\":\\\"Feature\\\",\\\"geometry\\\":{\\\"type\\\":\\\"Point\\\",\\\"coordinates\\\":[3.88,55.81]},\\\"properties\\\":{\\\"2024-05-15T16:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"108.3,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"42.5,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"45.7,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"198.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"44.2,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"134.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.45,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"14.82,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"9.3,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"10.32,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.34,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.89,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.2,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.72,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.57,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.63,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.16,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.12,\\\",\\\"significantWaveHeightPart6Of6\\\":0.11},\\\"2024-05-15T17:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"115,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"41.8,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"41.4,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"36.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"190,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"130.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"29.2,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.4,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.3,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.13,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"0,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.11,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart6Of6\\\":\\\"4.1,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.65,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.58,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.59,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.34,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.08,\\\",\\\"significantWaveHeightPart6Of6\\\":0.15},\\\"2024-05-15T18:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"107.2,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"63.55,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"40.65,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"35.9,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"108.1,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"77.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35.1,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"15.16,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.56,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.4,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"12.1,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"13.9,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.5,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.9,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.79,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.83,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.6,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.33,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.78,\\\",\\\"significantWaveHeightPart6Of6\\\":1.55}}}]}\");\nRequest request = new Request.Builder()\n .url(\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\")\n .get()\n .addHeader(\"content-type\", \"application/json\")\n .addHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n .addHeader(\"Accept\", \"SOME_STRING_VALUE\")\n .addHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"},{"lang":"Java + Unirest","source":"HttpResponse response = Unirest.get(\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\")\n .header(\"content-type\", \"application/json\")\n .header(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n .header(\"Accept\", \"SOME_STRING_VALUE\")\n .header(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n .body(\"{\\\"url\\\":\\\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\\\",\\\"type\\\":\\\"FeatureCollection\\\",\\\"features\\\":[{\\\"type\\\":\\\"Feature\\\",\\\"geometry\\\":{\\\"type\\\":\\\"Point\\\",\\\"coordinates\\\":[3.88,55.81]},\\\"properties\\\":{\\\"2024-05-15T16:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"108.3,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"42.5,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"45.7,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"198.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"44.2,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"134.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.45,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"14.82,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"9.3,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"10.32,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.34,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.89,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.2,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.72,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.57,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.63,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.16,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.12,\\\",\\\"significantWaveHeightPart6Of6\\\":0.11},\\\"2024-05-15T17:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"115,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"41.8,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"41.4,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"36.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"190,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"130.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"29.2,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.4,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.3,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.13,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"0,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.11,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart6Of6\\\":\\\"4.1,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.65,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.58,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.59,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.34,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.08,\\\",\\\"significantWaveHeightPart6Of6\\\":0.15},\\\"2024-05-15T18:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"107.2,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"63.55,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"40.65,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"35.9,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"108.1,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"77.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35.1,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"15.16,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.56,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.4,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"12.1,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"13.9,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.5,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.9,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.79,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.83,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.6,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.33,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.78,\\\",\\\"significantWaveHeightPart6Of6\\\":1.55}}}]}\")\n .asString();"},{"lang":"Javascript + Jquery","source":"const settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\",\n \"method\": \"GET\",\n \"headers\": {\n \"content-type\": \"application/json\",\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n },\n \"processData\": false,\n \"data\": \"{\\\"url\\\":\\\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\\\",\\\"type\\\":\\\"FeatureCollection\\\",\\\"features\\\":[{\\\"type\\\":\\\"Feature\\\",\\\"geometry\\\":{\\\"type\\\":\\\"Point\\\",\\\"coordinates\\\":[3.88,55.81]},\\\"properties\\\":{\\\"2024-05-15T16:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"108.3,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"42.5,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"45.7,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"198.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"44.2,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"134.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.45,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"14.82,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"9.3,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"10.32,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.34,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.89,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.2,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.72,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.57,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.63,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.16,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.12,\\\",\\\"significantWaveHeightPart6Of6\\\":0.11},\\\"2024-05-15T17:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"115,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"41.8,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"41.4,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"36.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"190,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"130.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"29.2,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.4,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.3,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.13,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"0,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.11,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart6Of6\\\":\\\"4.1,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.65,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.58,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.59,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.34,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.08,\\\",\\\"significantWaveHeightPart6Of6\\\":0.15},\\\"2024-05-15T18:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"107.2,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"63.55,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"40.65,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"35.9,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"108.1,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"77.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35.1,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"15.16,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.56,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.4,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"12.1,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"13.9,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.5,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.9,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.79,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.83,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.6,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.33,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.78,\\\",\\\"significantWaveHeightPart6Of6\\\":1.55}}}]}\"\n};\n\n$.ajax(settings).done(function (response) {\n console.log(response);\n});"},{"lang":"Javascript + Xhr","source":"const data = JSON.stringify({\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\",\n \"type\": \"FeatureCollection\",\n \"features\": [\n {\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [\n 3.88,\n 55.81\n ]\n },\n \"properties\": {\n \"2024-05-15T16:00:00Z\": {\n \"meanWaveDirectionPart1Of6\": \"108.3,\",\n \"meanWaveDirectionPart2Of6\": \"42.5,\",\n \"meanWaveDirectionPart3Of6\": \"45.7,\",\n \"meanWaveDirectionPart4Of6\": \"198.6,\",\n \"meanWaveDirectionPart5Of6\": \"44.2,\",\n \"meanWaveDirectionPart6Of6\": \"134.1,\",\n \"meanWaveDirectionalSpreadingPart1Of6\": \"35,\",\n \"meanWaveDirectionalSpreadingPart2Of6\": \"13.45,\",\n \"meanWaveDirectionalSpreadingPart3Of6\": \"14.82,\",\n \"meanWaveDirectionalSpreadingPart4Of6\": \"9.3,\",\n \"meanWaveDirectionalSpreadingPart5Of6\": \"10.32,\",\n \"meanWaveDirectionalSpreadingPart6Of6\": \"12.34,\",\n \"peakPeriodPart1Of6\": \"6.3,\",\n \"peakPeriodPart2Of6\": \"5.2,\",\n \"peakPeriodPart3Of6\": \"5.2,\",\n \"peakPeriodPart4Of6\": \"4.75,\",\n \"peakPeriodPart5Of6\": \"4.89,\",\n \"peakPeriodPart6Of6\": \"5.2,\",\n \"significantWaveHeightPart1Of6\": \"1.72,\",\n \"significantWaveHeightPart2Of6\": \"0.57,\",\n \"significantWaveHeightPart3Of6\": \"0.63,\",\n \"significantWaveHeightPart4Of6\": \"0.16,\",\n \"significantWaveHeightPart5Of6\": \"0.12,\",\n \"significantWaveHeightPart6Of6\": 0.11\n },\n \"2024-05-15T17:00:00Z\": {\n \"meanWaveDirectionPart1Of6\": \"115,\",\n \"meanWaveDirectionPart2Of6\": \"41.8,\",\n \"meanWaveDirectionPart3Of6\": \"41.4,\",\n \"meanWaveDirectionPart4Of6\": \"36.6,\",\n \"meanWaveDirectionPart5Of6\": \"190,\",\n \"meanWaveDirectionPart6Of6\": \"130.1,\",\n \"meanWaveDirectionalSpreadingPart1Of6\": \"29.2,\",\n \"meanWaveDirectionalSpreadingPart2Of6\": \"13.4,\",\n \"meanWaveDirectionalSpreadingPart3Of6\": \"13.3,\",\n \"meanWaveDirectionalSpreadingPart4Of6\": \"12.13,\",\n \"meanWaveDirectionalSpreadingPart5Of6\": \"0,\",\n \"meanWaveDirectionalSpreadingPart6Of6\": \"12.11,\",\n \"peakPeriodPart1Of6\": \"6.3,\",\n \"peakPeriodPart2Of6\": \"5.2,\",\n \"peakPeriodPart3Of6\": \"5.2,\",\n \"peakPeriodPart4Of6\": \"6.3,\",\n \"peakPeriodPart5Of6\": \"4.75,\",\n \"peakPeriodPart6Of6\": \"4.1,\",\n \"significantWaveHeightPart1Of6\": \"1.65,\",\n \"significantWaveHeightPart2Of6\": \"0.58,\",\n \"significantWaveHeightPart3Of6\": \"0.59,\",\n \"significantWaveHeightPart4Of6\": \"0.34,\",\n \"significantWaveHeightPart5Of6\": \"0.08,\",\n \"significantWaveHeightPart6Of6\": 0.15\n },\n \"2024-05-15T18:00:00Z\": {\n \"meanWaveDirectionPart1Of6\": \"107.2,\",\n \"meanWaveDirectionPart2Of6\": \"63.55,\",\n \"meanWaveDirectionPart3Of6\": \"40.65,\",\n \"meanWaveDirectionPart4Of6\": \"35.9,\",\n \"meanWaveDirectionPart5Of6\": \"108.1,\",\n \"meanWaveDirectionPart6Of6\": \"77.1,\",\n \"meanWaveDirectionalSpreadingPart1Of6\": \"35.1,\",\n \"meanWaveDirectionalSpreadingPart2Of6\": \"15.16,\",\n \"meanWaveDirectionalSpreadingPart3Of6\": \"13.56,\",\n \"meanWaveDirectionalSpreadingPart4Of6\": \"12.4,\",\n \"meanWaveDirectionalSpreadingPart5Of6\": \"12.1,\",\n \"meanWaveDirectionalSpreadingPart6Of6\": \"13.9,\",\n \"peakPeriodPart1Of6\": \"6.3,\",\n \"peakPeriodPart2Of6\": \"5.5,\",\n \"peakPeriodPart3Of6\": \"5.2,\",\n \"peakPeriodPart4Of6\": \"6.3,\",\n \"peakPeriodPart5Of6\": \"5.2,\",\n \"peakPeriodPart6Of6\": \"5.9,\",\n \"significantWaveHeightPart1Of6\": \"1.79,\",\n \"significantWaveHeightPart2Of6\": \"0.83,\",\n \"significantWaveHeightPart3Of6\": \"0.6,\",\n \"significantWaveHeightPart4Of6\": \"0.33,\",\n \"significantWaveHeightPart5Of6\": \"0.78,\",\n \"significantWaveHeightPart6Of6\": 1.55\n }\n }\n }\n ]\n});\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n if (this.readyState === this.DONE) {\n console.log(this.responseText);\n }\n});\n\nxhr.open(\"GET\", \"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\");\nxhr.setRequestHeader(\"content-type\", \"application/json\");\nxhr.setRequestHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"Accept\", \"SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\n\nxhr.send(data);"},{"lang":"Javascript + Jquery","source":"const settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\",\n \"method\": \"GET\",\n \"headers\": {\n \"content-type\": \"application/json\",\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n },\n \"processData\": false,\n \"data\": \"{\\\"url\\\":\\\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\\\",\\\"type\\\":\\\"FeatureCollection\\\",\\\"features\\\":[{\\\"type\\\":\\\"Feature\\\",\\\"geometry\\\":{\\\"type\\\":\\\"Point\\\",\\\"coordinates\\\":[3.88,55.81]},\\\"properties\\\":{\\\"2024-05-15T16:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"108.3,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"42.5,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"45.7,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"198.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"44.2,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"134.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.45,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"14.82,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"9.3,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"10.32,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.34,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.89,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.2,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.72,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.57,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.63,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.16,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.12,\\\",\\\"significantWaveHeightPart6Of6\\\":0.11},\\\"2024-05-15T17:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"115,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"41.8,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"41.4,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"36.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"190,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"130.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"29.2,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.4,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.3,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.13,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"0,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.11,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart6Of6\\\":\\\"4.1,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.65,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.58,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.59,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.34,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.08,\\\",\\\"significantWaveHeightPart6Of6\\\":0.15},\\\"2024-05-15T18:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"107.2,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"63.55,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"40.65,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"35.9,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"108.1,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"77.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35.1,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"15.16,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.56,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.4,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"12.1,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"13.9,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.5,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.9,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.79,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.83,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.6,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.33,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.78,\\\",\\\"significantWaveHeightPart6Of6\\\":1.55}}}]}\"\n};\n\n$.ajax(settings).done(function (response) {\n console.log(response);\n});"},{"lang":"Node + Native","source":"const http = require(\"https\");\n\nconst options = {\n \"method\": \"GET\",\n \"hostname\": \"weather.api.dtn.com\",\n \"port\": null,\n \"path\": \"/v1/conditions/marine/wave-partitions\",\n \"headers\": {\n \"content-type\": \"application/json\",\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n }\n};\n\nconst req = http.request(options, function (res) {\n const chunks = [];\n\n res.on(\"data\", function (chunk) {\n chunks.push(chunk);\n });\n\n res.on(\"end\", function () {\n const body = Buffer.concat(chunks);\n console.log(body.toString());\n });\n});\n\nreq.write(JSON.stringify({\n url: 'https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z',\n type: 'FeatureCollection',\n features: [\n {\n type: 'Feature',\n geometry: {type: 'Point', coordinates: [3.88, 55.81]},\n properties: {\n '2024-05-15T16:00:00Z': {\n meanWaveDirectionPart1Of6: '108.3,',\n meanWaveDirectionPart2Of6: '42.5,',\n meanWaveDirectionPart3Of6: '45.7,',\n meanWaveDirectionPart4Of6: '198.6,',\n meanWaveDirectionPart5Of6: '44.2,',\n meanWaveDirectionPart6Of6: '134.1,',\n meanWaveDirectionalSpreadingPart1Of6: '35,',\n meanWaveDirectionalSpreadingPart2Of6: '13.45,',\n meanWaveDirectionalSpreadingPart3Of6: '14.82,',\n meanWaveDirectionalSpreadingPart4Of6: '9.3,',\n meanWaveDirectionalSpreadingPart5Of6: '10.32,',\n meanWaveDirectionalSpreadingPart6Of6: '12.34,',\n peakPeriodPart1Of6: '6.3,',\n peakPeriodPart2Of6: '5.2,',\n peakPeriodPart3Of6: '5.2,',\n peakPeriodPart4Of6: '4.75,',\n peakPeriodPart5Of6: '4.89,',\n peakPeriodPart6Of6: '5.2,',\n significantWaveHeightPart1Of6: '1.72,',\n significantWaveHeightPart2Of6: '0.57,',\n significantWaveHeightPart3Of6: '0.63,',\n significantWaveHeightPart4Of6: '0.16,',\n significantWaveHeightPart5Of6: '0.12,',\n significantWaveHeightPart6Of6: 0.11\n },\n '2024-05-15T17:00:00Z': {\n meanWaveDirectionPart1Of6: '115,',\n meanWaveDirectionPart2Of6: '41.8,',\n meanWaveDirectionPart3Of6: '41.4,',\n meanWaveDirectionPart4Of6: '36.6,',\n meanWaveDirectionPart5Of6: '190,',\n meanWaveDirectionPart6Of6: '130.1,',\n meanWaveDirectionalSpreadingPart1Of6: '29.2,',\n meanWaveDirectionalSpreadingPart2Of6: '13.4,',\n meanWaveDirectionalSpreadingPart3Of6: '13.3,',\n meanWaveDirectionalSpreadingPart4Of6: '12.13,',\n meanWaveDirectionalSpreadingPart5Of6: '0,',\n meanWaveDirectionalSpreadingPart6Of6: '12.11,',\n peakPeriodPart1Of6: '6.3,',\n peakPeriodPart2Of6: '5.2,',\n peakPeriodPart3Of6: '5.2,',\n peakPeriodPart4Of6: '6.3,',\n peakPeriodPart5Of6: '4.75,',\n peakPeriodPart6Of6: '4.1,',\n significantWaveHeightPart1Of6: '1.65,',\n significantWaveHeightPart2Of6: '0.58,',\n significantWaveHeightPart3Of6: '0.59,',\n significantWaveHeightPart4Of6: '0.34,',\n significantWaveHeightPart5Of6: '0.08,',\n significantWaveHeightPart6Of6: 0.15\n },\n '2024-05-15T18:00:00Z': {\n meanWaveDirectionPart1Of6: '107.2,',\n meanWaveDirectionPart2Of6: '63.55,',\n meanWaveDirectionPart3Of6: '40.65,',\n meanWaveDirectionPart4Of6: '35.9,',\n meanWaveDirectionPart5Of6: '108.1,',\n meanWaveDirectionPart6Of6: '77.1,',\n meanWaveDirectionalSpreadingPart1Of6: '35.1,',\n meanWaveDirectionalSpreadingPart2Of6: '15.16,',\n meanWaveDirectionalSpreadingPart3Of6: '13.56,',\n meanWaveDirectionalSpreadingPart4Of6: '12.4,',\n meanWaveDirectionalSpreadingPart5Of6: '12.1,',\n meanWaveDirectionalSpreadingPart6Of6: '13.9,',\n peakPeriodPart1Of6: '6.3,',\n peakPeriodPart2Of6: '5.5,',\n peakPeriodPart3Of6: '5.2,',\n peakPeriodPart4Of6: '6.3,',\n peakPeriodPart5Of6: '5.2,',\n peakPeriodPart6Of6: '5.9,',\n significantWaveHeightPart1Of6: '1.79,',\n significantWaveHeightPart2Of6: '0.83,',\n significantWaveHeightPart3Of6: '0.6,',\n significantWaveHeightPart4Of6: '0.33,',\n significantWaveHeightPart5Of6: '0.78,',\n significantWaveHeightPart6Of6: 1.55\n }\n }\n }\n ]\n}));\nreq.end();"},{"lang":"Node + Request","source":"const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://weather.api.dtn.com/v1/conditions/marine/wave-partitions',\n headers: {\n 'content-type': 'application/json',\n 'Accept-Encoding': 'SOME_STRING_VALUE',\n Accept: 'SOME_STRING_VALUE',\n Authorization: 'Bearer REPLACE_BEARER_TOKEN'\n },\n body: {\n url: 'https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z',\n type: 'FeatureCollection',\n features: [\n {\n type: 'Feature',\n geometry: {type: 'Point', coordinates: [3.88, 55.81]},\n properties: {\n '2024-05-15T16:00:00Z': {\n meanWaveDirectionPart1Of6: '108.3,',\n meanWaveDirectionPart2Of6: '42.5,',\n meanWaveDirectionPart3Of6: '45.7,',\n meanWaveDirectionPart4Of6: '198.6,',\n meanWaveDirectionPart5Of6: '44.2,',\n meanWaveDirectionPart6Of6: '134.1,',\n meanWaveDirectionalSpreadingPart1Of6: '35,',\n meanWaveDirectionalSpreadingPart2Of6: '13.45,',\n meanWaveDirectionalSpreadingPart3Of6: '14.82,',\n meanWaveDirectionalSpreadingPart4Of6: '9.3,',\n meanWaveDirectionalSpreadingPart5Of6: '10.32,',\n meanWaveDirectionalSpreadingPart6Of6: '12.34,',\n peakPeriodPart1Of6: '6.3,',\n peakPeriodPart2Of6: '5.2,',\n peakPeriodPart3Of6: '5.2,',\n peakPeriodPart4Of6: '4.75,',\n peakPeriodPart5Of6: '4.89,',\n peakPeriodPart6Of6: '5.2,',\n significantWaveHeightPart1Of6: '1.72,',\n significantWaveHeightPart2Of6: '0.57,',\n significantWaveHeightPart3Of6: '0.63,',\n significantWaveHeightPart4Of6: '0.16,',\n significantWaveHeightPart5Of6: '0.12,',\n significantWaveHeightPart6Of6: 0.11\n },\n '2024-05-15T17:00:00Z': {\n meanWaveDirectionPart1Of6: '115,',\n meanWaveDirectionPart2Of6: '41.8,',\n meanWaveDirectionPart3Of6: '41.4,',\n meanWaveDirectionPart4Of6: '36.6,',\n meanWaveDirectionPart5Of6: '190,',\n meanWaveDirectionPart6Of6: '130.1,',\n meanWaveDirectionalSpreadingPart1Of6: '29.2,',\n meanWaveDirectionalSpreadingPart2Of6: '13.4,',\n meanWaveDirectionalSpreadingPart3Of6: '13.3,',\n meanWaveDirectionalSpreadingPart4Of6: '12.13,',\n meanWaveDirectionalSpreadingPart5Of6: '0,',\n meanWaveDirectionalSpreadingPart6Of6: '12.11,',\n peakPeriodPart1Of6: '6.3,',\n peakPeriodPart2Of6: '5.2,',\n peakPeriodPart3Of6: '5.2,',\n peakPeriodPart4Of6: '6.3,',\n peakPeriodPart5Of6: '4.75,',\n peakPeriodPart6Of6: '4.1,',\n significantWaveHeightPart1Of6: '1.65,',\n significantWaveHeightPart2Of6: '0.58,',\n significantWaveHeightPart3Of6: '0.59,',\n significantWaveHeightPart4Of6: '0.34,',\n significantWaveHeightPart5Of6: '0.08,',\n significantWaveHeightPart6Of6: 0.15\n },\n '2024-05-15T18:00:00Z': {\n meanWaveDirectionPart1Of6: '107.2,',\n meanWaveDirectionPart2Of6: '63.55,',\n meanWaveDirectionPart3Of6: '40.65,',\n meanWaveDirectionPart4Of6: '35.9,',\n meanWaveDirectionPart5Of6: '108.1,',\n meanWaveDirectionPart6Of6: '77.1,',\n meanWaveDirectionalSpreadingPart1Of6: '35.1,',\n meanWaveDirectionalSpreadingPart2Of6: '15.16,',\n meanWaveDirectionalSpreadingPart3Of6: '13.56,',\n meanWaveDirectionalSpreadingPart4Of6: '12.4,',\n meanWaveDirectionalSpreadingPart5Of6: '12.1,',\n meanWaveDirectionalSpreadingPart6Of6: '13.9,',\n peakPeriodPart1Of6: '6.3,',\n peakPeriodPart2Of6: '5.5,',\n peakPeriodPart3Of6: '5.2,',\n peakPeriodPart4Of6: '6.3,',\n peakPeriodPart5Of6: '5.2,',\n peakPeriodPart6Of6: '5.9,',\n significantWaveHeightPart1Of6: '1.79,',\n significantWaveHeightPart2Of6: '0.83,',\n significantWaveHeightPart3Of6: '0.6,',\n significantWaveHeightPart4Of6: '0.33,',\n significantWaveHeightPart5Of6: '0.78,',\n significantWaveHeightPart6Of6: 1.55\n }\n }\n }\n ]\n },\n json: true\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\");\n\nreq.headers({\n \"content-type\": \"application/json\",\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n});\n\nreq.type(\"json\");\nreq.send({\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\",\n \"type\": \"FeatureCollection\",\n \"features\": [\n {\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [\n 3.88,\n 55.81\n ]\n },\n \"properties\": {\n \"2024-05-15T16:00:00Z\": {\n \"meanWaveDirectionPart1Of6\": \"108.3,\",\n \"meanWaveDirectionPart2Of6\": \"42.5,\",\n \"meanWaveDirectionPart3Of6\": \"45.7,\",\n \"meanWaveDirectionPart4Of6\": \"198.6,\",\n \"meanWaveDirectionPart5Of6\": \"44.2,\",\n \"meanWaveDirectionPart6Of6\": \"134.1,\",\n \"meanWaveDirectionalSpreadingPart1Of6\": \"35,\",\n \"meanWaveDirectionalSpreadingPart2Of6\": \"13.45,\",\n \"meanWaveDirectionalSpreadingPart3Of6\": \"14.82,\",\n \"meanWaveDirectionalSpreadingPart4Of6\": \"9.3,\",\n \"meanWaveDirectionalSpreadingPart5Of6\": \"10.32,\",\n \"meanWaveDirectionalSpreadingPart6Of6\": \"12.34,\",\n \"peakPeriodPart1Of6\": \"6.3,\",\n \"peakPeriodPart2Of6\": \"5.2,\",\n \"peakPeriodPart3Of6\": \"5.2,\",\n \"peakPeriodPart4Of6\": \"4.75,\",\n \"peakPeriodPart5Of6\": \"4.89,\",\n \"peakPeriodPart6Of6\": \"5.2,\",\n \"significantWaveHeightPart1Of6\": \"1.72,\",\n \"significantWaveHeightPart2Of6\": \"0.57,\",\n \"significantWaveHeightPart3Of6\": \"0.63,\",\n \"significantWaveHeightPart4Of6\": \"0.16,\",\n \"significantWaveHeightPart5Of6\": \"0.12,\",\n \"significantWaveHeightPart6Of6\": 0.11\n },\n \"2024-05-15T17:00:00Z\": {\n \"meanWaveDirectionPart1Of6\": \"115,\",\n \"meanWaveDirectionPart2Of6\": \"41.8,\",\n \"meanWaveDirectionPart3Of6\": \"41.4,\",\n \"meanWaveDirectionPart4Of6\": \"36.6,\",\n \"meanWaveDirectionPart5Of6\": \"190,\",\n \"meanWaveDirectionPart6Of6\": \"130.1,\",\n \"meanWaveDirectionalSpreadingPart1Of6\": \"29.2,\",\n \"meanWaveDirectionalSpreadingPart2Of6\": \"13.4,\",\n \"meanWaveDirectionalSpreadingPart3Of6\": \"13.3,\",\n \"meanWaveDirectionalSpreadingPart4Of6\": \"12.13,\",\n \"meanWaveDirectionalSpreadingPart5Of6\": \"0,\",\n \"meanWaveDirectionalSpreadingPart6Of6\": \"12.11,\",\n \"peakPeriodPart1Of6\": \"6.3,\",\n \"peakPeriodPart2Of6\": \"5.2,\",\n \"peakPeriodPart3Of6\": \"5.2,\",\n \"peakPeriodPart4Of6\": \"6.3,\",\n \"peakPeriodPart5Of6\": \"4.75,\",\n \"peakPeriodPart6Of6\": \"4.1,\",\n \"significantWaveHeightPart1Of6\": \"1.65,\",\n \"significantWaveHeightPart2Of6\": \"0.58,\",\n \"significantWaveHeightPart3Of6\": \"0.59,\",\n \"significantWaveHeightPart4Of6\": \"0.34,\",\n \"significantWaveHeightPart5Of6\": \"0.08,\",\n \"significantWaveHeightPart6Of6\": 0.15\n },\n \"2024-05-15T18:00:00Z\": {\n \"meanWaveDirectionPart1Of6\": \"107.2,\",\n \"meanWaveDirectionPart2Of6\": \"63.55,\",\n \"meanWaveDirectionPart3Of6\": \"40.65,\",\n \"meanWaveDirectionPart4Of6\": \"35.9,\",\n \"meanWaveDirectionPart5Of6\": \"108.1,\",\n \"meanWaveDirectionPart6Of6\": \"77.1,\",\n \"meanWaveDirectionalSpreadingPart1Of6\": \"35.1,\",\n \"meanWaveDirectionalSpreadingPart2Of6\": \"15.16,\",\n \"meanWaveDirectionalSpreadingPart3Of6\": \"13.56,\",\n \"meanWaveDirectionalSpreadingPart4Of6\": \"12.4,\",\n \"meanWaveDirectionalSpreadingPart5Of6\": \"12.1,\",\n \"meanWaveDirectionalSpreadingPart6Of6\": \"13.9,\",\n \"peakPeriodPart1Of6\": \"6.3,\",\n \"peakPeriodPart2Of6\": \"5.5,\",\n \"peakPeriodPart3Of6\": \"5.2,\",\n \"peakPeriodPart4Of6\": \"6.3,\",\n \"peakPeriodPart5Of6\": \"5.2,\",\n \"peakPeriodPart6Of6\": \"5.9,\",\n \"significantWaveHeightPart1Of6\": \"1.79,\",\n \"significantWaveHeightPart2Of6\": \"0.83,\",\n \"significantWaveHeightPart3Of6\": \"0.6,\",\n \"significantWaveHeightPart4Of6\": \"0.33,\",\n \"significantWaveHeightPart5Of6\": \"0.78,\",\n \"significantWaveHeightPart6Of6\": 1.55\n }\n }\n }\n ]\n});\n\nreq.end(function (res) {\n if (res.error) throw new Error(res.error);\n\n console.log(res.body);\n});\n"},{"lang":"Objc + Nsurlsession","source":"#import \n\nNSDictionary *headers = @{ @\"content-type\": @\"application/json\",\n @\"Accept-Encoding\": @\"SOME_STRING_VALUE\",\n @\"Accept\": @\"SOME_STRING_VALUE\",\n @\"Authorization\": @\"Bearer REPLACE_BEARER_TOKEN\" };\nNSDictionary *parameters = @{ @\"url\": @\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\",\n @\"type\": @\"FeatureCollection\",\n @\"features\": @[ @{ @\"type\": @\"Feature\", @\"geometry\": @{ @\"type\": @\"Point\", @\"coordinates\": @[ @3.88, @55.81 ] }, @\"properties\": @{ @\"2024-05-15T16:00:00Z\": @{ @\"meanWaveDirectionPart1Of6\": @\"108.3,\", @\"meanWaveDirectionPart2Of6\": @\"42.5,\", @\"meanWaveDirectionPart3Of6\": @\"45.7,\", @\"meanWaveDirectionPart4Of6\": @\"198.6,\", @\"meanWaveDirectionPart5Of6\": @\"44.2,\", @\"meanWaveDirectionPart6Of6\": @\"134.1,\", @\"meanWaveDirectionalSpreadingPart1Of6\": @\"35,\", @\"meanWaveDirectionalSpreadingPart2Of6\": @\"13.45,\", @\"meanWaveDirectionalSpreadingPart3Of6\": @\"14.82,\", @\"meanWaveDirectionalSpreadingPart4Of6\": @\"9.3,\", @\"meanWaveDirectionalSpreadingPart5Of6\": @\"10.32,\", @\"meanWaveDirectionalSpreadingPart6Of6\": @\"12.34,\", @\"peakPeriodPart1Of6\": @\"6.3,\", @\"peakPeriodPart2Of6\": @\"5.2,\", @\"peakPeriodPart3Of6\": @\"5.2,\", @\"peakPeriodPart4Of6\": @\"4.75,\", @\"peakPeriodPart5Of6\": @\"4.89,\", @\"peakPeriodPart6Of6\": @\"5.2,\", @\"significantWaveHeightPart1Of6\": @\"1.72,\", @\"significantWaveHeightPart2Of6\": @\"0.57,\", @\"significantWaveHeightPart3Of6\": @\"0.63,\", @\"significantWaveHeightPart4Of6\": @\"0.16,\", @\"significantWaveHeightPart5Of6\": @\"0.12,\", @\"significantWaveHeightPart6Of6\": @0.11 }, @\"2024-05-15T17:00:00Z\": @{ @\"meanWaveDirectionPart1Of6\": @\"115,\", @\"meanWaveDirectionPart2Of6\": @\"41.8,\", @\"meanWaveDirectionPart3Of6\": @\"41.4,\", @\"meanWaveDirectionPart4Of6\": @\"36.6,\", @\"meanWaveDirectionPart5Of6\": @\"190,\", @\"meanWaveDirectionPart6Of6\": @\"130.1,\", @\"meanWaveDirectionalSpreadingPart1Of6\": @\"29.2,\", @\"meanWaveDirectionalSpreadingPart2Of6\": @\"13.4,\", @\"meanWaveDirectionalSpreadingPart3Of6\": @\"13.3,\", @\"meanWaveDirectionalSpreadingPart4Of6\": @\"12.13,\", @\"meanWaveDirectionalSpreadingPart5Of6\": @\"0,\", @\"meanWaveDirectionalSpreadingPart6Of6\": @\"12.11,\", @\"peakPeriodPart1Of6\": @\"6.3,\", @\"peakPeriodPart2Of6\": @\"5.2,\", @\"peakPeriodPart3Of6\": @\"5.2,\", @\"peakPeriodPart4Of6\": @\"6.3,\", @\"peakPeriodPart5Of6\": @\"4.75,\", @\"peakPeriodPart6Of6\": @\"4.1,\", @\"significantWaveHeightPart1Of6\": @\"1.65,\", @\"significantWaveHeightPart2Of6\": @\"0.58,\", @\"significantWaveHeightPart3Of6\": @\"0.59,\", @\"significantWaveHeightPart4Of6\": @\"0.34,\", @\"significantWaveHeightPart5Of6\": @\"0.08,\", @\"significantWaveHeightPart6Of6\": @0.15 }, @\"2024-05-15T18:00:00Z\": @{ @\"meanWaveDirectionPart1Of6\": @\"107.2,\", @\"meanWaveDirectionPart2Of6\": @\"63.55,\", @\"meanWaveDirectionPart3Of6\": @\"40.65,\", @\"meanWaveDirectionPart4Of6\": @\"35.9,\", @\"meanWaveDirectionPart5Of6\": @\"108.1,\", @\"meanWaveDirectionPart6Of6\": @\"77.1,\", @\"meanWaveDirectionalSpreadingPart1Of6\": @\"35.1,\", @\"meanWaveDirectionalSpreadingPart2Of6\": @\"15.16,\", @\"meanWaveDirectionalSpreadingPart3Of6\": @\"13.56,\", @\"meanWaveDirectionalSpreadingPart4Of6\": @\"12.4,\", @\"meanWaveDirectionalSpreadingPart5Of6\": @\"12.1,\", @\"meanWaveDirectionalSpreadingPart6Of6\": @\"13.9,\", @\"peakPeriodPart1Of6\": @\"6.3,\", @\"peakPeriodPart2Of6\": @\"5.5,\", @\"peakPeriodPart3Of6\": @\"5.2,\", @\"peakPeriodPart4Of6\": @\"6.3,\", @\"peakPeriodPart5Of6\": @\"5.2,\", @\"peakPeriodPart6Of6\": @\"5.9,\", @\"significantWaveHeightPart1Of6\": @\"1.79,\", @\"significantWaveHeightPart2Of6\": @\"0.83,\", @\"significantWaveHeightPart3Of6\": @\"0.6,\", @\"significantWaveHeightPart4Of6\": @\"0.33,\", @\"significantWaveHeightPart5Of6\": @\"0.78,\", @\"significantWaveHeightPart6Of6\": @1.55 } } } ] };\n\nNSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];\n\nNSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\"]\n cachePolicy:NSURLRequestUseProtocolCachePolicy\n timeoutInterval:10.0];\n[request setHTTPMethod:@\"GET\"];\n[request setAllHTTPHeaderFields:headers];\n[request setHTTPBody:postData];\n\nNSURLSession *session = [NSURLSession sharedSession];\nNSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request\n completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {\n if (error) {\n NSLog(@\"%@\", error);\n } else {\n NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;\n NSLog(@\"%@\", httpResponse);\n }\n }];\n[dataTask resume];"},{"lang":"Ocaml + Cohttp","source":"open Cohttp_lwt_unix\nopen Cohttp\nopen Lwt\n\nlet uri = Uri.of_string \"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\" in\nlet headers = Header.add_list (Header.init ()) [\n (\"content-type\", \"application/json\");\n (\"Accept-Encoding\", \"SOME_STRING_VALUE\");\n (\"Accept\", \"SOME_STRING_VALUE\");\n (\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\n] in\nlet body = Cohttp_lwt_body.of_string \"{\\\"url\\\":\\\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\\\",\\\"type\\\":\\\"FeatureCollection\\\",\\\"features\\\":[{\\\"type\\\":\\\"Feature\\\",\\\"geometry\\\":{\\\"type\\\":\\\"Point\\\",\\\"coordinates\\\":[3.88,55.81]},\\\"properties\\\":{\\\"2024-05-15T16:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"108.3,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"42.5,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"45.7,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"198.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"44.2,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"134.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.45,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"14.82,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"9.3,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"10.32,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.34,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.89,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.2,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.72,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.57,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.63,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.16,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.12,\\\",\\\"significantWaveHeightPart6Of6\\\":0.11},\\\"2024-05-15T17:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"115,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"41.8,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"41.4,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"36.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"190,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"130.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"29.2,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.4,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.3,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.13,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"0,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.11,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart6Of6\\\":\\\"4.1,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.65,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.58,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.59,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.34,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.08,\\\",\\\"significantWaveHeightPart6Of6\\\":0.15},\\\"2024-05-15T18:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"107.2,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"63.55,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"40.65,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"35.9,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"108.1,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"77.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35.1,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"15.16,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.56,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.4,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"12.1,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"13.9,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.5,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.9,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.79,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.83,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.6,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.33,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.78,\\\",\\\"significantWaveHeightPart6Of6\\\":1.55}}}]}\" in\n\nClient.call ~headers ~body `GET uri\n>>= fun (res, body_stream) ->\n (* Do stuff with the result *)"},{"lang":"Php + Curl","source":" \"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"GET\",\n CURLOPT_POSTFIELDS => \"{\\\"url\\\":\\\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\\\",\\\"type\\\":\\\"FeatureCollection\\\",\\\"features\\\":[{\\\"type\\\":\\\"Feature\\\",\\\"geometry\\\":{\\\"type\\\":\\\"Point\\\",\\\"coordinates\\\":[3.88,55.81]},\\\"properties\\\":{\\\"2024-05-15T16:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"108.3,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"42.5,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"45.7,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"198.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"44.2,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"134.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.45,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"14.82,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"9.3,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"10.32,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.34,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.89,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.2,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.72,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.57,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.63,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.16,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.12,\\\",\\\"significantWaveHeightPart6Of6\\\":0.11},\\\"2024-05-15T17:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"115,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"41.8,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"41.4,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"36.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"190,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"130.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"29.2,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.4,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.3,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.13,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"0,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.11,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart6Of6\\\":\\\"4.1,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.65,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.58,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.59,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.34,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.08,\\\",\\\"significantWaveHeightPart6Of6\\\":0.15},\\\"2024-05-15T18:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"107.2,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"63.55,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"40.65,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"35.9,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"108.1,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"77.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35.1,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"15.16,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.56,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.4,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"12.1,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"13.9,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.5,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.9,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.79,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.83,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.6,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.33,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.78,\\\",\\\"significantWaveHeightPart6Of6\\\":1.55}}}]}\",\n CURLOPT_HTTPHEADER => [\n \"Accept: SOME_STRING_VALUE\",\n \"Accept-Encoding: SOME_STRING_VALUE\",\n \"Authorization: Bearer REPLACE_BEARER_TOKEN\",\n \"content-type: application/json\"\n ],\n]);\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}"},{"lang":"Php + Http1","source":"setUrl('https://weather.api.dtn.com/v1/conditions/marine/wave-partitions');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Accept-Encoding' => 'SOME_STRING_VALUE',\n 'Accept' => 'SOME_STRING_VALUE',\n 'Authorization' => 'Bearer REPLACE_BEARER_TOKEN'\n]);\n\n$request->setBody('{\"url\":\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\",\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[3.88,55.81]},\"properties\":{\"2024-05-15T16:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"108.3,\",\"meanWaveDirectionPart2Of6\":\"42.5,\",\"meanWaveDirectionPart3Of6\":\"45.7,\",\"meanWaveDirectionPart4Of6\":\"198.6,\",\"meanWaveDirectionPart5Of6\":\"44.2,\",\"meanWaveDirectionPart6Of6\":\"134.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"35,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"13.45,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"14.82,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"9.3,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"10.32,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"12.34,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.2,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"4.75,\",\"peakPeriodPart5Of6\":\"4.89,\",\"peakPeriodPart6Of6\":\"5.2,\",\"significantWaveHeightPart1Of6\":\"1.72,\",\"significantWaveHeightPart2Of6\":\"0.57,\",\"significantWaveHeightPart3Of6\":\"0.63,\",\"significantWaveHeightPart4Of6\":\"0.16,\",\"significantWaveHeightPart5Of6\":\"0.12,\",\"significantWaveHeightPart6Of6\":0.11},\"2024-05-15T17:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"115,\",\"meanWaveDirectionPart2Of6\":\"41.8,\",\"meanWaveDirectionPart3Of6\":\"41.4,\",\"meanWaveDirectionPart4Of6\":\"36.6,\",\"meanWaveDirectionPart5Of6\":\"190,\",\"meanWaveDirectionPart6Of6\":\"130.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"29.2,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"13.4,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"13.3,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"12.13,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"0,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"12.11,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.2,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"6.3,\",\"peakPeriodPart5Of6\":\"4.75,\",\"peakPeriodPart6Of6\":\"4.1,\",\"significantWaveHeightPart1Of6\":\"1.65,\",\"significantWaveHeightPart2Of6\":\"0.58,\",\"significantWaveHeightPart3Of6\":\"0.59,\",\"significantWaveHeightPart4Of6\":\"0.34,\",\"significantWaveHeightPart5Of6\":\"0.08,\",\"significantWaveHeightPart6Of6\":0.15},\"2024-05-15T18:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"107.2,\",\"meanWaveDirectionPart2Of6\":\"63.55,\",\"meanWaveDirectionPart3Of6\":\"40.65,\",\"meanWaveDirectionPart4Of6\":\"35.9,\",\"meanWaveDirectionPart5Of6\":\"108.1,\",\"meanWaveDirectionPart6Of6\":\"77.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"35.1,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"15.16,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"13.56,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"12.4,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"12.1,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"13.9,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.5,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"6.3,\",\"peakPeriodPart5Of6\":\"5.2,\",\"peakPeriodPart6Of6\":\"5.9,\",\"significantWaveHeightPart1Of6\":\"1.79,\",\"significantWaveHeightPart2Of6\":\"0.83,\",\"significantWaveHeightPart3Of6\":\"0.6,\",\"significantWaveHeightPart4Of6\":\"0.33,\",\"significantWaveHeightPart5Of6\":\"0.78,\",\"significantWaveHeightPart6Of6\":1.55}}}]}');\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}"},{"lang":"Php + Http2","source":"append('{\"url\":\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\",\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[3.88,55.81]},\"properties\":{\"2024-05-15T16:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"108.3,\",\"meanWaveDirectionPart2Of6\":\"42.5,\",\"meanWaveDirectionPart3Of6\":\"45.7,\",\"meanWaveDirectionPart4Of6\":\"198.6,\",\"meanWaveDirectionPart5Of6\":\"44.2,\",\"meanWaveDirectionPart6Of6\":\"134.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"35,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"13.45,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"14.82,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"9.3,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"10.32,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"12.34,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.2,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"4.75,\",\"peakPeriodPart5Of6\":\"4.89,\",\"peakPeriodPart6Of6\":\"5.2,\",\"significantWaveHeightPart1Of6\":\"1.72,\",\"significantWaveHeightPart2Of6\":\"0.57,\",\"significantWaveHeightPart3Of6\":\"0.63,\",\"significantWaveHeightPart4Of6\":\"0.16,\",\"significantWaveHeightPart5Of6\":\"0.12,\",\"significantWaveHeightPart6Of6\":0.11},\"2024-05-15T17:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"115,\",\"meanWaveDirectionPart2Of6\":\"41.8,\",\"meanWaveDirectionPart3Of6\":\"41.4,\",\"meanWaveDirectionPart4Of6\":\"36.6,\",\"meanWaveDirectionPart5Of6\":\"190,\",\"meanWaveDirectionPart6Of6\":\"130.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"29.2,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"13.4,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"13.3,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"12.13,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"0,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"12.11,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.2,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"6.3,\",\"peakPeriodPart5Of6\":\"4.75,\",\"peakPeriodPart6Of6\":\"4.1,\",\"significantWaveHeightPart1Of6\":\"1.65,\",\"significantWaveHeightPart2Of6\":\"0.58,\",\"significantWaveHeightPart3Of6\":\"0.59,\",\"significantWaveHeightPart4Of6\":\"0.34,\",\"significantWaveHeightPart5Of6\":\"0.08,\",\"significantWaveHeightPart6Of6\":0.15},\"2024-05-15T18:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"107.2,\",\"meanWaveDirectionPart2Of6\":\"63.55,\",\"meanWaveDirectionPart3Of6\":\"40.65,\",\"meanWaveDirectionPart4Of6\":\"35.9,\",\"meanWaveDirectionPart5Of6\":\"108.1,\",\"meanWaveDirectionPart6Of6\":\"77.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"35.1,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"15.16,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"13.56,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"12.4,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"12.1,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"13.9,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.5,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"6.3,\",\"peakPeriodPart5Of6\":\"5.2,\",\"peakPeriodPart6Of6\":\"5.9,\",\"significantWaveHeightPart1Of6\":\"1.79,\",\"significantWaveHeightPart2Of6\":\"0.83,\",\"significantWaveHeightPart3Of6\":\"0.6,\",\"significantWaveHeightPart4Of6\":\"0.33,\",\"significantWaveHeightPart5Of6\":\"0.78,\",\"significantWaveHeightPart6Of6\":1.55}}}]}');\n\n$request->setRequestUrl('https://weather.api.dtn.com/v1/conditions/marine/wave-partitions');\n$request->setRequestMethod('GET');\n$request->setBody($body);\n\n$request->setHeaders([\n 'content-type' => 'application/json',\n 'Accept-Encoding' => 'SOME_STRING_VALUE',\n 'Accept' => 'SOME_STRING_VALUE',\n 'Authorization' => 'Bearer REPLACE_BEARER_TOKEN'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"weather.api.dtn.com\")\n\npayload = \"{\\\"url\\\":\\\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\\\",\\\"type\\\":\\\"FeatureCollection\\\",\\\"features\\\":[{\\\"type\\\":\\\"Feature\\\",\\\"geometry\\\":{\\\"type\\\":\\\"Point\\\",\\\"coordinates\\\":[3.88,55.81]},\\\"properties\\\":{\\\"2024-05-15T16:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"108.3,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"42.5,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"45.7,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"198.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"44.2,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"134.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.45,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"14.82,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"9.3,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"10.32,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.34,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.89,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.2,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.72,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.57,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.63,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.16,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.12,\\\",\\\"significantWaveHeightPart6Of6\\\":0.11},\\\"2024-05-15T17:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"115,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"41.8,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"41.4,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"36.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"190,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"130.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"29.2,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.4,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.3,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.13,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"0,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.11,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart6Of6\\\":\\\"4.1,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.65,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.58,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.59,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.34,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.08,\\\",\\\"significantWaveHeightPart6Of6\\\":0.15},\\\"2024-05-15T18:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"107.2,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"63.55,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"40.65,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"35.9,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"108.1,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"77.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35.1,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"15.16,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.56,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.4,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"12.1,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"13.9,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.5,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.9,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.79,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.83,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.6,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.33,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.78,\\\",\\\"significantWaveHeightPart6Of6\\\":1.55}}}]}\"\n\nheaders = {\n 'content-type': \"application/json\",\n 'Accept-Encoding': \"SOME_STRING_VALUE\",\n 'Accept': \"SOME_STRING_VALUE\",\n 'Authorization': \"Bearer REPLACE_BEARER_TOKEN\"\n }\n\nconn.request(\"GET\", \"/v1/conditions/marine/wave-partitions\", payload, headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\"\n\npayload = {\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\",\n \"type\": \"FeatureCollection\",\n \"features\": [\n {\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"Point\",\n \"coordinates\": [3.88, 55.81]\n },\n \"properties\": {\n \"2024-05-15T16:00:00Z\": {\n \"meanWaveDirectionPart1Of6\": \"108.3,\",\n \"meanWaveDirectionPart2Of6\": \"42.5,\",\n \"meanWaveDirectionPart3Of6\": \"45.7,\",\n \"meanWaveDirectionPart4Of6\": \"198.6,\",\n \"meanWaveDirectionPart5Of6\": \"44.2,\",\n \"meanWaveDirectionPart6Of6\": \"134.1,\",\n \"meanWaveDirectionalSpreadingPart1Of6\": \"35,\",\n \"meanWaveDirectionalSpreadingPart2Of6\": \"13.45,\",\n \"meanWaveDirectionalSpreadingPart3Of6\": \"14.82,\",\n \"meanWaveDirectionalSpreadingPart4Of6\": \"9.3,\",\n \"meanWaveDirectionalSpreadingPart5Of6\": \"10.32,\",\n \"meanWaveDirectionalSpreadingPart6Of6\": \"12.34,\",\n \"peakPeriodPart1Of6\": \"6.3,\",\n \"peakPeriodPart2Of6\": \"5.2,\",\n \"peakPeriodPart3Of6\": \"5.2,\",\n \"peakPeriodPart4Of6\": \"4.75,\",\n \"peakPeriodPart5Of6\": \"4.89,\",\n \"peakPeriodPart6Of6\": \"5.2,\",\n \"significantWaveHeightPart1Of6\": \"1.72,\",\n \"significantWaveHeightPart2Of6\": \"0.57,\",\n \"significantWaveHeightPart3Of6\": \"0.63,\",\n \"significantWaveHeightPart4Of6\": \"0.16,\",\n \"significantWaveHeightPart5Of6\": \"0.12,\",\n \"significantWaveHeightPart6Of6\": 0.11\n },\n \"2024-05-15T17:00:00Z\": {\n \"meanWaveDirectionPart1Of6\": \"115,\",\n \"meanWaveDirectionPart2Of6\": \"41.8,\",\n \"meanWaveDirectionPart3Of6\": \"41.4,\",\n \"meanWaveDirectionPart4Of6\": \"36.6,\",\n \"meanWaveDirectionPart5Of6\": \"190,\",\n \"meanWaveDirectionPart6Of6\": \"130.1,\",\n \"meanWaveDirectionalSpreadingPart1Of6\": \"29.2,\",\n \"meanWaveDirectionalSpreadingPart2Of6\": \"13.4,\",\n \"meanWaveDirectionalSpreadingPart3Of6\": \"13.3,\",\n \"meanWaveDirectionalSpreadingPart4Of6\": \"12.13,\",\n \"meanWaveDirectionalSpreadingPart5Of6\": \"0,\",\n \"meanWaveDirectionalSpreadingPart6Of6\": \"12.11,\",\n \"peakPeriodPart1Of6\": \"6.3,\",\n \"peakPeriodPart2Of6\": \"5.2,\",\n \"peakPeriodPart3Of6\": \"5.2,\",\n \"peakPeriodPart4Of6\": \"6.3,\",\n \"peakPeriodPart5Of6\": \"4.75,\",\n \"peakPeriodPart6Of6\": \"4.1,\",\n \"significantWaveHeightPart1Of6\": \"1.65,\",\n \"significantWaveHeightPart2Of6\": \"0.58,\",\n \"significantWaveHeightPart3Of6\": \"0.59,\",\n \"significantWaveHeightPart4Of6\": \"0.34,\",\n \"significantWaveHeightPart5Of6\": \"0.08,\",\n \"significantWaveHeightPart6Of6\": 0.15\n },\n \"2024-05-15T18:00:00Z\": {\n \"meanWaveDirectionPart1Of6\": \"107.2,\",\n \"meanWaveDirectionPart2Of6\": \"63.55,\",\n \"meanWaveDirectionPart3Of6\": \"40.65,\",\n \"meanWaveDirectionPart4Of6\": \"35.9,\",\n \"meanWaveDirectionPart5Of6\": \"108.1,\",\n \"meanWaveDirectionPart6Of6\": \"77.1,\",\n \"meanWaveDirectionalSpreadingPart1Of6\": \"35.1,\",\n \"meanWaveDirectionalSpreadingPart2Of6\": \"15.16,\",\n \"meanWaveDirectionalSpreadingPart3Of6\": \"13.56,\",\n \"meanWaveDirectionalSpreadingPart4Of6\": \"12.4,\",\n \"meanWaveDirectionalSpreadingPart5Of6\": \"12.1,\",\n \"meanWaveDirectionalSpreadingPart6Of6\": \"13.9,\",\n \"peakPeriodPart1Of6\": \"6.3,\",\n \"peakPeriodPart2Of6\": \"5.5,\",\n \"peakPeriodPart3Of6\": \"5.2,\",\n \"peakPeriodPart4Of6\": \"6.3,\",\n \"peakPeriodPart5Of6\": \"5.2,\",\n \"peakPeriodPart6Of6\": \"5.9,\",\n \"significantWaveHeightPart1Of6\": \"1.79,\",\n \"significantWaveHeightPart2Of6\": \"0.83,\",\n \"significantWaveHeightPart3Of6\": \"0.6,\",\n \"significantWaveHeightPart4Of6\": \"0.33,\",\n \"significantWaveHeightPart5Of6\": \"0.78,\",\n \"significantWaveHeightPart6Of6\": 1.55\n }\n }\n }\n ]\n}\nheaders = {\n \"content-type\": \"application/json\",\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n}\n\nresponse = requests.request(\"GET\", url, json=payload, headers=headers)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"content-type\"] = 'application/json'\nrequest[\"Accept-Encoding\"] = 'SOME_STRING_VALUE'\nrequest[\"Accept\"] = 'SOME_STRING_VALUE'\nrequest[\"Authorization\"] = 'Bearer REPLACE_BEARER_TOKEN'\nrequest.body = \"{\\\"url\\\":\\\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\\\",\\\"type\\\":\\\"FeatureCollection\\\",\\\"features\\\":[{\\\"type\\\":\\\"Feature\\\",\\\"geometry\\\":{\\\"type\\\":\\\"Point\\\",\\\"coordinates\\\":[3.88,55.81]},\\\"properties\\\":{\\\"2024-05-15T16:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"108.3,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"42.5,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"45.7,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"198.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"44.2,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"134.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.45,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"14.82,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"9.3,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"10.32,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.34,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.89,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.2,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.72,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.57,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.63,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.16,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.12,\\\",\\\"significantWaveHeightPart6Of6\\\":0.11},\\\"2024-05-15T17:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"115,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"41.8,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"41.4,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"36.6,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"190,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"130.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"29.2,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"13.4,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.3,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.13,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"0,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"12.11,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"4.75,\\\",\\\"peakPeriodPart6Of6\\\":\\\"4.1,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.65,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.58,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.59,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.34,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.08,\\\",\\\"significantWaveHeightPart6Of6\\\":0.15},\\\"2024-05-15T18:00:00Z\\\":{\\\"meanWaveDirectionPart1Of6\\\":\\\"107.2,\\\",\\\"meanWaveDirectionPart2Of6\\\":\\\"63.55,\\\",\\\"meanWaveDirectionPart3Of6\\\":\\\"40.65,\\\",\\\"meanWaveDirectionPart4Of6\\\":\\\"35.9,\\\",\\\"meanWaveDirectionPart5Of6\\\":\\\"108.1,\\\",\\\"meanWaveDirectionPart6Of6\\\":\\\"77.1,\\\",\\\"meanWaveDirectionalSpreadingPart1Of6\\\":\\\"35.1,\\\",\\\"meanWaveDirectionalSpreadingPart2Of6\\\":\\\"15.16,\\\",\\\"meanWaveDirectionalSpreadingPart3Of6\\\":\\\"13.56,\\\",\\\"meanWaveDirectionalSpreadingPart4Of6\\\":\\\"12.4,\\\",\\\"meanWaveDirectionalSpreadingPart5Of6\\\":\\\"12.1,\\\",\\\"meanWaveDirectionalSpreadingPart6Of6\\\":\\\"13.9,\\\",\\\"peakPeriodPart1Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart2Of6\\\":\\\"5.5,\\\",\\\"peakPeriodPart3Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart4Of6\\\":\\\"6.3,\\\",\\\"peakPeriodPart5Of6\\\":\\\"5.2,\\\",\\\"peakPeriodPart6Of6\\\":\\\"5.9,\\\",\\\"significantWaveHeightPart1Of6\\\":\\\"1.79,\\\",\\\"significantWaveHeightPart2Of6\\\":\\\"0.83,\\\",\\\"significantWaveHeightPart3Of6\\\":\\\"0.6,\\\",\\\"significantWaveHeightPart4Of6\\\":\\\"0.33,\\\",\\\"significantWaveHeightPart5Of6\\\":\\\"0.78,\\\",\\\"significantWaveHeightPart6Of6\\\":1.55}}}]}\"\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Shell + Curl","source":"curl --request GET \\\n --url https://weather.api.dtn.com/v1/conditions/marine/wave-partitions \\\n --header 'Accept: SOME_STRING_VALUE' \\\n --header 'Accept-Encoding: SOME_STRING_VALUE' \\\n --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \\\n --header 'content-type: application/json' \\\n --data '{\"url\":\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\",\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[3.88,55.81]},\"properties\":{\"2024-05-15T16:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"108.3,\",\"meanWaveDirectionPart2Of6\":\"42.5,\",\"meanWaveDirectionPart3Of6\":\"45.7,\",\"meanWaveDirectionPart4Of6\":\"198.6,\",\"meanWaveDirectionPart5Of6\":\"44.2,\",\"meanWaveDirectionPart6Of6\":\"134.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"35,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"13.45,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"14.82,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"9.3,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"10.32,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"12.34,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.2,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"4.75,\",\"peakPeriodPart5Of6\":\"4.89,\",\"peakPeriodPart6Of6\":\"5.2,\",\"significantWaveHeightPart1Of6\":\"1.72,\",\"significantWaveHeightPart2Of6\":\"0.57,\",\"significantWaveHeightPart3Of6\":\"0.63,\",\"significantWaveHeightPart4Of6\":\"0.16,\",\"significantWaveHeightPart5Of6\":\"0.12,\",\"significantWaveHeightPart6Of6\":0.11},\"2024-05-15T17:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"115,\",\"meanWaveDirectionPart2Of6\":\"41.8,\",\"meanWaveDirectionPart3Of6\":\"41.4,\",\"meanWaveDirectionPart4Of6\":\"36.6,\",\"meanWaveDirectionPart5Of6\":\"190,\",\"meanWaveDirectionPart6Of6\":\"130.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"29.2,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"13.4,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"13.3,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"12.13,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"0,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"12.11,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.2,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"6.3,\",\"peakPeriodPart5Of6\":\"4.75,\",\"peakPeriodPart6Of6\":\"4.1,\",\"significantWaveHeightPart1Of6\":\"1.65,\",\"significantWaveHeightPart2Of6\":\"0.58,\",\"significantWaveHeightPart3Of6\":\"0.59,\",\"significantWaveHeightPart4Of6\":\"0.34,\",\"significantWaveHeightPart5Of6\":\"0.08,\",\"significantWaveHeightPart6Of6\":0.15},\"2024-05-15T18:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"107.2,\",\"meanWaveDirectionPart2Of6\":\"63.55,\",\"meanWaveDirectionPart3Of6\":\"40.65,\",\"meanWaveDirectionPart4Of6\":\"35.9,\",\"meanWaveDirectionPart5Of6\":\"108.1,\",\"meanWaveDirectionPart6Of6\":\"77.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"35.1,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"15.16,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"13.56,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"12.4,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"12.1,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"13.9,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.5,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"6.3,\",\"peakPeriodPart5Of6\":\"5.2,\",\"peakPeriodPart6Of6\":\"5.9,\",\"significantWaveHeightPart1Of6\":\"1.79,\",\"significantWaveHeightPart2Of6\":\"0.83,\",\"significantWaveHeightPart3Of6\":\"0.6,\",\"significantWaveHeightPart4Of6\":\"0.33,\",\"significantWaveHeightPart5Of6\":\"0.78,\",\"significantWaveHeightPart6Of6\":1.55}}}]}'"},{"lang":"Shell + Httpie","source":"echo '{\"url\":\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\",\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[3.88,55.81]},\"properties\":{\"2024-05-15T16:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"108.3,\",\"meanWaveDirectionPart2Of6\":\"42.5,\",\"meanWaveDirectionPart3Of6\":\"45.7,\",\"meanWaveDirectionPart4Of6\":\"198.6,\",\"meanWaveDirectionPart5Of6\":\"44.2,\",\"meanWaveDirectionPart6Of6\":\"134.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"35,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"13.45,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"14.82,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"9.3,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"10.32,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"12.34,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.2,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"4.75,\",\"peakPeriodPart5Of6\":\"4.89,\",\"peakPeriodPart6Of6\":\"5.2,\",\"significantWaveHeightPart1Of6\":\"1.72,\",\"significantWaveHeightPart2Of6\":\"0.57,\",\"significantWaveHeightPart3Of6\":\"0.63,\",\"significantWaveHeightPart4Of6\":\"0.16,\",\"significantWaveHeightPart5Of6\":\"0.12,\",\"significantWaveHeightPart6Of6\":0.11},\"2024-05-15T17:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"115,\",\"meanWaveDirectionPart2Of6\":\"41.8,\",\"meanWaveDirectionPart3Of6\":\"41.4,\",\"meanWaveDirectionPart4Of6\":\"36.6,\",\"meanWaveDirectionPart5Of6\":\"190,\",\"meanWaveDirectionPart6Of6\":\"130.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"29.2,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"13.4,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"13.3,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"12.13,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"0,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"12.11,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.2,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"6.3,\",\"peakPeriodPart5Of6\":\"4.75,\",\"peakPeriodPart6Of6\":\"4.1,\",\"significantWaveHeightPart1Of6\":\"1.65,\",\"significantWaveHeightPart2Of6\":\"0.58,\",\"significantWaveHeightPart3Of6\":\"0.59,\",\"significantWaveHeightPart4Of6\":\"0.34,\",\"significantWaveHeightPart5Of6\":\"0.08,\",\"significantWaveHeightPart6Of6\":0.15},\"2024-05-15T18:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"107.2,\",\"meanWaveDirectionPart2Of6\":\"63.55,\",\"meanWaveDirectionPart3Of6\":\"40.65,\",\"meanWaveDirectionPart4Of6\":\"35.9,\",\"meanWaveDirectionPart5Of6\":\"108.1,\",\"meanWaveDirectionPart6Of6\":\"77.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"35.1,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"15.16,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"13.56,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"12.4,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"12.1,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"13.9,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.5,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"6.3,\",\"peakPeriodPart5Of6\":\"5.2,\",\"peakPeriodPart6Of6\":\"5.9,\",\"significantWaveHeightPart1Of6\":\"1.79,\",\"significantWaveHeightPart2Of6\":\"0.83,\",\"significantWaveHeightPart3Of6\":\"0.6,\",\"significantWaveHeightPart4Of6\":\"0.33,\",\"significantWaveHeightPart5Of6\":\"0.78,\",\"significantWaveHeightPart6Of6\":1.55}}}]}' | \\\n http GET https://weather.api.dtn.com/v1/conditions/marine/wave-partitions \\\n Accept:SOME_STRING_VALUE \\\n Accept-Encoding:SOME_STRING_VALUE \\\n Authorization:'Bearer REPLACE_BEARER_TOKEN' \\\n content-type:application/json"},{"lang":"Shell + Wget","source":"wget --quiet \\\n --method GET \\\n --header 'content-type: application/json' \\\n --header 'Accept-Encoding: SOME_STRING_VALUE' \\\n --header 'Accept: SOME_STRING_VALUE' \\\n --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \\\n --body-data '{\"url\":\"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\",\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"geometry\":{\"type\":\"Point\",\"coordinates\":[3.88,55.81]},\"properties\":{\"2024-05-15T16:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"108.3,\",\"meanWaveDirectionPart2Of6\":\"42.5,\",\"meanWaveDirectionPart3Of6\":\"45.7,\",\"meanWaveDirectionPart4Of6\":\"198.6,\",\"meanWaveDirectionPart5Of6\":\"44.2,\",\"meanWaveDirectionPart6Of6\":\"134.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"35,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"13.45,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"14.82,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"9.3,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"10.32,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"12.34,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.2,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"4.75,\",\"peakPeriodPart5Of6\":\"4.89,\",\"peakPeriodPart6Of6\":\"5.2,\",\"significantWaveHeightPart1Of6\":\"1.72,\",\"significantWaveHeightPart2Of6\":\"0.57,\",\"significantWaveHeightPart3Of6\":\"0.63,\",\"significantWaveHeightPart4Of6\":\"0.16,\",\"significantWaveHeightPart5Of6\":\"0.12,\",\"significantWaveHeightPart6Of6\":0.11},\"2024-05-15T17:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"115,\",\"meanWaveDirectionPart2Of6\":\"41.8,\",\"meanWaveDirectionPart3Of6\":\"41.4,\",\"meanWaveDirectionPart4Of6\":\"36.6,\",\"meanWaveDirectionPart5Of6\":\"190,\",\"meanWaveDirectionPart6Of6\":\"130.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"29.2,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"13.4,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"13.3,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"12.13,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"0,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"12.11,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.2,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"6.3,\",\"peakPeriodPart5Of6\":\"4.75,\",\"peakPeriodPart6Of6\":\"4.1,\",\"significantWaveHeightPart1Of6\":\"1.65,\",\"significantWaveHeightPart2Of6\":\"0.58,\",\"significantWaveHeightPart3Of6\":\"0.59,\",\"significantWaveHeightPart4Of6\":\"0.34,\",\"significantWaveHeightPart5Of6\":\"0.08,\",\"significantWaveHeightPart6Of6\":0.15},\"2024-05-15T18:00:00Z\":{\"meanWaveDirectionPart1Of6\":\"107.2,\",\"meanWaveDirectionPart2Of6\":\"63.55,\",\"meanWaveDirectionPart3Of6\":\"40.65,\",\"meanWaveDirectionPart4Of6\":\"35.9,\",\"meanWaveDirectionPart5Of6\":\"108.1,\",\"meanWaveDirectionPart6Of6\":\"77.1,\",\"meanWaveDirectionalSpreadingPart1Of6\":\"35.1,\",\"meanWaveDirectionalSpreadingPart2Of6\":\"15.16,\",\"meanWaveDirectionalSpreadingPart3Of6\":\"13.56,\",\"meanWaveDirectionalSpreadingPart4Of6\":\"12.4,\",\"meanWaveDirectionalSpreadingPart5Of6\":\"12.1,\",\"meanWaveDirectionalSpreadingPart6Of6\":\"13.9,\",\"peakPeriodPart1Of6\":\"6.3,\",\"peakPeriodPart2Of6\":\"5.5,\",\"peakPeriodPart3Of6\":\"5.2,\",\"peakPeriodPart4Of6\":\"6.3,\",\"peakPeriodPart5Of6\":\"5.2,\",\"peakPeriodPart6Of6\":\"5.9,\",\"significantWaveHeightPart1Of6\":\"1.79,\",\"significantWaveHeightPart2Of6\":\"0.83,\",\"significantWaveHeightPart3Of6\":\"0.6,\",\"significantWaveHeightPart4Of6\":\"0.33,\",\"significantWaveHeightPart5Of6\":\"0.78,\",\"significantWaveHeightPart6Of6\":1.55}}}]}' \\\n --output-document \\\n - https://weather.api.dtn.com/v1/conditions/marine/wave-partitions"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\n \"content-type\": \"application/json\",\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n]\nlet parameters = [\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z\",\n \"type\": \"FeatureCollection\",\n \"features\": [\n [\n \"type\": \"Feature\",\n \"geometry\": [\n \"type\": \"Point\",\n \"coordinates\": [3.88, 55.81]\n ],\n \"properties\": [\n \"2024-05-15T16:00:00Z\": [\n \"meanWaveDirectionPart1Of6\": \"108.3,\",\n \"meanWaveDirectionPart2Of6\": \"42.5,\",\n \"meanWaveDirectionPart3Of6\": \"45.7,\",\n \"meanWaveDirectionPart4Of6\": \"198.6,\",\n \"meanWaveDirectionPart5Of6\": \"44.2,\",\n \"meanWaveDirectionPart6Of6\": \"134.1,\",\n \"meanWaveDirectionalSpreadingPart1Of6\": \"35,\",\n \"meanWaveDirectionalSpreadingPart2Of6\": \"13.45,\",\n \"meanWaveDirectionalSpreadingPart3Of6\": \"14.82,\",\n \"meanWaveDirectionalSpreadingPart4Of6\": \"9.3,\",\n \"meanWaveDirectionalSpreadingPart5Of6\": \"10.32,\",\n \"meanWaveDirectionalSpreadingPart6Of6\": \"12.34,\",\n \"peakPeriodPart1Of6\": \"6.3,\",\n \"peakPeriodPart2Of6\": \"5.2,\",\n \"peakPeriodPart3Of6\": \"5.2,\",\n \"peakPeriodPart4Of6\": \"4.75,\",\n \"peakPeriodPart5Of6\": \"4.89,\",\n \"peakPeriodPart6Of6\": \"5.2,\",\n \"significantWaveHeightPart1Of6\": \"1.72,\",\n \"significantWaveHeightPart2Of6\": \"0.57,\",\n \"significantWaveHeightPart3Of6\": \"0.63,\",\n \"significantWaveHeightPart4Of6\": \"0.16,\",\n \"significantWaveHeightPart5Of6\": \"0.12,\",\n \"significantWaveHeightPart6Of6\": 0.11\n ],\n \"2024-05-15T17:00:00Z\": [\n \"meanWaveDirectionPart1Of6\": \"115,\",\n \"meanWaveDirectionPart2Of6\": \"41.8,\",\n \"meanWaveDirectionPart3Of6\": \"41.4,\",\n \"meanWaveDirectionPart4Of6\": \"36.6,\",\n \"meanWaveDirectionPart5Of6\": \"190,\",\n \"meanWaveDirectionPart6Of6\": \"130.1,\",\n \"meanWaveDirectionalSpreadingPart1Of6\": \"29.2,\",\n \"meanWaveDirectionalSpreadingPart2Of6\": \"13.4,\",\n \"meanWaveDirectionalSpreadingPart3Of6\": \"13.3,\",\n \"meanWaveDirectionalSpreadingPart4Of6\": \"12.13,\",\n \"meanWaveDirectionalSpreadingPart5Of6\": \"0,\",\n \"meanWaveDirectionalSpreadingPart6Of6\": \"12.11,\",\n \"peakPeriodPart1Of6\": \"6.3,\",\n \"peakPeriodPart2Of6\": \"5.2,\",\n \"peakPeriodPart3Of6\": \"5.2,\",\n \"peakPeriodPart4Of6\": \"6.3,\",\n \"peakPeriodPart5Of6\": \"4.75,\",\n \"peakPeriodPart6Of6\": \"4.1,\",\n \"significantWaveHeightPart1Of6\": \"1.65,\",\n \"significantWaveHeightPart2Of6\": \"0.58,\",\n \"significantWaveHeightPart3Of6\": \"0.59,\",\n \"significantWaveHeightPart4Of6\": \"0.34,\",\n \"significantWaveHeightPart5Of6\": \"0.08,\",\n \"significantWaveHeightPart6Of6\": 0.15\n ],\n \"2024-05-15T18:00:00Z\": [\n \"meanWaveDirectionPart1Of6\": \"107.2,\",\n \"meanWaveDirectionPart2Of6\": \"63.55,\",\n \"meanWaveDirectionPart3Of6\": \"40.65,\",\n \"meanWaveDirectionPart4Of6\": \"35.9,\",\n \"meanWaveDirectionPart5Of6\": \"108.1,\",\n \"meanWaveDirectionPart6Of6\": \"77.1,\",\n \"meanWaveDirectionalSpreadingPart1Of6\": \"35.1,\",\n \"meanWaveDirectionalSpreadingPart2Of6\": \"15.16,\",\n \"meanWaveDirectionalSpreadingPart3Of6\": \"13.56,\",\n \"meanWaveDirectionalSpreadingPart4Of6\": \"12.4,\",\n \"meanWaveDirectionalSpreadingPart5Of6\": \"12.1,\",\n \"meanWaveDirectionalSpreadingPart6Of6\": \"13.9,\",\n \"peakPeriodPart1Of6\": \"6.3,\",\n \"peakPeriodPart2Of6\": \"5.5,\",\n \"peakPeriodPart3Of6\": \"5.2,\",\n \"peakPeriodPart4Of6\": \"6.3,\",\n \"peakPeriodPart5Of6\": \"5.2,\",\n \"peakPeriodPart6Of6\": \"5.9,\",\n \"significantWaveHeightPart1Of6\": \"1.79,\",\n \"significantWaveHeightPart2Of6\": \"0.83,\",\n \"significantWaveHeightPart3Of6\": \"0.6,\",\n \"significantWaveHeightPart4Of6\": \"0.33,\",\n \"significantWaveHeightPart5Of6\": \"0.78,\",\n \"significantWaveHeightPart6Of6\": 1.55\n ]\n ]\n ]\n ]\n] as [String : Any]\n\nlet postData = JSONSerialization.data(withJSONObject: parameters, options: [])\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions\")! as URL,\n cachePolicy: .useProtocolCachePolicy,\n timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\nrequest.httpBody = postData as Data\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n if (error != nil) {\n print(error)\n } else {\n let httpResponse = response as? HTTPURLResponse\n print(httpResponse)\n }\n})\n\ndataTask.resume()"}]}},"/v1/conditions/marine/parameters":{"get":{"tags":["Endpoints"],"summary":"Marine Parameters","description":"This endpoint provides helpful context in JSON format about the marine weather parameters and operations that the other endpoints support.\n\nUse query parameters to control the results in the response body:\n * Set `category` to either `hourlyForecast` or `hourlyHistorical` to filter marine parameters by that category.\n * Specify a `name` to filter marine parameters by that name (e.g., `name=airTemp`).\n * Specify a `category` and `name` to filter by both.\n * Omit all query parameters to obtain all marine parameters in the response.\n","operationId":"marineParameters","security":[{"clientCredentials":[]}],"parameters":[{"in":"header","name":"Accept-Encoding","schema":{"type":"string","description":"Use this request header to communicate which compression algorithms the client understands. The API supports gzip.","example":"gzip"}},{"in":"header","name":"Accept","schema":{"type":"string","description":"Use this request header to specify an acceptable response media type.","example":"application/json"}},{"in":"query","name":"category","schema":{"type":"string","description":"The desired category filter (optional).","example":["hourlyForecast","hourlyHistorical"]}},{"in":"query","name":"name","schema":{"type":"string","description":"The desired parameter name filter (optional).","example":["airTemp"]}}],"responses":{"200":{"description":"A successful request.","content":{"application/json":{"schema":{"type":"object","properties":{"hourlyForecast":{"oneOf":[{"type":"object","properties":{"parameter name":{"type":"object","description":"The name of the parameter.","properties":{"metricUnit":{"type":"string","description":"The metric unit used for this parameter."},"imperialUnit":{"type":"string","description":"The imperial unit used for this parameter."},"description":{"type":"string","description":"A description of what this parameter means."},"notes":{"type":"string","description":"Additional information related to this parameter."}}}},"example":{"airTemp":{"metricUnit":"Celsius","imperialUnit":"","type":"number","description":"Air temperature at 2m","notes":"As of now we only support metricUnit"}}}]},"hourlyHistorical":{"oneOf":[{"type":"object","properties":{"parameter name":{"type":"object","description":"The name of the parameter.","properties":{"metricUnit":{"type":"string","description":"The metric unit used for this parameter."},"imperialUnit":{"type":"string","description":"The imperial unit used for this parameter."},"description":{"type":"string","description":"A description of what this parameter means."},"notes":{"type":"string","description":"Additional information related to this parameter."}}}},"example":{"airTemp":{"metricUnit":"Celsius","imperialUnit":"","type":"number","description":"Air temperature at 2m","notes":"As of now we only support metricUnit"}}}]}}}}}},"400":{"description":"An invalid request.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"bad-request","title":"Invalid Request","detail":"Validation failed.","status":400,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}},"401":{"description":"Unable to authenticate credentials.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"unauthorized","title":"Error while authenticating the user.","detail":"invalid token","status":401,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}},"406":{"description":"Unable to produce a response matching the Accept request header.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"not-acceptable","title":"Not Acceptable","detail":"The Accept header value is invalid or unsupported.","status":406,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}}},"x-codeSamples":[{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"Accept-Encoding: SOME_STRING_VALUE\");\nheaders = curl_slist_append(headers, \"Accept: SOME_STRING_VALUE\");\nheaders = curl_slist_append(headers, \"Authorization: Bearer REPLACE_BEARER_TOKEN\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"Accept\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\nIRestResponse response = client.Execute(request);"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"Accept\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Okhttp","source":"OkHttpClient client = new OkHttpClient();\n\nRequest request = new Request.Builder()\n .url(\"https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\")\n .get()\n .addHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n .addHeader(\"Accept\", \"SOME_STRING_VALUE\")\n .addHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"},{"lang":"Java + Unirest","source":"HttpResponse response = Unirest.get(\"https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\")\n .header(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n .header(\"Accept\", \"SOME_STRING_VALUE\")\n .header(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n .asString();"},{"lang":"Javascript + Jquery","source":"const settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\",\n \"method\": \"GET\",\n \"headers\": {\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n }\n};\n\n$.ajax(settings).done(function (response) {\n console.log(response);\n});"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n if (this.readyState === this.DONE) {\n console.log(this.responseText);\n }\n});\n\nxhr.open(\"GET\", \"https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\");\nxhr.setRequestHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"Accept\", \"SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\n\nxhr.send(data);"},{"lang":"Javascript + Jquery","source":"const settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\",\n \"method\": \"GET\",\n \"headers\": {\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n }\n};\n\n$.ajax(settings).done(function (response) {\n console.log(response);\n});"},{"lang":"Node + Native","source":"const http = require(\"https\");\n\nconst options = {\n \"method\": \"GET\",\n \"hostname\": \"weather.api.dtn.com\",\n \"port\": null,\n \"path\": \"/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\",\n \"headers\": {\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n }\n};\n\nconst req = http.request(options, function (res) {\n const chunks = [];\n\n res.on(\"data\", function (chunk) {\n chunks.push(chunk);\n });\n\n res.on(\"end\", function () {\n const body = Buffer.concat(chunks);\n console.log(body.toString());\n });\n});\n\nreq.end();"},{"lang":"Node + Request","source":"const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://weather.api.dtn.com/v1/conditions/marine/parameters',\n qs: {category: 'hourlyForecast,hourlyHistorical', name: 'airTemp'},\n headers: {\n 'Accept-Encoding': 'SOME_STRING_VALUE',\n Accept: 'SOME_STRING_VALUE',\n Authorization: 'Bearer REPLACE_BEARER_TOKEN'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://weather.api.dtn.com/v1/conditions/marine/parameters\");\n\nreq.query({\n \"category\": \"hourlyForecast,hourlyHistorical\",\n \"name\": \"airTemp\"\n});\n\nreq.headers({\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n});\n\nreq.end(function (res) {\n if (res.error) throw new Error(res.error);\n\n console.log(res.body);\n});\n"},{"lang":"Objc + Nsurlsession","source":"#import \n\nNSDictionary *headers = @{ @\"Accept-Encoding\": @\"SOME_STRING_VALUE\",\n @\"Accept\": @\"SOME_STRING_VALUE\",\n @\"Authorization\": @\"Bearer REPLACE_BEARER_TOKEN\" };\n\nNSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@\"https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\"]\n cachePolicy:NSURLRequestUseProtocolCachePolicy\n timeoutInterval:10.0];\n[request setHTTPMethod:@\"GET\"];\n[request setAllHTTPHeaderFields:headers];\n\nNSURLSession *session = [NSURLSession sharedSession];\nNSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request\n completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {\n if (error) {\n NSLog(@\"%@\", error);\n } else {\n NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;\n NSLog(@\"%@\", httpResponse);\n }\n }];\n[dataTask resume];"},{"lang":"Ocaml + Cohttp","source":"open Cohttp_lwt_unix\nopen Cohttp\nopen Lwt\n\nlet uri = Uri.of_string \"https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\" in\nlet headers = Header.add_list (Header.init ()) [\n (\"Accept-Encoding\", \"SOME_STRING_VALUE\");\n (\"Accept\", \"SOME_STRING_VALUE\");\n (\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\n] in\n\nClient.call ~headers `GET uri\n>>= fun (res, body_stream) ->\n (* Do stuff with the result *)"},{"lang":"Php + Curl","source":" \"https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"GET\",\n CURLOPT_HTTPHEADER => [\n \"Accept: SOME_STRING_VALUE\",\n \"Accept-Encoding: SOME_STRING_VALUE\",\n \"Authorization: Bearer REPLACE_BEARER_TOKEN\"\n ],\n]);\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}"},{"lang":"Php + Http1","source":"setUrl('https://weather.api.dtn.com/v1/conditions/marine/parameters');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'category' => 'hourlyForecast,hourlyHistorical',\n 'name' => 'airTemp'\n]);\n\n$request->setHeaders([\n 'Accept-Encoding' => 'SOME_STRING_VALUE',\n 'Accept' => 'SOME_STRING_VALUE',\n 'Authorization' => 'Bearer REPLACE_BEARER_TOKEN'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}"},{"lang":"Php + Http2","source":"setRequestUrl('https://weather.api.dtn.com/v1/conditions/marine/parameters');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n 'category' => 'hourlyForecast,hourlyHistorical',\n 'name' => 'airTemp'\n]));\n\n$request->setHeaders([\n 'Accept-Encoding' => 'SOME_STRING_VALUE',\n 'Accept' => 'SOME_STRING_VALUE',\n 'Authorization' => 'Bearer REPLACE_BEARER_TOKEN'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"weather.api.dtn.com\")\n\nheaders = {\n 'Accept-Encoding': \"SOME_STRING_VALUE\",\n 'Accept': \"SOME_STRING_VALUE\",\n 'Authorization': \"Bearer REPLACE_BEARER_TOKEN\"\n }\n\nconn.request(\"GET\", \"/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://weather.api.dtn.com/v1/conditions/marine/parameters\"\n\nquerystring = {\"category\":\"hourlyForecast,hourlyHistorical\",\"name\":\"airTemp\"}\n\nheaders = {\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Accept-Encoding\"] = 'SOME_STRING_VALUE'\nrequest[\"Accept\"] = 'SOME_STRING_VALUE'\nrequest[\"Authorization\"] = 'Bearer REPLACE_BEARER_TOKEN'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Shell + Curl","source":"curl --request GET \\\n --url 'https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp' \\\n --header 'Accept: SOME_STRING_VALUE' \\\n --header 'Accept-Encoding: SOME_STRING_VALUE' \\\n --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'"},{"lang":"Shell + Httpie","source":"http GET 'https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp' \\\n Accept:SOME_STRING_VALUE \\\n Accept-Encoding:SOME_STRING_VALUE \\\n Authorization:'Bearer REPLACE_BEARER_TOKEN'"},{"lang":"Shell + Wget","source":"wget --quiet \\\n --method GET \\\n --header 'Accept-Encoding: SOME_STRING_VALUE' \\\n --header 'Accept: SOME_STRING_VALUE' \\\n --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \\\n --output-document \\\n - 'https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp'"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://weather.api.dtn.com/v1/conditions/marine/parameters?category=hourlyForecast%2ChourlyHistorical&name=airTemp\")! as URL,\n cachePolicy: .useProtocolCachePolicy,\n timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n if (error != nil) {\n print(error)\n } else {\n let httpResponse = response as? HTTPURLResponse\n print(httpResponse)\n }\n})\n\ndataTask.resume()"}]}},"/v1/conditions/marine/spectra":{"get":{"tags":["Endpoints"],"summary":"Marine Spectra","description":"This endpoint provides the hourly forecast 2D spectra wave data for a specified location and time range. Spectra 2D wave data represents the distribution of wave energy across various frequencies and directions at specific timestamps. This detailed information is crucial for understanding complex sea states and optimizing operations in offshore and shipping projects.\n\nFor example, it can be used to enhance the stability and safety of offshore platforms or to optimize routing for shipping vessels to avoid severe sea conditions. The response is a CSV file, containing spectral wave data with associated energy values for each frequency and direction.\n\nUse query parameters to control the results in the response body:\n\n * Specify a location as latitude (`lat`) and longitude (`lon`).\n\n * Two important parameters are `startTime` and `endTime`:\n + The API returns forecast data when `startTime` and `endTime` are in the future.\n + The API does not support `startTime` and `endTime` are in the past.\n + The API returns only one exact timestamp when only `startTime` is specified.\n\n * Complete example: `https://weather.api.dtn.com/v1/conditions/marine/spectra?lat={lat}&lon={lon}&startTime={start_time}&endTime={end_time}`\n\n## Response Format\nThe response is a custom CSV describing the distribution of wave energy at different frequencies coming from multiple directions.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n

-34.9

-8.4

2024-06-28T19:00:00+00:00

2024-06-29T23:00:00+00:00

35

36

f

0.0

10.0

20.0

30.0

40.0

0.0345

0.0

0.0

0.0

0.0

0.0

0.038

0.0

0.0

0.0

0.0

0.0

0.0417

0.0

0.0

0.0

0.0

0.0

0.0459

0.0

0.0

0.0

0.0

0.0

0.0505

0.0

0.0

0.0

0.0

0.0

0.0556

0.0

0.0

0.0

0.0

0.0

0.0611

0.0002

0.0

0.0

0.0

0.0

0.0672

0.0006

0.0

0.0

0.0

0.0

0.074

0.0014

0.0001

0.0

0.0

0.0
\n\n\nThe top row (yellow) provides metadata in this order: latitude, longitude, forecast run time, forecast valid time, number of frequencies, number of directions.\n\nThe second row, starting from the second column (highlighted in blue), shows the direction from which ocean waves originate. Directions are grouped into 10° bins, progressing from 0° (inclusive) to 360° (exclusive). Each bin is centered on its label — for example, 0° represents directions from -5° to +5°.\n\nThe first column starting from the third row (red) represents the different frequencies of the wave motions composing the disturbed sea surface.\n\nThe example (green) below can be read as _\"The energy of the decomposed waves with 0.074 Hz coming from [-5°, +5] is 0.0014 m2s rad-1\"_\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n

-34.9

-8.4

2024-06-28T19:00:00+00:00

2024-06-29T23:00:00+00:00

35

36

f

0.0

10.0

20.0

30.0

40.0

...

...

...

...

...

...

0.074

0.0014

0.0001

0.0

0.0

0.0
\n\nThe time series is represented as multiple blocks of this format separated by a new line.\n","operationId":"marineSpectra","security":[{"clientCredentials":[]}],"parameters":[{"in":"header","name":"Accept-Encoding","schema":{"type":"string","description":"Use this request header to communicate which compression algorithms the client understands. The API supports gzip.","example":"gzip"}},{"in":"header","name":"Accept","schema":{"type":"string","description":"Use this request header to specify an acceptable response media type.","example":"text/csv"}},{"name":"lat","in":"query","schema":{"type":"number","format":"float"},"example":55.81,"required":true},{"name":"lon","in":"query","schema":{"type":"number","format":"float"},"example":3.88,"required":true},{"name":"startTime","in":"query","schema":{"type":"string","format":"date-time"},"example":"2023-06-30T10:00:00Z","required":true},{"name":"endTime","in":"query","schema":{"type":"string","format":"date-time"},"example":"2023-07-07T10:00:00Z"}],"responses":{"200":{"description":"A successful request.","content":{"text/csv":{}}},"400":{"description":"An invalid request.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"bad-request","title":"Invalid Request","detail":"Validation failed.","status":400,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}},"401":{"description":"Unable to authenticate credentials.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"unauthorized","title":"Error while authenticating the user.","detail":"invalid token","status":401,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}},"406":{"description":"Unable to produce a response matching the Accept request header.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"not-acceptable","title":"Not Acceptable","detail":"The Accept header value is invalid or unsupported.","status":406,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}}},"x-codeSamples":[{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"Accept-Encoding: SOME_STRING_VALUE\");\nheaders = curl_slist_append(headers, \"Accept: SOME_STRING_VALUE\");\nheaders = curl_slist_append(headers, \"Authorization: Bearer REPLACE_BEARER_TOKEN\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"Accept\", \"SOME_STRING_VALUE\");\nrequest.AddHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\nIRestResponse response = client.Execute(request);"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"Accept\", \"SOME_STRING_VALUE\")\n\treq.Header.Add(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Okhttp","source":"OkHttpClient client = new OkHttpClient();\n\nRequest request = new Request.Builder()\n .url(\"https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\")\n .get()\n .addHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n .addHeader(\"Accept\", \"SOME_STRING_VALUE\")\n .addHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"},{"lang":"Java + Unirest","source":"HttpResponse response = Unirest.get(\"https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\")\n .header(\"Accept-Encoding\", \"SOME_STRING_VALUE\")\n .header(\"Accept\", \"SOME_STRING_VALUE\")\n .header(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n .asString();"},{"lang":"Javascript + Jquery","source":"const settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\",\n \"method\": \"GET\",\n \"headers\": {\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n }\n};\n\n$.ajax(settings).done(function (response) {\n console.log(response);\n});"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n if (this.readyState === this.DONE) {\n console.log(this.responseText);\n }\n});\n\nxhr.open(\"GET\", \"https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"Accept-Encoding\", \"SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"Accept\", \"SOME_STRING_VALUE\");\nxhr.setRequestHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\n\nxhr.send(data);"},{"lang":"Javascript + Jquery","source":"const settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\",\n \"method\": \"GET\",\n \"headers\": {\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n }\n};\n\n$.ajax(settings).done(function (response) {\n console.log(response);\n});"},{"lang":"Node + Native","source":"const http = require(\"https\");\n\nconst options = {\n \"method\": \"GET\",\n \"hostname\": \"weather.api.dtn.com\",\n \"port\": null,\n \"path\": \"/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\",\n \"headers\": {\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n }\n};\n\nconst req = http.request(options, function (res) {\n const chunks = [];\n\n res.on(\"data\", function (chunk) {\n chunks.push(chunk);\n });\n\n res.on(\"end\", function () {\n const body = Buffer.concat(chunks);\n console.log(body.toString());\n });\n});\n\nreq.end();"},{"lang":"Node + Request","source":"const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://weather.api.dtn.com/v1/conditions/marine/spectra',\n qs: {\n lat: 'SOME_NUMBER_VALUE',\n lon: 'SOME_NUMBER_VALUE',\n startTime: 'SOME_STRING_VALUE',\n endTime: 'SOME_STRING_VALUE'\n },\n headers: {\n 'Accept-Encoding': 'SOME_STRING_VALUE',\n Accept: 'SOME_STRING_VALUE',\n Authorization: 'Bearer REPLACE_BEARER_TOKEN'\n }\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://weather.api.dtn.com/v1/conditions/marine/spectra\");\n\nreq.query({\n \"lat\": \"SOME_NUMBER_VALUE\",\n \"lon\": \"SOME_NUMBER_VALUE\",\n \"startTime\": \"SOME_STRING_VALUE\",\n \"endTime\": \"SOME_STRING_VALUE\"\n});\n\nreq.headers({\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n});\n\nreq.end(function (res) {\n if (res.error) throw new Error(res.error);\n\n console.log(res.body);\n});\n"},{"lang":"Objc + Nsurlsession","source":"#import \n\nNSDictionary *headers = @{ @\"Accept-Encoding\": @\"SOME_STRING_VALUE\",\n @\"Accept\": @\"SOME_STRING_VALUE\",\n @\"Authorization\": @\"Bearer REPLACE_BEARER_TOKEN\" };\n\nNSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@\"https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\"]\n cachePolicy:NSURLRequestUseProtocolCachePolicy\n timeoutInterval:10.0];\n[request setHTTPMethod:@\"GET\"];\n[request setAllHTTPHeaderFields:headers];\n\nNSURLSession *session = [NSURLSession sharedSession];\nNSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request\n completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {\n if (error) {\n NSLog(@\"%@\", error);\n } else {\n NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;\n NSLog(@\"%@\", httpResponse);\n }\n }];\n[dataTask resume];"},{"lang":"Ocaml + Cohttp","source":"open Cohttp_lwt_unix\nopen Cohttp\nopen Lwt\n\nlet uri = Uri.of_string \"https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\" in\nlet headers = Header.add_list (Header.init ()) [\n (\"Accept-Encoding\", \"SOME_STRING_VALUE\");\n (\"Accept\", \"SOME_STRING_VALUE\");\n (\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\n] in\n\nClient.call ~headers `GET uri\n>>= fun (res, body_stream) ->\n (* Do stuff with the result *)"},{"lang":"Php + Curl","source":" \"https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"GET\",\n CURLOPT_HTTPHEADER => [\n \"Accept: SOME_STRING_VALUE\",\n \"Accept-Encoding: SOME_STRING_VALUE\",\n \"Authorization: Bearer REPLACE_BEARER_TOKEN\"\n ],\n]);\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}"},{"lang":"Php + Http1","source":"setUrl('https://weather.api.dtn.com/v1/conditions/marine/spectra');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setQueryData([\n 'lat' => 'SOME_NUMBER_VALUE',\n 'lon' => 'SOME_NUMBER_VALUE',\n 'startTime' => 'SOME_STRING_VALUE',\n 'endTime' => 'SOME_STRING_VALUE'\n]);\n\n$request->setHeaders([\n 'Accept-Encoding' => 'SOME_STRING_VALUE',\n 'Accept' => 'SOME_STRING_VALUE',\n 'Authorization' => 'Bearer REPLACE_BEARER_TOKEN'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}"},{"lang":"Php + Http2","source":"setRequestUrl('https://weather.api.dtn.com/v1/conditions/marine/spectra');\n$request->setRequestMethod('GET');\n$request->setQuery(new http\\QueryString([\n 'lat' => 'SOME_NUMBER_VALUE',\n 'lon' => 'SOME_NUMBER_VALUE',\n 'startTime' => 'SOME_STRING_VALUE',\n 'endTime' => 'SOME_STRING_VALUE'\n]));\n\n$request->setHeaders([\n 'Accept-Encoding' => 'SOME_STRING_VALUE',\n 'Accept' => 'SOME_STRING_VALUE',\n 'Authorization' => 'Bearer REPLACE_BEARER_TOKEN'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"weather.api.dtn.com\")\n\nheaders = {\n 'Accept-Encoding': \"SOME_STRING_VALUE\",\n 'Accept': \"SOME_STRING_VALUE\",\n 'Authorization': \"Bearer REPLACE_BEARER_TOKEN\"\n }\n\nconn.request(\"GET\", \"/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://weather.api.dtn.com/v1/conditions/marine/spectra\"\n\nquerystring = {\"lat\":\"SOME_NUMBER_VALUE\",\"lon\":\"SOME_NUMBER_VALUE\",\"startTime\":\"SOME_STRING_VALUE\",\"endTime\":\"SOME_STRING_VALUE\"}\n\nheaders = {\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, params=querystring)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Accept-Encoding\"] = 'SOME_STRING_VALUE'\nrequest[\"Accept\"] = 'SOME_STRING_VALUE'\nrequest[\"Authorization\"] = 'Bearer REPLACE_BEARER_TOKEN'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Shell + Curl","source":"curl --request GET \\\n --url 'https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE' \\\n --header 'Accept: SOME_STRING_VALUE' \\\n --header 'Accept-Encoding: SOME_STRING_VALUE' \\\n --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'"},{"lang":"Shell + Httpie","source":"http GET 'https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE' \\\n Accept:SOME_STRING_VALUE \\\n Accept-Encoding:SOME_STRING_VALUE \\\n Authorization:'Bearer REPLACE_BEARER_TOKEN'"},{"lang":"Shell + Wget","source":"wget --quiet \\\n --method GET \\\n --header 'Accept-Encoding: SOME_STRING_VALUE' \\\n --header 'Accept: SOME_STRING_VALUE' \\\n --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \\\n --output-document \\\n - 'https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE'"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\n \"Accept-Encoding\": \"SOME_STRING_VALUE\",\n \"Accept\": \"SOME_STRING_VALUE\",\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://weather.api.dtn.com/v1/conditions/marine/spectra?lat=SOME_NUMBER_VALUE&lon=SOME_NUMBER_VALUE&startTime=SOME_STRING_VALUE&endTime=SOME_STRING_VALUE\")! as URL,\n cachePolicy: .useProtocolCachePolicy,\n timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n if (error != nil) {\n print(error)\n } else {\n let httpResponse = response as? HTTPURLResponse\n print(httpResponse)\n }\n})\n\ndataTask.resume()"}]}},"/v1/conditions/marine/spectra-plot":{"get":{"tags":["Endpoints"],"summary":"Marine Spectra Plot","description":"This endpoint provides frequency-direction spectral plots in polar coordinates for forecast times. This detailed information is crucial for understanding complex sea states and optimizing operations in offshore and shipping projects.\nThis endpoint returns a presigned URL to a zipped file containing the requested plots as PNG images.\n\nFor example, it can be used to enhance the stability and safety of offshore platforms or to optimize routing for shipping vessels to avoid severe sea conditions.\n\nUse query parameters to control the results in the response body:\n\n * Specify a location as latitude (`lat`) and longitude (`lon`).\n\n * Two important parameters are `startTime` and `endTime`:\n + The API returns forecast data when `startTime` and `endTime` are in the future.\n + The API does not support `startTime` and `endTime` in the past.\n + The API returns only one exact timestamp when only `startTime` is specified.\n\n * Complete example: `https://weather.api.dtn.com/v1/conditions/marine/spectra-plot?lat={lat}&lon={lon}&startTime={start_time}&endTime={end_time}`\n","security":[{"clientCredentials":[]}],"responses":{"200":{"description":"A successful request.","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"URL to download zipped images."}},"example":{"url":"..."}}}}},"400":{"description":"An invalid request.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"bad-request","title":"Invalid Request","detail":"Validation failed.","status":400,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}},"401":{"description":"Unable to authenticate credentials.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"unauthorized","title":"Error while authenticating the user.","detail":"invalid token","status":401,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}},"406":{"description":"Unable to produce a response matching the Accept request header.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"not-acceptable","title":"Not Acceptable","detail":"The Accept header value is invalid or unsupported.","status":406,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}}},"x-codeSamples":[{"lang":"C + Libcurl","source":"CURL *hnd = curl_easy_init();\n\ncurl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, \"GET\");\ncurl_easy_setopt(hnd, CURLOPT_URL, \"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\");\n\nstruct curl_slist *headers = NULL;\nheaders = curl_slist_append(headers, \"Authorization: Bearer REPLACE_BEARER_TOKEN\");\ncurl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);\n\nCURLcode ret = curl_easy_perform(hnd);"},{"lang":"Csharp + Restsharp","source":"var client = new RestClient(\"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\");\nvar request = new RestRequest(Method.GET);\nrequest.AddHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\nIRestResponse response = client.Execute(request);"},{"lang":"Go + Native","source":"package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n\t\"io/ioutil\"\n)\n\nfunc main() {\n\n\turl := \"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\"\n\n\treq, _ := http.NewRequest(\"GET\", url, nil)\n\n\treq.Header.Add(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n\n\tres, _ := http.DefaultClient.Do(req)\n\n\tdefer res.Body.Close()\n\tbody, _ := ioutil.ReadAll(res.Body)\n\n\tfmt.Println(res)\n\tfmt.Println(string(body))\n\n}"},{"lang":"Java + Okhttp","source":"OkHttpClient client = new OkHttpClient();\n\nRequest request = new Request.Builder()\n .url(\"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\")\n .get()\n .addHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"},{"lang":"Java + Unirest","source":"HttpResponse response = Unirest.get(\"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\")\n .header(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\")\n .asString();"},{"lang":"Javascript + Jquery","source":"const settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\",\n \"method\": \"GET\",\n \"headers\": {\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n }\n};\n\n$.ajax(settings).done(function (response) {\n console.log(response);\n});"},{"lang":"Javascript + Xhr","source":"const data = null;\n\nconst xhr = new XMLHttpRequest();\nxhr.withCredentials = true;\n\nxhr.addEventListener(\"readystatechange\", function () {\n if (this.readyState === this.DONE) {\n console.log(this.responseText);\n }\n});\n\nxhr.open(\"GET\", \"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\");\nxhr.setRequestHeader(\"Authorization\", \"Bearer REPLACE_BEARER_TOKEN\");\n\nxhr.send(data);"},{"lang":"Javascript + Jquery","source":"const settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\",\n \"method\": \"GET\",\n \"headers\": {\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n }\n};\n\n$.ajax(settings).done(function (response) {\n console.log(response);\n});"},{"lang":"Node + Native","source":"const http = require(\"https\");\n\nconst options = {\n \"method\": \"GET\",\n \"hostname\": \"weather.api.dtn.com\",\n \"port\": null,\n \"path\": \"/v1/conditions/marine/spectra-plot\",\n \"headers\": {\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n }\n};\n\nconst req = http.request(options, function (res) {\n const chunks = [];\n\n res.on(\"data\", function (chunk) {\n chunks.push(chunk);\n });\n\n res.on(\"end\", function () {\n const body = Buffer.concat(chunks);\n console.log(body.toString());\n });\n});\n\nreq.end();"},{"lang":"Node + Request","source":"const request = require('request');\n\nconst options = {\n method: 'GET',\n url: 'https://weather.api.dtn.com/v1/conditions/marine/spectra-plot',\n headers: {Authorization: 'Bearer REPLACE_BEARER_TOKEN'}\n};\n\nrequest(options, function (error, response, body) {\n if (error) throw new Error(error);\n\n console.log(body);\n});\n"},{"lang":"Node + Unirest","source":"const unirest = require(\"unirest\");\n\nconst req = unirest(\"GET\", \"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\");\n\nreq.headers({\n \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n});\n\nreq.end(function (res) {\n if (res.error) throw new Error(res.error);\n\n console.log(res.body);\n});\n"},{"lang":"Objc + Nsurlsession","source":"#import \n\nNSDictionary *headers = @{ @\"Authorization\": @\"Bearer REPLACE_BEARER_TOKEN\" };\n\nNSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@\"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\"]\n cachePolicy:NSURLRequestUseProtocolCachePolicy\n timeoutInterval:10.0];\n[request setHTTPMethod:@\"GET\"];\n[request setAllHTTPHeaderFields:headers];\n\nNSURLSession *session = [NSURLSession sharedSession];\nNSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request\n completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {\n if (error) {\n NSLog(@\"%@\", error);\n } else {\n NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;\n NSLog(@\"%@\", httpResponse);\n }\n }];\n[dataTask resume];"},{"lang":"Ocaml + Cohttp","source":"open Cohttp_lwt_unix\nopen Cohttp\nopen Lwt\n\nlet uri = Uri.of_string \"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\" in\nlet headers = Header.add (Header.init ()) \"Authorization\" \"Bearer REPLACE_BEARER_TOKEN\" in\n\nClient.call ~headers `GET uri\n>>= fun (res, body_stream) ->\n (* Do stuff with the result *)"},{"lang":"Php + Curl","source":" \"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => \"\",\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 30,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_CUSTOMREQUEST => \"GET\",\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer REPLACE_BEARER_TOKEN\"\n ],\n]);\n\n$response = curl_exec($curl);\n$err = curl_error($curl);\n\ncurl_close($curl);\n\nif ($err) {\n echo \"cURL Error #:\" . $err;\n} else {\n echo $response;\n}"},{"lang":"Php + Http1","source":"setUrl('https://weather.api.dtn.com/v1/conditions/marine/spectra-plot');\n$request->setMethod(HTTP_METH_GET);\n\n$request->setHeaders([\n 'Authorization' => 'Bearer REPLACE_BEARER_TOKEN'\n]);\n\ntry {\n $response = $request->send();\n\n echo $response->getBody();\n} catch (HttpException $ex) {\n echo $ex;\n}"},{"lang":"Php + Http2","source":"setRequestUrl('https://weather.api.dtn.com/v1/conditions/marine/spectra-plot');\n$request->setRequestMethod('GET');\n$request->setHeaders([\n 'Authorization' => 'Bearer REPLACE_BEARER_TOKEN'\n]);\n\n$client->enqueue($request)->send();\n$response = $client->getResponse();\n\necho $response->getBody();"},{"lang":"Python + Python3","source":"import http.client\n\nconn = http.client.HTTPSConnection(\"weather.api.dtn.com\")\n\nheaders = { 'Authorization': \"Bearer REPLACE_BEARER_TOKEN\" }\n\nconn.request(\"GET\", \"/v1/conditions/marine/spectra-plot\", headers=headers)\n\nres = conn.getresponse()\ndata = res.read()\n\nprint(data.decode(\"utf-8\"))"},{"lang":"Python + Requests","source":"import requests\n\nurl = \"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\"\n\nheaders = {\"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"}\n\nresponse = requests.request(\"GET\", url, headers=headers)\n\nprint(response.text)"},{"lang":"Ruby + Native","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI(\"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\")\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\nhttp.verify_mode = OpenSSL::SSL::VERIFY_NONE\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"Authorization\"] = 'Bearer REPLACE_BEARER_TOKEN'\n\nresponse = http.request(request)\nputs response.read_body"},{"lang":"Shell + Curl","source":"curl --request GET \\\n --url https://weather.api.dtn.com/v1/conditions/marine/spectra-plot \\\n --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'"},{"lang":"Shell + Httpie","source":"http GET https://weather.api.dtn.com/v1/conditions/marine/spectra-plot \\\n Authorization:'Bearer REPLACE_BEARER_TOKEN'"},{"lang":"Shell + Wget","source":"wget --quiet \\\n --method GET \\\n --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \\\n --output-document \\\n - https://weather.api.dtn.com/v1/conditions/marine/spectra-plot"},{"lang":"Swift + Nsurlsession","source":"import Foundation\n\nlet headers = [\"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"]\n\nlet request = NSMutableURLRequest(url: NSURL(string: \"https://weather.api.dtn.com/v1/conditions/marine/spectra-plot\")! as URL,\n cachePolicy: .useProtocolCachePolicy,\n timeoutInterval: 10.0)\nrequest.httpMethod = \"GET\"\nrequest.allHTTPHeaderFields = headers\n\nlet session = URLSession.shared\nlet dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in\n if (error != nil) {\n print(error)\n } else {\n let httpResponse = response as? HTTPURLResponse\n print(httpResponse)\n }\n})\n\ndataTask.resume()"}]}}},"components":{"responses":{"bad-request":{"description":"An invalid request.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"bad-request","title":"Invalid Request","detail":"Validation failed.","status":400,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}},"unauthorized":{"description":"Unable to authenticate credentials.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"unauthorized","title":"Error while authenticating the user.","detail":"invalid token","status":401,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}},"not-acceptable":{"description":"Unable to produce a response matching the Accept request header.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"example":{"type":"not-acceptable","title":"Not Acceptable","detail":"The Accept header value is invalid or unsupported.","status":406,"instance":"urn:dtn:one-marine-weather-service:/v1/conditions/marine:requestId:123e4567-e89b-12d3-a458-426614176000"}}}}},"schemas":{"general-error":{"type":"object","properties":{"detail":{"type":"string","description":"A human-readable description of the specific error."},"type":{"type":"string","description":"The error type."},"title":{"type":"string","description":"A short, human-readable title for the general error type."},"status":{"type":"number","description":"The HTTP status code."},"instance":{"type":"string","format":"uri","description":"A URL with the specific error ID (often pointing to an error log for that specific response)."}},"additionalProperties":false},"TimedValue":{"type":"object","properties":{"timestamp":{"type":"number"}}},"RouteRequests":{"type":"array","items":{"type":"object","required":["timestamp","lat","lon"],"properties":{"timestamp":{"type":"string","format":"date-time"},"lat":{"type":"number","format":"float"},"lon":{"type":"number","format":"float"},"parameters":{"type":"array","items":{"type":"string"}}}},"example":[{"timestamp":"2023-08-10T16:00:00Z","lat":55.81,"lon":3.88,"parameters":["airPressureMeanSeaLevel","airTemp","airTemp10m","dewPoint","lightningProb","maximumWaveHeight","meanWaveDirection","meanWaveDirectionalSpreading","meanWavePeriodTm02","meanWavePeriodTmm10","peakPeriod","precipAmount1h","precipProb","relativeHumidity","seaIceConcentration","seaSurfaceTemp","significantWaveHeight","significantWaveHeightRiskP90","totalCurrentDirection","totalCurrentVelocity","totalSwellMeanWaveDirection","totalSwellMeanWaveDirectionalSpreading","totalSwellMeanWavePeriodTm02","totalSwellMeanWavePeriodTmm10","totalSwellPeakPeriod","totalSwellSignificantWaveHeight","visibility","weatherCode","windDirection100m","windDirection10m","windDirection50m","windGust100m","windGust10m","windGust50m","windSpeed100m","windSpeed10m","windSpeed50m","windWaveMeanWaveDirection","windWaveMeanWaveDirectionalSpreading","windWaveMeanWavePeriodTm02","windWaveMeanWavePeriodTmm10","windWavePeakPeriod","windWaveSignificantWaveHeight"]},{"timestamp":"2023-08-10T17:00:00Z","lat":57.48,"lon":2.49,"parameters":["airPressureMeanSeaLevel","airTemp","airTemp10m","dewPoint","lightningProb","maximumWaveHeight","meanWaveDirection","meanWaveDirectionalSpreading","meanWavePeriodTm02","meanWavePeriodTmm10","peakPeriod","precipAmount1h","precipProb","relativeHumidity","seaIceConcentration","seaSurfaceTemp","significantWaveHeight","significantWaveHeightRiskP90","totalCurrentDirection","totalCurrentVelocity","totalSwellMeanWaveDirection","totalSwellMeanWaveDirectionalSpreading","totalSwellMeanWavePeriodTm02","totalSwellMeanWavePeriodTmm10","totalSwellPeakPeriod","totalSwellSignificantWaveHeight","visibility","weatherCode","windDirection100m","windDirection10m","windDirection50m","windGust100m","windGust10m","windGust50m","windSpeed100m","windSpeed10m","windSpeed50m","windWaveMeanWaveDirection","windWaveMeanWaveDirectionalSpreading","windWaveMeanWavePeriodTm02","windWaveMeanWavePeriodTmm10","windWavePeakPeriod","windWaveSignificantWaveHeight"]}]},"PlotResponse":{"type":"object"},"MarineConditions":{"type":"object","properties":{"url":{"type":"string"},"type":{"type":"string"},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"geometry":{"type":"object","properties":{"type":{"type":"string"},"coordinates":{"type":"array","items":{"type":"number"}}}},"properties":{"type":"object","properties":{"2023-06-30T10:00:00Z":{"type":"object","properties":{"airPressureMeanSeaLevel":{"type":"number"},"airTemp":{"type":"number"},"airTemp10m":{"type":"number"},"dewPoint":{"type":"number"},"lightningProb":{"type":"number"},"maximumWaveHeight":{"type":"number"},"meanWaveDirection":{"type":"number"},"meanWaveDirectionalSpreading":{"type":"number"},"meanWavePeriodTm02":{"type":"number"},"meanWavePeriodTmm10":{"type":"number"},"peakPeriod":{"type":"number"},"precipAmount1h":{"type":"number"},"precipProb":{"type":"number"},"relativeHumidity":{"type":"number"},"seaIceConcentration":{"type":"number"},"seaSurfaceTemp":{"type":"number"},"significantWaveHeight":{"type":"number"},"significantWaveHeightRiskP90":{"type":"number"},"totalCurrentDirection":{"type":"number"},"totalCurrentVelocity":{"type":"number"},"totalSwellMeanWaveDirection":{"type":"number"},"totalSwellMeanWaveDirectionalSpreading":{"type":"number"},"totalSwellMeanWavePeriodTm02":{"type":"number"},"totalSwellMeanWavePeriodTmm10":{"type":"number"},"totalSwellPeakPeriod":{"type":"number"},"totalSwellSignificantWaveHeight":{"type":"number"},"visibility":{"type":"number"},"weatherCode":{"type":"number"},"windDirection100m":{"type":"number"},"windDirection10m":{"type":"number"},"windDirection50m":{"type":"number"},"windGust100m":{"type":"number"},"windGust10m":{"type":"number"},"windGust50m":{"type":"number"},"windSpeed100m":{"type":"number"},"windSpeed10m":{"type":"number"},"windSpeed50m":{"type":"number"},"windWaveMeanWaveDirection":{"type":"number"},"windWaveMeanWaveDirectionalSpreading":{"type":"number"},"windWaveMeanWavePeriodTm02":{"type":"number"},"windWaveMeanWavePeriodTmm10":{"type":"number"},"windWavePeakPeriod":{"type":"number"},"windWaveSignificantWaveHeight":{"type":"number"}}}}}}}}},"example":{"url":"https://weather.api.dtn.com/v1/conditions/marine?lat=55.81&lon=3.88¶meters=airPressureMeanSeaLevel,airTemp,airTemp10m,dewPoint,lightningProb,maximumWaveHeight,meanWaveDirection,meanWaveDirectionalSpreading,meanWavePeriodTm02,meanWavePeriodTmm10,peakPeriod,precipAmount1h,precipProb,relativeHumidity,seaIceConcentration,seaSurfaceTemp,significantWaveHeight,significantWaveHeightRiskP90,totalCurrentDirection,totalCurrentVelocity,totalSwellMeanWaveDirection,totalSwellMeanWaveDirectionalSpreading,totalSwellMeanWavePeriodTm02,totalSwellMeanWavePeriodTmm10,totalSwellPeakPeriod,totalSwellSignificantWaveHeight,visibility,weatherCode,windDirection100m,windDirection10m,windDirection50m,windGust100m,windGust10m,windGust50m,windSpeed100m,windSpeed10m,windSpeed50m,windWaveMeanWaveDirection,windWaveMeanWaveDirectionalSpreading,windWaveMeanWavePeriodTm02,windWaveMeanWavePeriodTmm10,windWavePeakPeriod,windWaveSignificantWaveHeight,seaSurfaceHeightAnomalyAstronomic,seaSurfaceHeightAnomalyResidual,seaSurfaceHeightAnomalyTotal&startTime=2023-08-11T16:13:53Z&endTime=2023-08-11T19:13:53Z","type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[3.88,55.81]},"properties":{"2023-08-11T16:00:00Z":{"airPressureMeanSeaLevel":1014.4,"airTemp":16.7,"airTemp10m":16.65,"dewPoint":15.6,"lightningProb":0,"maximumWaveHeight":2.06,"meanWaveDirection":259.95,"meanWaveDirectionalSpreading":64.07,"meanWavePeriodTm02":4.4,"meanWavePeriodTmm10":5.9,"peakPeriod":9.15,"precipAmount1h":0,"precipProb":0,"relativeHumidity":93,"seaIceConcentration":0,"seaSurfaceTemp":15.15,"significantWaveHeight":1.24,"significantWaveHeightRiskP90":1.35,"totalCurrentDirection":96.25,"totalCurrentVelocity":0.29,"totalSwellMeanWaveDirection":343.95,"totalSwellMeanWaveDirectionalSpreading":20.99,"totalSwellMeanWavePeriodTm02":7.25,"totalSwellMeanWavePeriodTmm10":8.25,"totalSwellPeakPeriod":9.15,"totalSwellSignificantWaveHeight":0.78,"visibility":24.04,"weatherCode":1,"windDirection100m":229,"windDirection10m":223,"windDirection50m":226,"windGust100m":11.4,"windGust10m":8.7,"windGust50m":10.6,"windSpeed100m":9.4,"windSpeed10m":6.7,"windSpeed50m":8.6,"windWaveMeanWaveDirection":211.75,"windWaveMeanWaveDirectionalSpreading":31.86,"windWaveMeanWavePeriodTm02":3.65,"windWaveMeanWavePeriodTmm10":4.25,"windWavePeakPeriod":4.7,"windWaveSignificantWaveHeight":0.95,"seaSurfaceHeightAnomalyAstronomic":0.06,"seaSurfaceHeightAnomalyResidual":-0.01,"seaSurfaceHeightAnomalyTotal":0.04},"2023-08-11T17:00:00Z":{"airPressureMeanSeaLevel":1014.5,"airTemp":16.75,"airTemp10m":16.7,"dewPoint":15.6,"lightningProb":0,"maximumWaveHeight":2,"meanWaveDirection":257.85,"meanWaveDirectionalSpreading":63.72,"meanWavePeriodTm02":4.35,"meanWavePeriodTmm10":5.85,"peakPeriod":9.15,"precipAmount1h":0,"precipProb":0,"relativeHumidity":93,"seaIceConcentration":0,"seaSurfaceTemp":15.15,"significantWaveHeight":1.19,"significantWaveHeightRiskP90":1.31,"totalCurrentDirection":104.2,"totalCurrentVelocity":0.25,"totalSwellMeanWaveDirection":343.85,"totalSwellMeanWaveDirectionalSpreading":24.43,"totalSwellMeanWavePeriodTm02":7.2,"totalSwellMeanWavePeriodTmm10":8.2,"totalSwellPeakPeriod":9.15,"totalSwellSignificantWaveHeight":0.76,"visibility":24.43,"weatherCode":1,"windDirection100m":230,"windDirection10m":222,"windDirection50m":226,"windGust100m":11.05,"windGust10m":8.45,"windGust50m":10.25,"windSpeed100m":9.05,"windSpeed10m":6.45,"windSpeed50m":8.25,"windWaveMeanWaveDirection":212.4,"windWaveMeanWaveDirectionalSpreading":31.88,"windWaveMeanWavePeriodTm02":3.65,"windWaveMeanWavePeriodTmm10":4.25,"windWavePeakPeriod":4.7,"windWaveSignificantWaveHeight":0.93,"seaSurfaceHeightAnomalyAstronomic":0.15,"seaSurfaceHeightAnomalyResidual":-0.03,"seaSurfaceHeightAnomalyTotal":0.13},"2023-08-11T18:00:00Z":{"airPressureMeanSeaLevel":1014.4,"airTemp":16.75,"airTemp10m":16.7,"dewPoint":15.55,"lightningProb":0,"maximumWaveHeight":1.93,"meanWaveDirection":255.65,"meanWaveDirectionalSpreading":63.6,"meanWavePeriodTm02":4.35,"meanWavePeriodTmm10":5.8,"peakPeriod":9.15,"precipAmount1h":0,"precipProb":0,"relativeHumidity":92.5,"seaIceConcentration":0,"seaSurfaceTemp":15.15,"significantWaveHeight":1.16,"significantWaveHeightRiskP90":1.27,"totalCurrentDirection":115.55,"totalCurrentVelocity":0.2,"totalSwellMeanWaveDirection":343.65,"totalSwellMeanWaveDirectionalSpreading":28.13,"totalSwellMeanWavePeriodTm02":7.15,"totalSwellMeanWavePeriodTmm10":8.15,"totalSwellPeakPeriod":9.15,"totalSwellSignificantWaveHeight":0.73,"visibility":24.05,"weatherCode":1,"windDirection100m":228,"windDirection10m":224,"windDirection50m":226,"windGust100m":10.8,"windGust10m":8.45,"windGust50m":10.1,"windSpeed100m":8.7,"windSpeed10m":6.35,"windSpeed50m":8,"windWaveMeanWaveDirection":212.5,"windWaveMeanWaveDirectionalSpreading":31.97,"windWaveMeanWavePeriodTm02":3.65,"windWaveMeanWavePeriodTmm10":4.25,"windWavePeakPeriod":4.7,"windWaveSignificantWaveHeight":0.9,"seaSurfaceHeightAnomalyAstronomic":-0.04,"seaSurfaceHeightAnomalyResidual":-0.01,"seaSurfaceHeightAnomalyTotal":-0.06},"2023-08-11T19:00:00Z":{"airPressureMeanSeaLevel":1014.6,"airTemp":16.7,"airTemp10m":16.65,"dewPoint":15.5,"lightningProb":0,"maximumWaveHeight":1.87,"meanWaveDirection":254.4,"meanWaveDirectionalSpreading":63.82,"meanWavePeriodTm02":4.3,"meanWavePeriodTmm10":5.75,"peakPeriod":9.15,"precipAmount1h":0,"precipProb":0,"relativeHumidity":92.5,"seaIceConcentration":0,"seaSurfaceTemp":15.05,"significantWaveHeight":1.12,"significantWaveHeightRiskP90":1.23,"totalCurrentDirection":133.05,"totalCurrentVelocity":0.14,"totalSwellMeanWaveDirection":342.45,"totalSwellMeanWaveDirectionalSpreading":31.18,"totalSwellMeanWavePeriodTm02":7.05,"totalSwellMeanWavePeriodTmm10":8.1,"totalSwellPeakPeriod":9.15,"totalSwellSignificantWaveHeight":0.71,"visibility":24.06,"weatherCode":1,"windDirection100m":223,"windDirection10m":216,"windDirection50m":220,"windGust100m":10.05,"windGust10m":7.65,"windGust50m":9.35,"windSpeed100m":8.35,"windSpeed10m":5.95,"windSpeed50m":7.65,"windWaveMeanWaveDirection":211.35,"windWaveMeanWaveDirectionalSpreading":32,"windWaveMeanWavePeriodTm02":3.65,"windWaveMeanWavePeriodTmm10":4.2,"windWavePeakPeriod":4.7,"windWaveSignificantWaveHeight":0.86,"seaSurfaceHeightAnomalyAstronomic":-0.13,"seaSurfaceHeightAnomalyResidual":-0.04,"seaSurfaceHeightAnomalyTotal":-0.16}}}]}},"WavePartitionsRequests":{"type":"object","properties":{"url":{"type":"string"},"type":{"type":"string"},"features":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"geometry":{"type":"object","properties":{"type":{"type":"string"},"coordinates":{"type":"array","items":{"type":"number"}}}},"properties":{"type":"object","properties":{"2024-05-20T10:00:00Z":{"type":"object","properties":{"significantWaveHeightPart1Of6":{"type":"number"},"significantWaveHeightPart2Of6":{"type":"number"},"significantWaveHeightPart3Of6":{"type":"number"},"significantWaveHeightPart4Of6":{"type":"number"},"significantWaveHeightPart5Of6":{"type":"number"},"significantWaveHeightPart6Of6":{"type":"number"},"peakPeriodPart1Of6":{"type":"number"},"peakPeriodPart2Of6":{"type":"number"},"peakPeriodPart3Of6":{"type":"number"},"peakPeriodPart4Of6":{"type":"number"},"peakPeriodPart5Of6":{"type":"number"},"peakPeriodPart6Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart1Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart2Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart3Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart4Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart5Of6":{"type":"number"},"meanWaveDirectionalSpreadingPart6Of6":{"type":"number"},"meanWaveDirectionPart1Of6":{"type":"number"},"meanWaveDirectionPart2Of6":{"type":"number"},"meanWaveDirectionPart3Of6":{"type":"number"},"meanWaveDirectionPart4Of6":{"type":"number"},"meanWaveDirectionPart5Of6":{"type":"number"},"meanWaveDirectionPart6Of6":{"type":"number"}}}}}}}}},"example":{"url":"https://weather.api.dtn.com/v1/conditions/marine/wave-partitions?lat=55.81&lon=3.88¶meters=meanWaveDirectionPart1Of6,meanWaveDirectionPart2Of6,meanWaveDirectionPart3Of6,meanWaveDirectionPart4Of6,meanWaveDirectionPart5Of6,meanWaveDirectionPart6Of6,meanWaveDirectionalSpreadingPart1Of6,meanWaveDirectionalSpreadingPart2Of6,meanWaveDirectionalSpreadingPart3Of6,meanWaveDirectionalSpreadingPart4Of6,meanWaveDirectionalSpreadingPart5Of6,meanWaveDirectionalSpreadingPart6Of6,peakPeriodPart1Of6,peakPeriodPart2Of6,peakPeriodPart3Of6,peakPeriodPart4Of6,peakPeriodPart5Of6,peakPeriodPart6Of6,significantWaveHeightPart1Of6,significantWaveHeightPart2Of6,significantWaveHeightPart3Of6,significantWaveHeightPart4Of6,significantWaveHeightPart5Of6,significantWaveHeightPart6Of6&startTime=2024-05-15T16:13:53Z&endTime=2024-05-15T18:13:53Z","type":"FeatureCollection","features":[{"type":"Feature","geometry":{"type":"Point","coordinates":[3.88,55.81]},"properties":{"2024-05-15T16:00:00Z":{"meanWaveDirectionPart1Of6":"108.3,","meanWaveDirectionPart2Of6":"42.5,","meanWaveDirectionPart3Of6":"45.7,","meanWaveDirectionPart4Of6":"198.6,","meanWaveDirectionPart5Of6":"44.2,","meanWaveDirectionPart6Of6":"134.1,","meanWaveDirectionalSpreadingPart1Of6":"35,","meanWaveDirectionalSpreadingPart2Of6":"13.45,","meanWaveDirectionalSpreadingPart3Of6":"14.82,","meanWaveDirectionalSpreadingPart4Of6":"9.3,","meanWaveDirectionalSpreadingPart5Of6":"10.32,","meanWaveDirectionalSpreadingPart6Of6":"12.34,","peakPeriodPart1Of6":"6.3,","peakPeriodPart2Of6":"5.2,","peakPeriodPart3Of6":"5.2,","peakPeriodPart4Of6":"4.75,","peakPeriodPart5Of6":"4.89,","peakPeriodPart6Of6":"5.2,","significantWaveHeightPart1Of6":"1.72,","significantWaveHeightPart2Of6":"0.57,","significantWaveHeightPart3Of6":"0.63,","significantWaveHeightPart4Of6":"0.16,","significantWaveHeightPart5Of6":"0.12,","significantWaveHeightPart6Of6":0.11},"2024-05-15T17:00:00Z":{"meanWaveDirectionPart1Of6":"115,","meanWaveDirectionPart2Of6":"41.8,","meanWaveDirectionPart3Of6":"41.4,","meanWaveDirectionPart4Of6":"36.6,","meanWaveDirectionPart5Of6":"190,","meanWaveDirectionPart6Of6":"130.1,","meanWaveDirectionalSpreadingPart1Of6":"29.2,","meanWaveDirectionalSpreadingPart2Of6":"13.4,","meanWaveDirectionalSpreadingPart3Of6":"13.3,","meanWaveDirectionalSpreadingPart4Of6":"12.13,","meanWaveDirectionalSpreadingPart5Of6":"0,","meanWaveDirectionalSpreadingPart6Of6":"12.11,","peakPeriodPart1Of6":"6.3,","peakPeriodPart2Of6":"5.2,","peakPeriodPart3Of6":"5.2,","peakPeriodPart4Of6":"6.3,","peakPeriodPart5Of6":"4.75,","peakPeriodPart6Of6":"4.1,","significantWaveHeightPart1Of6":"1.65,","significantWaveHeightPart2Of6":"0.58,","significantWaveHeightPart3Of6":"0.59,","significantWaveHeightPart4Of6":"0.34,","significantWaveHeightPart5Of6":"0.08,","significantWaveHeightPart6Of6":0.15},"2024-05-15T18:00:00Z":{"meanWaveDirectionPart1Of6":"107.2,","meanWaveDirectionPart2Of6":"63.55,","meanWaveDirectionPart3Of6":"40.65,","meanWaveDirectionPart4Of6":"35.9,","meanWaveDirectionPart5Of6":"108.1,","meanWaveDirectionPart6Of6":"77.1,","meanWaveDirectionalSpreadingPart1Of6":"35.1,","meanWaveDirectionalSpreadingPart2Of6":"15.16,","meanWaveDirectionalSpreadingPart3Of6":"13.56,","meanWaveDirectionalSpreadingPart4Of6":"12.4,","meanWaveDirectionalSpreadingPart5Of6":"12.1,","meanWaveDirectionalSpreadingPart6Of6":"13.9,","peakPeriodPart1Of6":"6.3,","peakPeriodPart2Of6":"5.5,","peakPeriodPart3Of6":"5.2,","peakPeriodPart4Of6":"6.3,","peakPeriodPart5Of6":"5.2,","peakPeriodPart6Of6":"5.9,","significantWaveHeightPart1Of6":"1.79,","significantWaveHeightPart2Of6":"0.83,","significantWaveHeightPart3Of6":"0.6,","significantWaveHeightPart4Of6":"0.33,","significantWaveHeightPart5Of6":"0.78,","significantWaveHeightPart6Of6":1.55}}}]}},"ParameterDescriptorSchema":{"type":"object","properties":{"parameter name":{"type":"object","description":"The name of the parameter.","properties":{"metricUnit":{"type":"string","description":"The metric unit used for this parameter."},"imperialUnit":{"type":"string","description":"The imperial unit used for this parameter."},"description":{"type":"string","description":"A description of what this parameter means."},"notes":{"type":"string","description":"Additional information related to this parameter."}}}},"example":{"airTemp":{"metricUnit":"Celsius","imperialUnit":"","type":"number","description":"Air temperature at 2m","notes":"As of now we only support metricUnit"}}}},"parameters":{"lat":{"name":"lat","in":"query","schema":{"type":"number","format":"float"},"example":55.81,"required":true},"lon":{"name":"lon","in":"query","schema":{"type":"number","format":"float"},"example":3.88,"required":true},"startTime":{"name":"startTime","in":"query","schema":{"type":"string","format":"date-time"},"example":"2023-06-30T10:00:00Z","required":true},"endTime":{"name":"endTime","in":"query","schema":{"type":"string","format":"date-time"},"example":"2023-07-07T10:00:00Z"},"parameters":{"name":"parameters","in":"query","style":"form","explode":true,"schema":{"type":"array","items":{"type":"string"}},"example":"airTemp,seaSurfaceTemp,windSpeed10m"}},"securitySchemes":{"clientCredentials":{"type":"oauth2","x-receive-token-in":"request-body","flows":{"clientCredentials":{"tokenUrl":"https://api.auth.dtn.com/v1/tokens/authorize"}},"description":"# Using DAIS for M2M/API Auth\nYou have been given a Client ID and a Client Secret, which are used to request a DTN Access Token. DTN Access Tokens are required when making calls to each and every DTN API endpoint. The following information provides additional details on these tokens and how they are generated.\n## What is an Access Token and how is it different from an API Key?\nAn API Key is a random string of characters that an API uses to authorize whether or not a calling client has approved access to an endpoint. These keys are a non-standard approach to API authorization and are generally issued on a per-API basis.\n\nAn Access Token is also a string of characters but is a base-64 encoded JavaScript Object Notation Web Token, or JWT. JWTs are a widely accepted standard that use OAuth concepts and approaches. \n\nBoth API Keys and Access Tokens are used in an Authorization Request Header as a Bearer, meaning there is no difference in where you put this string of characters when you make calls to DTN APIs.\n## How to generate an Access Token?\nWhen requested, an Access Token is generated for your specific Client (ID/Secret) and for a specific API. The DTN Auth and Identity Service (DAIS) generates new Access Tokens for your client. The DAIS endpoint is `POST https://api.auth.dtn.com/v1/tokens/authorize`.\n\nThis endpoint takes two Header parameters:\n * `Content-Type: application/json`\n * `Accept: application/json`\n\nThis endpoint takes four parameters in the Request Body:\n * `grant_type`: this should always be client_credentials for generating machine-to-machine tokens.\n * `client_id`: this is the Client ID or Application ID using the token and is given to you by DTN's Identity Team. This ID will never change for your client/application.\n * `client_secret`: this is the Client Secret that is associated with the Application ID and is given to you by DTN's Identity Team. This key is subject to rotation for security purposes but always with the client's knowledge.\n * `audience`: this is the API for which this Access Token will be used. For the DTN Marine Weather API, you need to use the following audience: https://weather.api.dtn.com/conditions/marine\n\nYou can use this CURL command template as a reference for obtaining an access token:\n ```\n curl --location --request POST 'https://api.auth.dtn.com/v1/tokens/authorize' \\\n--header 'Accept: application/json' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n\"grant_type\": \"client_credentials\",\n\"client_id\": \"insert your client id here\",\n\"client_secret\": \"insert your client secret here\",\n\"audience\": \"insert your audience here\"\n}' \n ```\n\n*This document, for demonstration purposes, supplies a client_id and client_secret in all code examples. This client/application is for a fictitious API and cannot be used in practice to gain unauthorized access to any other DTN API.*\nUpon generating a new Access Token, you should receive an HTTP Response from DAIS similar to this:\n ```\n {\n \"data\": {\n \"access_token\": \"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InpfX21pZW13NGhoTmdvQWQxR3N6ciJ9.eyJodHRwczovL2F1dGguZHRuLmNvbS9jdXN0b21lcklkIjoiMTIzNDU2Nzg5MERlbW8iLCJodHRwczovL2F1dGguZHRuLmNvbS9wcm9kdWN0Q29kZSI6IkRlbW9BcGlQIiwiaHR0cHM6Ly9hdXRoLmR0bi5jb20vcmVxdWVzdGVySXAiOiIxOC4yMTMuMTc0LjI3IiwiaHR0cHM6Ly9hdXRoLmR0bi5jb20vcnBzIjoiMTAwIiwiaHR0cHM6Ly9hdXRoLmR0bi5jb20vdGllciI6IkJhc2ljIiwiaHR0cHM6Ly9hdXRoLmR0bi5jb20vcXVvdGEiOiI5OTk5OTkiLCJpc3MiOiJodHRwczovL2lkLmF1dGguZHRuLmNvbS8iLCJzdWIiOiJuZnlPM0tpS1BSOE4wREtSNUNMOGpTOUdGQkNEZXlGTUBjbGllbnRzIiwiYXVkIjoiaHR0cHM6Ly9kZW1vLWFwaS5hdXRoLmR0bi5jb20vIiwiaWF0IjoxNjU2MDk5MDY4LCJleHAiOjE2NTYwOTkxNTgsImF6cCI6Im5meU8zS2lLUFI4TjBES1I1Q0w4alM5R0ZCQ0RleUZNIiwic2NvcGUiOiJyZWFkOmRlbW8gY3JlYXRlOmRlbW8gdXBkYXRlOmRlbW8iLCJndHkiOiJjbGllbnQtY3JlZGVudGlhbHMiLCJwZXJtaXNzaW9ucyI6WyJyZWFkOmRlbW8iLCJjcmVhdGU6ZGVtbyIsInVwZGF0ZTpkZW1vIl19.0VHdyp1w9PPFVI0FPheAwuKZwb5C25rwP-LPMXcSNoRmouvga1DZtNLA67ZzE_sAlc_VpaDRr6daLKr_Alw4347mw9sdjP8wKR27kCZa9JZK5PGQMmXHscATbzBEJYpCPklfyGaajgymqTBGnedcv8F0UvlRzQPsFeRPnVoX7BWOSXpMbyToGiXWkQLBQT7r96KAmLZOPJFZspPtjw-wH2mSL2WNa_nkB4j5vMGhGxlKiNRsKb30TH_WAel2hsxNlcPK3XHCmrMTYsNnu7HNqOTMn2i0__0rvBrhSWEw-_grqQDmWFJuWd7Qhi1q81AaJcdqgoSa_efz93QFclJUNw\",\n \"scope\": \"read:demo create:demo update:demo\",\n \"expires_in\": 90,\n \"token_type\": \"Bearer\"\n },\n \"meta\": {\n \"date_time\": \"2022-06-24T19:09:42.963Z\",\n \"name\": \"v1.tokens.authorize\",\n \"uuid\": \"ee6f9feb-dcf8-4421-a6fd-efd6beabdaa9\",\n \"start_timestamp\": 1656097782509,\n \"end_timestamp\": 1656097782963,\n \"execution_time\": 454\n }\n }\n ```\nLooking at this Response, you will see:\n * `access_token`: contains the JWT Access Token string you will use as your Bearer token.\n * `scope`: contains the scopes that this Access Token gives you permissions to access.\n * `expires_in`: contains the length of time before this Access Token will expire, in seconds.\n * `token_type`: verifies that this Access Token should be used as a Bearer token.\n\n## How to use an Access Token after one is generated?\nOnce a new Access Token is obtained, it is used in each call to a DTN API endpoint as a Bearer token in an Authorization Request Header. For example:\n ```\n Header: 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6InpfX21pZW13NGhoTmdvQWQxR3N6ciJ9.eyJodHRwczovL2F1dGguZHRuLmNvbS9jdXN0b21lcklkIjoiMTIzNDU2Nzg5MERlbW8iLCJodHRwczovL2F1dGguZHRuLmNvbS9wcm9kdWN0Q29kZSI6IkRlbW9BcGlQIiwiaHR0cHM6Ly9hdXRoLmR0bi5jb20vcmVxdWVzdGVySXAiOiIxOC4yMTMuMTc0LjI3IiwiaHR0cHM6Ly9hdXRoLmR0bi5jb20vcnBzIjoiMTAwIiwiaHR0cHM6Ly9hdXRoLmR0bi5jb20vdGllciI6IkJhc2ljIiwiaHR0cHM6Ly9hdXRoLmR0bi5jb20vcXVvdGEiOiI5OTk5OTkiLCJpc3MiOiJodHRwczovL2lkLmF1dGguZHRuLmNvbS8iLCJzdWIiOiJuZnlPM0tpS1BSOE4wREtSNUNMOGpTOUdGQkNEZXlGTUBjbGllbnRzIiwiYXVkIjoiaHR0cHM6Ly9kZW1vLWFwaS5hdXRoLmR0bi5jb20vIiwiaWF0IjoxNjU2MDk5MDY4LCJleHAiOjE2NTYwOTkxNTgsImF6cCI6Im5meU8zS2lLUFI4TjBES1I1Q0w4alM5R0ZCQ0RleUZNIiwic2NvcGUiOiJyZWFkOmRlbW8gY3JlYXRlOmRlbW8gdXBkYXRlOmRlbW8iLCJndHkiOiJjbGllbnQtY3JlZGVudGlhbHMiLCJwZXJtaXNzaW9ucyI6WyJyZWFkOmRlbW8iLCJjcmVhdGU6ZGVtbyIsInVwZGF0ZTpkZW1vIl19.0VHdyp1w9PPFVI0FPheAwuKZwb5C25rwP-LPMXcSNoRmouvga1DZtNLA67ZzE_sAlc_VpaDRr6daLKr_Alw4347mw9sdjP8wKR27kCZa9JZK5PGQMmXHscATbzBEJYpCPklfyGaajgymqTBGnedcv8F0UvlRzQPsFeRPnVoX7BWOSXpMbyToGiXWkQLBQT7r96KAmLZOPJFZspPtjw-wH2mSL2WNa_nkB4j5vMGhGxlKiNRsKb30TH_WAel2hsxNlcPK3XHCmrMTYsNnu7HNqOTMn2i0__0rvBrhSWEw-_grqQDmWFJuWd7Qhi1q81AaJcdqgoSa_efz93QFclJUNw'\n ```\n\n## Deconstructing the Access Token\nA DTN Access Token carries information within its JWT Body that is available on every API call. By deconstructing the JWT token, our Access Tokens will resemble:\n ```\n {\n \"https://auth.dtn.com/customerId\": \"1234567890Demo\",\n \"https://auth.dtn.com/productCode\": \"DemoApiP\",\n \"https://auth.dtn.com/requesterIp\": \"18.213.174.27\",\n \"https://auth.dtn.com/rps\": \"100\",\n \"https://auth.dtn.com/tier\": \"Basic\",\n \"https://auth.dtn.com/quota\": \"999999\",\n \"iss\": \"https://id.auth.dtn.com/\",\n \"sub\": \"nfyO3KiKPR8N0DKR5CL8jS9GFBCDeyFM@clients\",\n \"aud\": \"https://demo-api.auth.dtn.com/\",\n \"iat\": 1656099068,\n \"exp\": 1656099158,\n \"azp\": \"nfyO3KiKPR8N0DKR5CL8jS9GFBCDeyFM\",\n \"scope\": \"read:demo create:demo update:demo\",\n \"gty\": \"client-credentials\",\n \"permissions\": [\n \"read:demo\",\n \"create:demo\",\n \"update:demo\"\n ]\n }\n ```\n### Description of Claims\n\n | Claim | Type | Description |\n | -----------------------------------| --------------------------------------------| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n | `https://auth.dtn.com/customerId` | String | Custom DTN claim containing the Customer ID found in the DTN Order Management/Salesforce system associated with this token. |\n | `https://auth.dtn.com/productCode` | String | Custom DTN claim containing the Identity product code associated with this token. |\n | `https://auth.dtn.com/requesterIp` | String | Custom DTN claim containing the IP address of the requesting client. |\n | `https://auth.dtn.com/rps` | String | Custom DTN claim containing the maximum rate per second this customer is authorized to utilize. |\n | `https://auth.dtn.com/tier` | String | Custom DTN claim containing the data tier the customer purchased for the requested access. |\n | `https://auth.dtn.com/quota` | String | Custom DTN claim containing the maximum yearly quota the customer purchased for calling DTN endpoints for the specific product. |\n | `iss` | String (URI) | The Security Token Service (STS) that issues and returns the token. If this value is not from `https://id.auth.dtn.com/`, the token should not be considered trusted. |\n | `sub` | String (URI) | The principle about which the token asserts information (the User ID or Client ID within the Identity Provider). A User ID will start with a prefix of `auth0\\|`, while the Client ID will end with the suffix `@clients`. |\n | `aud` | String \\| Array (Strings) (URI \\| [URI, …]) | Identifies the intended recipient(s) of the token – its audience. The token should be rejected if the audience does not contain values expected by the calling application. |\n | `iat` | Number (Timestamp) | “Issued At” indicates when the authentication for this token occurred. |\n | `exp` | Number (Timestamp) | The “expiration time” on or after which the JWT must not be accepted for processing. |\n | `azp` | String | The application/client ID of the client using the token. The application can cat as itself or on behalf of a user. |\n | `gty` | String (Space-delimited) | The grant type that was used to request the token – not an RFC 7519 registered claim (Auth0-specific). |\n | `permissions` | Array (Strings) | The grant type that was used to request the token – not an RFC 7519 registered claim (Auth0-specific). |\n\n "}}}}