### Fetch Logbook Data via Python Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2.1-logbookp-data.json/index Python example using the requests library to call the Sea API for logbook data. It shows how to pass the Authorization header and query parameters (start, end, key_type) in the GET request. ```python import requests response = requests.get( "https://sea-api.wni.com/api/v2.1/logbookp-data.json", headers={ "Authorization": "Authorization" }, params={ "start": "20240701000000", "end": "20240706235959", "key_type": "SN" } ) ``` -------------------------------- ### Make CP Warranty Request (JavaScript) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-cp-warranty.json/index Example of how to make a GET request to the CP Warranty API endpoint using JavaScript's fetch API. It demonstrates setting the Authorization header. ```JavaScript fetch('https://sea-api.wni.com/api/v1/cp-warranty.json', { headers: { Authorization: 'Authorization' } }) ``` -------------------------------- ### Retrieve Composite Current Data (Python) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-composite-current.zip/index Python example using the requests library to get composite current data. Demonstrates how to pass parameters and headers for the API request. ```Python requests.get( "https://sea-api.wni.com/api/v2/composite-current.zip", headers={ "Authorization": "Authorization" }, params={ "element": "hocu", "date": "2024060912", "timestep": "000", "area": "ECS" } ) ``` -------------------------------- ### Make CP Warranty Request (Python) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-cp-warranty.json/index Example of how to make a GET request to the CP Warranty API endpoint using Python's requests library. It shows how to include the Authorization header in the request. ```Python requests.get( "https://sea-api.wni.com/api/v1/cp-warranty.json", headers={ "Authorization": "Authorization" } ) ``` -------------------------------- ### Retrieve Voyage Data (Python) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2.1-voyage.json/index Example of how to fetch voyage data using Python's requests library. This code shows how to send a GET request with headers and query parameters. ```python requests.get( "https://sea-api.wni.com/api/v2.1/voyage.json", headers={ "Authorization": "Authorization" }, params={ "report": "a", "version": "vpsheet" } ) ``` -------------------------------- ### API Successful Response Example (XML) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v1-hires-weather-on-track.xml/index Provides an example of a successful API response in XML format. This response includes various weather parameters such as wave height (wh), wind direction (wd), and precipitation (p), along with their corresponding values for a specific location and time. ```xml 2025051401 -555.116667 9591.516667 7.8894663 8 16 0.633 39.03 13 4.229 14 0.546 5.049 13 0.285 2.975 15 0.539 4.749 14 0.3292 4.047 15 0.4123507 4 ``` -------------------------------- ### Retrieve Voyage Data (JavaScript) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2.1-voyage.json/index Example of how to fetch voyage data using JavaScript's fetch API. This code snippet demonstrates making a GET request with an Authorization header. ```javascript fetch('https://sea-api.wni.com/api/v2.1/voyage.json?report=a&version=vpsheet', { headers: { Authorization: 'Authorization' } }) ``` -------------------------------- ### Make CP Warranty Request (cURL) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-cp-warranty.json/index Example of how to make a GET request to the CP Warranty API endpoint using cURL. It includes the necessary URL and authorization header. ```cURL curl https://sea-api.wni.com/api/v1/cp-warranty.json \ --header 'Authorization: Authorization' ``` -------------------------------- ### Weather On Track JSON Response Example Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v2-weather-on-track.json/index Example JSON response structure for the /v2/weather-on-track.json endpoint, detailing various marine weather parameters. ```JSON { "Point": [ { "date": 0, "lat": 0, "lon": 0, "sigwh": 0, "pwh": 0, "pwd": 0, "pswh": 0, "pswd": 0, "wsh": 0, "wsd": 0, "ocs": 0, "ocd": 0, "was": 0, "wad": 0, "wad_come_from": 0, "ssp": 0, "tmp1000hpa": 0, "sst": 0, "pswp": 0, "awp": 0, "swh": 0, "swd": 0, "swp": 0, "pwp": 0, "wsp": 0 } ] } ``` -------------------------------- ### Retrieve Enroute CP Warranty Data (Python) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-enroute-cp-warranty.json/index This Python code example utilizes the 'requests' library to make a GET request to the Sea Weather API for enroute CP warranty data. It correctly sets the authorization header. ```Python requests.get( "https://sea-api.wni.com/api/v1/enroute-cp-warranty.json", headers={ "Authorization": "Authorization" } ) ``` -------------------------------- ### Fetch Port Forecast Data (cURL, JavaScript, Python) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-port-forecast-gsf.json/index Demonstrates how to retrieve port forecast data from the Sea Weather News API. The examples show how to make a GET request to the '/api/v2/port-forecast-gsf.json' endpoint and include an Authorization header. ```cURL curl https://sea-api.wni.com/api/v2/port-forecast-gsf.json \ --header 'Authorization: Authorization' ``` ```JavaScript fetch('https://sea-api.wni.com/api/v2/port-forecast-gsf.json', { headers: { Authorization: 'Authorization' } }) ``` ```Python requests.get( "https://sea-api.wni.com/api/v2/port-forecast-gsf.json", headers={ "Authorization": "Authorization" } ) ``` -------------------------------- ### Retrieve High Resolution Weather Data (Python) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-weather.zip/index Example using Python's requests library to get high-resolution weather data from the Weathernews SEA API. Shows how to pass parameters and headers for the API request. ```Python import requests requests.get( "https://sea-api.wni.com/api/v1/hires-weather.zip", headers={ "Authorization": "Authorization" }, params={ "element": "npac_ssp", "date": "2024060912", "timestep": "000" } ) ``` -------------------------------- ### Retrieve Front Data (Python) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-front.json/index This Python snippet illustrates how to get marine weather front data using the requests library. It demonstrates setting the Authorization header for the GET request to the /v1/front.json endpoint. ```Python requests.get(\n "https://sea-api.wni.com/api/v1/front.json",\n headers={\n "Authorization": "Authorization"\n }\n) ``` -------------------------------- ### Retrieve Ice KML Data (JavaScript) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-ice-kml.xml/index Example of how to retrieve ice KML data using JavaScript's fetch API. This code snippet demonstrates making a GET request with an authorization header. ```javascript fetch('https://sea-api.wni.com/api/v1/ice-kml.xml?element=iceconc', { headers: { Authorization: 'Authorization' } }) ``` -------------------------------- ### Python Requests Request for GSF Point List Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-point-list-gsf.json/index Example of retrieving GSF Point List data using the Python requests library. This code demonstrates making a GET request with the necessary authorization header. ```Python requests.get( "https://sea-api.wni.com/api/v2/point-list-gsf.json", headers={ "Authorization": "Authorization" } ) ``` -------------------------------- ### Get QRT API Data (XML) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves QRT (Quality Reporting Tool) API data in XML format. ```HTTP GET /v2/qrt-api.xml ``` -------------------------------- ### Get CP Warranty Data (JSON) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves CP (Contractual Performance) warranty data in JSON format. ```HTTP GET /v1/cp-warranty.json ``` -------------------------------- ### Get QRT API Data (JSON) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves QRT (Quality Reporting Tool) API data in JSON format. ```HTTP GET /v2/qrt-api.json ``` -------------------------------- ### Retrieve Front and Storm Data (JSON/XML) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v2-sea-margin-port.json/index Get data related to weather fronts and global storms. Available in both JSON and XML formats for flexible integration. ```http GET /v1/front.json GET /v1/global-storm.json GET /v1/global-storm.xml ``` -------------------------------- ### Get Frontal System Data (JSON) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-composite-current.zip/index Retrieves frontal system data in JSON format. This endpoint provides information on weather fronts. ```HTTP GET /v1/front.json ``` -------------------------------- ### Retrieve Composite Current Data (Python) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-composite-current.grib/index Python example using the requests library to fetch composite current data. Demonstrates setting authorization headers and passing query parameters in a structured way. ```Python requests.get( "https://sea-api.wni.com/api/v2/composite-current.grib", headers={ "Authorization": "Authorization" }, params={ "element": "hocu", "date": "2024060912", "timestep": "000", "area": "ECS" } ) ``` -------------------------------- ### Retrieve Voyage Data (cURL) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2.1-voyage.json/index Example of how to fetch voyage data using cURL. This command sends a GET request to the API endpoint with specified headers and parameters. ```curl curl 'https://sea-api.wni.com/api/v2.1/voyage.json?report=a&version=vpsheet' \ --header 'Authorization: Authorization' ``` -------------------------------- ### Sample JSON Response for QRT Data Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-qrt-api.json/index This is a sample JSON response structure for the QRT (Quick Report Template) data retrieved from the Weathernews SEA API. It includes details about vessel updates and report information. ```json [ { "data": { "updated_time": "2018-04-14T12:00:00Z", "rob_hsgo": "0", "rob_lsdo": "0", "rob_lsfo": "0", "rob_lsgo": "243.50", "rob_totaldo": "0", "rob_totalfo": "870.86", "rob_totalgo": "243.50", "sent_time": "2018-04-23T05:37:37Z", "wni_ship_num": "xxxxxx" }, "disable_flag": "f" } ] ``` -------------------------------- ### Retrieve QRT Data using Python Requests Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-qrt-api.json/index This snippet demonstrates how to fetch QRT (Quick Report Template) data from the Weathernews SEA API using the Python requests library. It shows how to pass parameters and headers for the API call. ```python import requests requests.get( "https://sea-api.wni.com/api/v2/qrt-api.json", headers={ "Authorization": "Authorization" }, params={ "start": "20230901000000", "end": "20230930235959", "time_mode": "reporttime", "sent_start": "20230901000000", "sent_end": "20230930235959", "report_type": "ARR", "remarks": "on", "format_version": "9.0.2.28" } ) ``` -------------------------------- ### Retrieve Composite Current Data (JavaScript) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-composite-current.zip/index JavaScript example using the fetch API to retrieve composite current data. Includes setting the Authorization header and constructing the URL with required query parameters. ```JavaScript fetch('https://sea-api.wni.com/api/v2/composite-current.zip?element=hocu&date=2024060912×tep=000&area=ECS', { headers: { Authorization: 'Authorization' } }) ``` -------------------------------- ### POST hires-weather-on-track.xml with cURL, JavaScript, Python Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v1-hires-weather-on-track.xml/index Demonstrates how to send a POST request to the Sea Weather News API's hires-weather-on-track endpoint. This includes setting authorization headers, content type, and sending a JSON payload. The samples cover cURL, JavaScript (using fetch), and Python (using requests). ```cURL curl https://sea-api.wni.com/api/v1/hires-weather-on-track.xml \ --request POST \ --header 'Authorization: Authorization' \ --header 'Content-Type: application/json' \ --data '{ \ "name": "string", \ "status": "string" \ }' ``` ```JavaScript fetch('https://sea-api.wni.com/api/v1/hires-weather-on-track.xml', { method: 'POST', headers: { Authorization: 'Authorization', 'Content-Type': 'application/json' }, body: JSON.stringify({ name: 'string', status: 'string' }) }) ``` ```Python requests.post( "https://sea-api.wni.com/api/v1/hires-weather-on-track.xml", headers={ "Authorization": "Authorization", "Content-Type": "application/json" }, json={ "name": "string", "status": "string" } ) ``` -------------------------------- ### cURL Request for GSF Point List Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-point-list-gsf.json/index Example of how to fetch GSF Point List data using cURL. This command demonstrates making a GET request to the API endpoint with an authorization header. ```cURL curl https://sea-api.wni.com/api/v2/point-list-gsf.json \ --header 'Authorization: Authorization' ``` -------------------------------- ### Retrieve Composite Current Data (JavaScript) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-composite-current.grib/index JavaScript example using the Fetch API to retrieve composite current data. Shows how to set the Authorization header and construct the request URL with query parameters. ```JavaScript fetch('https://sea-api.wni.com/api/v2/composite-current.grib?element=hocu&date=2024060912×tep=000&area=ECS', { headers: { Authorization: 'Authorization' } }) ``` -------------------------------- ### JavaScript Fetch Request for GSF Point List Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-point-list-gsf.json/index Example of fetching GSF Point List data using JavaScript's fetch API. This code snippet shows how to make a GET request with an Authorization header. ```JavaScript fetch('https://sea-api.wni.com/api/v2/point-list-gsf.json', { headers: { Authorization: 'Authorization' } }) ``` -------------------------------- ### Monitor Engine Performance Metrics Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2.1-logbookp-data.json/index This section provides key performance indicators for the ship's engines. It includes metrics for engine RPM, slip percentage, main engine power in kW, and main engine load percentage. ```N/A average_rpm average_slip me_power main_engine_load ``` -------------------------------- ### API Authorization and Variables Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-global-hires-weather.zip/index This section demonstrates how to set up authorization and variables for API requests, likely for use in a testing or playground environment. ```JSON { "Authorization": "Authorization", "Variables": { "element": "uuu", "date": "", "timestep": "" } } ``` -------------------------------- ### Retrieve QRT Data using JavaScript Fetch API Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-qrt-api.json/index This snippet shows how to retrieve QRT (Quick Report Template) data from the Weathernews SEA API using the JavaScript Fetch API. It includes setting the Authorization header and constructing the query parameters. ```javascript fetch('https://sea-api.wni.com/api/v2/qrt-api.json?start=20230901000000&end=20230930235959&time_mode=reporttime&sent_start=20230901000000&sent_end=20230930235959&report_type=ARR&remarks=on&format_version=9.0.2.28', { headers: { Authorization: 'Authorization' } }) ``` -------------------------------- ### Fetch Marine Weather Data (JavaScript) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-marine-weather.zip/index Example of how to fetch marine weather data using JavaScript's fetch API. It includes the 'sigwh' element and requires an Authorization header. ```JavaScript fetch('https://sea-api.wni.com/api/v2/marine-weather.zip?element=sigwh', { headers: { Authorization: 'Authorization' } }) ``` -------------------------------- ### Get Sea Navigator Port Data (Python) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-sea-navigator-port.json/index This snippet illustrates how to request Sea Navigator Port Data using Python's requests library. It configures the GET request with the API endpoint, Authorization header, and portcode parameter. ```Python requests.get( "https://sea-api.wni.com/api/v2/sea-navigator-port.json", headers={ "Authorization": "Authorization" }, params={ "portcode": "AAB" } ) ``` -------------------------------- ### Retrieve Ice Berg Data (JavaScript) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-ice-berg.zip/index This JavaScript code snippet uses the Fetch API to get iceberg data from the Weathernews SEA API. It makes a GET request to the specified endpoint, including the Authorization header and a date query parameter. ```JavaScript fetch('https://sea-api.wni.com/api/v1/ice-berg.zip?date=2025060912', { headers: { Authorization: 'Authorization' } }) ``` -------------------------------- ### Retrieve High Resolution Weather Data (JavaScript) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-weather.zip/index Example using JavaScript's fetch API to retrieve high-resolution weather data from the Weathernews SEA API. Demonstrates how to set the Authorization header and query parameters. ```JavaScript fetch('https://sea-api.wni.com/api/v1/hires-weather.zip?element=npac_ssp&date=2024060912×tep=000', { headers: { Authorization: 'Authorization' } }) ``` -------------------------------- ### Get Logbook Data (JSON) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves logbook data in JSON format. ```HTTP GET /v2.1/logbookp-data.json ``` -------------------------------- ### POST Hires Weather On Track - JavaScript Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v1-hires-weather-on-track.json/index This JavaScript code snippet shows how to use the `fetch` API to make a POST request to the Sea WeatherNews API's hires-weather-on-track endpoint. It configures the request with the necessary headers and a JSON body containing the 'point' parameter. ```JavaScript fetch('https://sea-api.wni.com/api/v1/hires-weather-on-track.json', { method: 'POST', headers: { Authorization: 'Authorization', 'Content-Type': 'application/json' }, body: JSON.stringify({ point: 'string' }) }) ``` -------------------------------- ### Get Voyage Data (XML) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves voyage data in XML format. ```HTTP GET /v2.1/voyage.xml ``` -------------------------------- ### Get Voyage Data (JSON) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves voyage data in JSON format. ```HTTP GET /v2.1/voyage.json ``` -------------------------------- ### Fetch Global Storm Data - cURL, JavaScript, Python Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-global-storm.json/index Demonstrates how to fetch global storm data from the Sea Weather News API using cURL, JavaScript's fetch API, and Python's requests library. All examples show how to include the necessary Authorization header. ```cURL curl https://sea-api.wni.com/api/v1/global-storm.json \ --header 'Authorization: Authorization' ``` ```JavaScript fetch('https://sea-api.wni.com/api/v1/global-storm.json', { headers: { Authorization: 'Authorization' } }) ``` ```Python requests.get( "https://sea-api.wni.com/api/v1/global-storm.json", headers={ "Authorization": "Authorization" } ) ``` -------------------------------- ### Get Iceberg Data (ZIP) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves data related to icebergs in ZIP format. ```HTTP GET /v1/ice-berg.zip ``` -------------------------------- ### Fetch Global Storm Data with JavaScript Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-global-storm.xml/index Demonstrates how to fetch global storm data using the JavaScript fetch API. It includes setting the Authorization header for authentication. ```javascript fetch('https://sea-api.wni.com/api/v1/global-storm.xml', { headers: { Authorization: 'Authorization' } }) ``` -------------------------------- ### Get Composite Current Data (GRIB) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves composite current data in GRIB format. ```HTTP GET /v2/composite-current.grib ``` -------------------------------- ### Get Composite Current Data (ZIP) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves composite current data in ZIP format. ```HTTP GET /v2/composite-current.zip ``` -------------------------------- ### Retrieve Front Data (JavaScript) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-front.json/index This JavaScript code example shows how to retrieve marine weather front data using the fetch API. It includes setting the Authorization header for the request to the /v1/front.json endpoint. ```JavaScript fetch('https://sea-api.wni.com/api/v1/front.json', {\n headers: {\n Authorization: 'Authorization'\n }\n}) ``` -------------------------------- ### Get Ice KML Data (XML) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves ice-related data in KML format for mapping and visualization. ```HTTP GET /v1/ice-kml.xml ``` -------------------------------- ### Get High Resolution Weather Data (ZIP) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves high-resolution weather data in ZIP format. ```HTTP GET /v1/hires-weather.zip ``` -------------------------------- ### Retrieve Warranty Data (JSON) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v1-tonnage-allocation-planning.json/index Endpoints for retrieving CP warranty and enroute CP warranty data in JSON format. ```http GET /v1/cp-warranty.json GET /v1/enroute-cp-warranty.json ``` -------------------------------- ### Get Ice Pack Data (ZIP) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves data related to ice packs in ZIP format. ```HTTP GET /v1/ice-pack.zip ``` -------------------------------- ### Retrieve Front and Storm Data (JSON) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v1-tonnage-allocation-planning.json/index Endpoints for retrieving front and global storm data in JSON format. ```http GET /v1/front.json GET /v1/global-storm.json ``` -------------------------------- ### Get Sea Navigator Port Data (JSON) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves Sea Navigator port data in JSON format. ```HTTP GET /v2/sea-navigator-port.json ``` -------------------------------- ### Get Global Storm Data with Python Requests Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-global-storm.xml/index Illustrates how to use the Python requests library to fetch global storm data. The code snippet shows how to pass the Authorization header. ```python requests.get( "https://sea-api.wni.com/api/v1/global-storm.xml", headers={ "Authorization": "Authorization" } ) ``` -------------------------------- ### Fetch Logbook Data via JavaScript Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2.1-logbookp-data.json/index JavaScript code snippet using the fetch API to get logbook data from the Sea API. It demonstrates setting the Authorization header and constructing the request URL with query parameters for date range and key type. ```javascript fetch('https://sea-api.wni.com/api/v2.1/logbookp-data.json?start=20240701000000&end=20240706235959&key_type=SN', { headers: { Authorization: 'Authorization' } }) ``` -------------------------------- ### Get Logbook Data (JSON) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v2-weather-on-track.json/index Retrieve logbook data in JSON format. This endpoint provides historical records of operations. ```API GET /v2.1/logbookp-data.json ``` -------------------------------- ### Get Warranty Data (JSON) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v2-weather-on-track.json/index Retrieve warranty-related data in JSON format. This endpoint provides information on contractual agreements. ```API GET /v1/cp-warranty.json ``` ```API GET /v1/enroute-cp-warranty.json ``` -------------------------------- ### POST Request to Sea Margin Port API using Python Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v2-sea-margin-port.json/index This Python code snippet utilizes the `requests` library to perform a POST request to the Sea Margin Port API. It sets the required authorization and content-type headers and includes a placeholder for the request data. ```python import requests response = requests.post( "https://sea-api.wni.com/api/v2/sea-margin-port.json", headers={ "Authorization": "Authorization", "Content-Type": "application/json" }, data="string" ) ``` -------------------------------- ### Get Iceberg Data (ZIP) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-composite-current.zip/index Retrieves iceberg data in ZIP format. This endpoint provides information on iceberg locations. ```HTTP GET /v1/ice-berg.zip ``` -------------------------------- ### Weathernews SEA API: Contents Data Endpoints Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v2-sea-margin-area.json/index This snippet outlines the GET and POST endpoints for various content data, including voyage information, warranty details, and sea margin data. Data is available in JSON and XML formats. ```HTTP GET /v2.1/voyage.json GET /v2.1/voyage.xml GET /v1/cp-warranty.json GET /v1/enroute-cp-warranty.json GET /v2/qrt-api.json GET /v2/qrt-api.xml GET /v2.1/logbookp-data.json POST /v2/sea-margin-port.json POST /v2/sea-margin-area.json POST /v1/tonnage-allocation-planning.json ``` -------------------------------- ### Retrieve QRT Data using cURL Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-qrt-api.json/index This snippet demonstrates how to fetch QRT (Quick Report Template) data from the Weathernews SEA API using a cURL command. It includes parameters for date ranges, report types, and authentication. ```curl curl 'https://sea-api.wni.com/api/v2/qrt-api.json?start=20230901000000&end=20230930235959&time_mode=reporttime&sent_start=20230901000000&sent_end=20230930235959&report_type=ARR&remarks=on&format_version=9.0.2.28' \ --header 'Authorization: Authorization' ``` -------------------------------- ### Retrieve Composite Current Data (cURL) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-composite-current.grib/index Example of fetching composite current data using cURL. It demonstrates how to include authorization headers and query parameters for element, date, timestep, and area. ```cURL curl 'https://sea-api.wni.com/api/v2/composite-current.grib?element=hocu&date=2024060912×tep=000&area=ECS' \ --header 'Authorization: Authorization' ``` -------------------------------- ### Get Weather KML Data (XML) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves weather data in KML format, suitable for visualization in mapping applications. ```HTTP GET /v1/weather-kml.xml ``` -------------------------------- ### Get Global High Resolution Weather Data (GRIB) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves global high-resolution weather data in GRIB format. ```HTTP GET /v1/global-hires-weather.grib ``` -------------------------------- ### POST Request to Sea Margin Port API using JavaScript Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v2-sea-margin-port.json/index This JavaScript code snippet shows how to send a POST request to the Sea Margin Port API using the `fetch` API. It configures the request with appropriate headers and includes a placeholder for the request body. ```javascript fetch('https://sea-api.wni.com/api/v2/sea-margin-port.json', { method: 'POST', headers: { 'Authorization': 'Authorization', 'Content-Type': 'application/json' }, body: JSON.stringify('string') }) ``` -------------------------------- ### Get Global High Resolution Weather Data (ZIP) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves global high-resolution weather data in ZIP format. ```HTTP GET /v1/global-hires-weather.zip ``` -------------------------------- ### Fetch Marine Weather Data (Python) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-marine-weather.zip/index Example of how to fetch marine weather data using Python's requests library. It specifies the 'sigwh' element and includes the Authorization header. ```Python requests.get( "https://sea-api.wni.com/api/v2/marine-weather.zip", headers={ "Authorization": "Authorization" }, params={ "element": "sigwh" } ) ``` -------------------------------- ### Get High Resolution Marine Weather Data (ZIP) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves high-resolution marine weather data in ZIP format. ```HTTP GET /v1/hires-marine-weather.zip ``` -------------------------------- ### Get Weather on Track (Python) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v2-weather-on-track.json/index This Python code snippet demonstrates how to use the `requests` library to send a POST request to the Sea Weather News API's weather-on-track endpoint. It includes headers, parameters, and data for the request. ```Python requests.post( "https://sea-api.wni.com/api/v2/weather-on-track.json", headers={ "Authorization": "Authorization", "Content-Type": "application/json" }, params={ "point": "{\"Point\":[{\"date\":\"2025051401\",\"lat\":-555.116667,\"lon\":9591.516667}]}" }, data="string" ) ``` -------------------------------- ### Get Marine Weather Data (GRIB) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index Retrieves marine weather data in GRIB format for specific marine applications. ```HTTP GET /v2/marine-weather.grib ``` -------------------------------- ### Retrieve Voyage Data (JSON/XML) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v2-sea-margin-port.json/index Get voyage-related information, including voyage details and warranty information, in both JSON and XML formats. ```http GET /v2.1/voyage.json GET /v2.1/voyage.xml GET /v1/cp-warranty.json GET /v1/enroute-cp-warranty.json ``` -------------------------------- ### POST Weather-on-Track API (JavaScript) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/post-v2-weather-on-track.xml/index This snippet shows how to make a POST request to the Sea Weather News API's weather-on-track endpoint using JavaScript. It involves setting up request headers and providing data. ```JavaScript requests.post( "https://sea-api.wni.com/api/v2/weather-on-track.xml", headers={ "Authorization": "Authorization", "Content-Type": "application/json" }, data="string" ) ``` -------------------------------- ### Get Logbook Data (JSON) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-composite-current.zip/index Retrieves logbook data in JSON format. This endpoint provides access to vessel logbook entries. ```HTTP GET /v2.1/logbookp-data.json ``` -------------------------------- ### Retrieve Weather KML Data (Python) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-weather-kml.xml/index Example using Python's requests library to fetch marine weather data in KML format from the Weathernews SEA API. Demonstrates how to include the Authorization header and pass query parameters. ```Python requests.get( "https://sea-api.wni.com/api/v1/weather-kml.xml", headers={ "Authorization": "Authorization" }, params={ "element": "sigwh", "timestep": "000" } ) ``` -------------------------------- ### Request Port Forecast Data (cURL) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-port-forecast-gpf.json/index Demonstrates how to fetch port forecast data from the Sea Weather API using a cURL command. This example includes the required 'Authorization' header. ```curl curl https://sea-api.wni.com/api/v1/port-forecast-gpf.json \ --header 'Authorization: Authorization' ``` -------------------------------- ### Get Voyage Data (XML) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-composite-current.zip/index Retrieves voyage data in XML format. This endpoint provides information related to vessel voyages. ```HTTP GET /v2.1/voyage.xml ``` -------------------------------- ### Fetch High-Resolution Marine Weather Data (Python) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v1-hires-marine-weather.zip/index This Python code uses the `requests` library to make a GET request to the Sea Weather News API for high-resolution marine weather data. It demonstrates how to pass parameters and headers for authentication and data filtering. ```Python requests.get( "https://sea-api.wni.com/api/v1/hires-marine-weather.zip", headers={ "Authorization": "Authorization" }, params={ "element": "npac_sigwh", "date": "2024060912", "timestep": "000" } ) ``` -------------------------------- ### Get Voyage Data (JSON) Source: https://sea.weathernews.com/api-integrations/services_for_dev/operations/get-v2-composite-current.zip/index Retrieves voyage data in JSON format. This endpoint provides information related to vessel voyages. ```HTTP GET /v2.1/voyage.json ```