API Freaks logoAPI Freaks logo
CTRL+K

    APIs

  • Pricing
  • Resources
  • Tools

  • Contact us
CTRL+K
Sign InGet Started For Free
  • Credits Usage APIGET
  • IP Geolocation LookupGET
  • Bulk IP Geolocation LookupPOST
  • Domain WHOIS LookupGET
  • IP WHOIS LookupGET
  • ASN LookupGET
  • Domain WHOIS Historical LookupGET
  • Domain WHOIS Reverse LookupGET
  • Bulk Domain WHOIS LookupPOST
  • DNS LookupGET
  • Historical DNS LookupGET
  • Reverse DNS LookupGET
  • Bulk DNS LookupPOST
  • Email Checker APIPOST
  • SSL Certificate LookupGET
  • SSL Certificate Chain LookupGET
  • Domain AvailabilityGET
  • Domain Availability with SuggestionsGET
  • Bulk Domain AvailabilityPOST
  • Website ScreenshotGET
  • Bulk ScreenshotPOST
  • Latest Exchange RatesGET
  • Historical Exchange RatesGET
  • Currency Converter LatestGET
  • Currency Converter HistoricalGET
  • Currency Time SeriesGET
  • Currency FluctuationGET
  • Geolocalized Currency ConverterGET
  • Currency SupportedGET
  • Currency SymbolsGET
  • Currency Historical Data LimitsGET
  • Live Commodity PricesGET
  • Historical Commodity PricesGET
  • Commodity FluctuationGET
  • Commodity Time SeriesGET
  • Commodity SymbolsGET
  • Timezone LookupGET
  • Timezone ConverterGET
  • Live Weather APIGET
  • Weather Forecast APIGET
  • Historical Weather APIGET
  • Time Series Weather APIGET
  • Air Quality APIGET
  • Marine Weather APIGET
  • Flood Forecast APIGET
  • Bulk Live Weather APIPOST
  • User Agent ParserGET
  • Bulk User Agent ParserPOST
  • GeoDB CountriesGET
  • GeoDB Country DetailsGET
  • GeoDB RegionsGET
  • GeoDB SubregionsGET
  • GeoDB Admin LevelsGET
  • GeoDB Admin UnitsGET
  • GeoDB Admin Units DetailsGET
  • GeoDB CitiesGET
  • Zip Code LookupGET
  • ZIP Code Search CityGET
  • ZIP Code Search RegionGET
  • ZIP Code Search RadiusGET
  • ZIP Code DistancePOST
  • ZIP Code Distance MatchPOST
  • ZIP Code Bulk LookupPOST
  • Astronomy APIGET

Ready to get started?

Sign Up for Free

APIFreaks

API Catalog

  • Geolocation APIs
  • WHOIS APIs
  • DNS APIs
  • Email Validation APIs
  • SSL APIs
  • Domain APIs
  • Screenshot APIs
  • Currency APIs
  • Commodity APIs
  • Zipcode APIs
  • Weather APIs
  • Timezone APIs
  • User Agent APIs
  • Other APIs

Tools Catalog

  • Code Formatters
  • Data & Query Tools
  • Text Tools
  • Email Utilities
  • DNS Tools
  • Viewers
  • Converters
  • PDF Tools

Docs

  • APIs
  • Swagger Docs

Pricing & Accounts

  • Pricing
  • Sign up
  • Sign In

Company

  • About Us
  • Resources
  • Terms
  • Privacy

Copyright © 2025

Made in Pakistan

Marine Weather API

GET

https://api.apifreaks.com/v1.0/weather/marine

format
Format of the Response
startDatestring
Starting date for which to fetch aqi forecast data. Must follow YYYY-MM-DD format (e.g., 2025-08-25).
endDatestring
End date for which to fetch aqi forecast data. Must follow YYYY-MM-DD format (e.g., 2025-08-25).
locationstring
Specifies the target location. It can be a city name, place name, or a complete address (e.g., "Lahore", "Paris, France", "1600 Amphitheatre Parkway, Mountain View, CA").
latfloat
Latitude of the target location. Must be used together with "long".
longfloat
Longitude of the target location. Must be used together with "lat".
ipstring
IPv4 or IPv6 address used to infer location. Defaults to the requester’s public IP if not provided.
precisionstring
Set the data precision: "daily" for daily, "hourly" for hourly, and "minutely" for minute-level data. Defaults to "daily".
timezonestring
Specifies the timezone for returned results. Defaults to the resolved location’s timezone.
Media Type
JSON
Body

API Keystringrequired
Your private API key. Get it from API Freaks dashboard.

Sample Responses

400
400
400
400
400
400
LANGUAGE
Python
PHP
Java
Node
Ruby
JavaScript
C#
$ pip install requests
RESPONSE

Click Test it to start the request and see the response here!


API Response

FieldTypeRequirementDescription
locationObjectMandatory
Location object. Can be with coordinates, IP, or location string depending on input.
currentObjectOptional
current marine weather data of the provided location or requester IP.
forecast[date].dailyObjectOptional
An object containing daily marine weather metrics for each forecast date.
forecast[date].hourly[]ArrayOptional
An Array of objects containing hourly marine weather data for the specified date range.
forecast[date].minutely[]ArrayOptional
An Array of objects containing minute-level marine weather data for the specified date range.

"location" (when coordinates Provided) object contains the following fields.

FieldTypeRequirementDescription
latitudefloatMandatory
Geographic latitude of the given Coordinates
longitudefloatMandatory
Geographic longitude of the given Coordinates
country_namestringMandatory
Country name by Coordinates
state_provstringMandatory
State or province of given Coordinates
citystringMandatory
City of the given Coordinates
localitystringOptional
Local area, neighborhood, or village name
elevationfloatOptional
Elevation above sea level (meters)
timezonestringMandatory
Timezone identifier (e.g., GMT, PST, etc.)
timezone_abbreviationstringMandatory
Abbreviation of timezone (e.g., GMT, IST, etc.)

"location" (when IP Provided) object contains the following fields.

FieldTypeRequirementDescription
continent_codestringMandatory
Two-letter code of the continent
continent_namestringMandatory
Full name of the continent
country_code2stringMandatory
Two-letter ISO country code
country_code3stringMandatory
Three-letter ISO country code
country_namestringMandatory
Country name of the location
country_name_officialstringMandatory
Official long-form country name
is_eubooleanOptional
Indicates if the country is part of the European Union
state_provstringMandatory
State or province of the location
state_codestringOptional
ISO code for the state or province
districtstringOptional
District or administrative division
citystringMandatory
City of the location
zipcodestringOptional
Postal or ZIP code
latitudefloatMandatory
Geographic latitude of the location
longitudefloatMandatory
Geographic longitude of the location
localitystringOptional
Local area or neighborhood
elevationfloatOptional
Elevation above sea level (meters)
timezonestringMandatory
Timezone identifier
timezone_abbreviationstringMandatory
Abbreviation of timezone

"location" (when location Provided) object contains the following fields.

FieldTypeRequirementDescription
location_stringstringMandatory
Full address or free-text location input
country_namestringMandatory
Country name of the location
state_provstringMandatory
State or province of the location
citystringMandatory
City of the location
localitystringOptional
Local area, neighborhood, or village name
latitudefloatMandatory
Geographic latitude of the location
longitudefloatMandatory
Geographic longitude of the location
elevationfloatOptional
Elevation above sea level (meters)
timezonestringMandatory
Timezone identifier
timezone_abbreviationstringMandatory
Abbreviation of timezone

"current" object contains the following fields.

FieldTypeRequirementDescription
timestampStringMandatory
ISO 8601 formatted timestamp.
wave_heightNumberMandatory
Significant height of combined sea waves.
wave_directionNumberMandatory
Direction from which the combined waves are coming (degrees).
wave_periodNumberMandatory
Average period of combined sea waves.
wind_wave_heightNumberMandatory
Height of locally generated wind waves.
wind_wave_directionNumberMandatory
Direction from which the wind waves are coming (degrees).
wind_wave_periodNumberMandatory
Average period of locally generated wind waves.
swell_wave_heightNumberMandatory
Height of swell waves arriving from distant weather systems.
swell_wave_directionNumberMandatory
Direction from which the swell waves are coming (degrees).
swell_wave_periodNumberMandatory
Average period of swell waves.
sea_level_height_mslNumberMandatory
Sea level height relative to mean sea level (MSL).
sea_surface_temperatureNumberMandatory
Temperature of the ocean surface.
ocean_current_velocityNumberMandatory
Speed of the ocean current.
ocean_current_directionNumberMandatory
Direction of the ocean current (degrees).

The "forecast[date].daily" objects having the following fields.

FieldTypeRequirementDescription
timestampstringMandatory
ISO 8601 formatted timestamp.
wave_height_maxfloatMandatory
Maximum significant wave height observed during the day.
wave_direction_dominantintegerMandatory
Dominant direction of waves (degrees from north).
wave_period_maxfloatMandatory
Maximum wave period observed during the day.
wind_wave_height_maxfloatMandatory
Maximum wind-driven wave height during the day.
wind_wave_direction_dominantintegerMandatory
Dominant wind-wave direction (degrees from north).
wind_wave_period_maxfloatMandatory
Maximum wind-wave period during the day.
wind_wave_peak_period_maxfloatOptional
Maximum peak period of wind-driven waves during the day.
swell_wave_height_maxfloatMandatory
Maximum swell wave height during the day.
swell_wave_direction_dominantintegerMandatory
Dominant swell wave direction (degrees from north).
swell_wave_period_maxfloatMandatory
Maximum swell wave period during the day.
swell_wave_peak_period_maxfloatOptional
Maximum peak period of swell waves during the day.

"forecast[date].hourly[]" An Array of objects having the following fields.

FieldTypeRequirementDescription
timestampstringMandatory
ISO 8601 formatted timestamp.
wave_heightfloatMandatory
Significant wave height at the given time.
wave_directionintegerMandatory
Wave direction (degrees from north).
wave_periodfloatMandatory
Wave period at the given time.
wind_wave_heightfloatMandatory
Wind-driven wave height at the given time.
wind_wave_peak_periodfloatOptional
Peak period of wind-driven waves at the given time.
wind_wave_directionintegerMandatory
Wind-wave direction (degrees from north).
wind_wave_periodfloatMandatory
Wind-wave period at the given time.
swell_wave_heightfloatMandatory
Swell wave height at the given time.
swell_wave_directionintegerMandatory
Swell wave direction (degrees from north).
swell_wave_periodfloatMandatory
Swell wave period at the given time.
swell_wave_peak_periodfloatOptional
Peak period of swell waves at the given time.
sea_surface_temperaturefloatMandatory
Sea surface temperature.
sea_level_height_mslfloatMandatory
Sea level height relative to mean sea level.
ocean_current_velocityfloatMandatory
Speed of ocean current.
ocean_current_directionintegerMandatory
Direction of ocean current (degrees from north).

"forecast[date].minutely[]" An Array of objects having the following fields.

FieldTypeRequirementDescription
timestampstringMandatory
ISO 8601 formatted timestamp.
ocean_current_velocityfloatMandatory
Speed of ocean current.
ocean_current_directionintegerMandatory
Direction of ocean current (degrees from north).
sea_level_height_mslfloatMandatory
Sea level height relative to mean sea level.