Currents
Global currents data for the next 10 days, including currents speed and direction.
Request URL
https://api.qweather.com/v7/ocean/currents
Request Parameters
All parameters are separated by &
. If no optional parameters are set, the default value will be used.
-
location
(required)The currents station to be queried, need LocationID and LocationID can be obtained by POI Lookup. For example:location=P66981
-
date
(required)Set the date, up to 10 days in the future (including today). The date format is yyyyMMdd. Eexample:date=20200531
Request Example
Replace your_token
with your JWT or learn more about Authentication
Response
The response is in JSON format and is Gzip compressed.
{
"code": "200",
"updateTime": "2021-02-16T05:02+07:00",
"fxLink": "https://www.qweather.com",
"currentsTable": [
{
"dir360": "293",
"fxTime": "2021-03-10T02:27+07:00",
"speedMax": "6.0"
},
{
"dir360": "293",
"fxTime": "2021-03-10T08:03+07:00",
"speedMax": "60.0"
},
{
"dir360": "113",
"fxTime": "2021-03-10T15:33+07:00",
"speedMax": "91.0"
},
{
"dir360": "293",
"fxTime": "2021-03-10T22:40+07:00",
"speedMax": "41.0"
}
],
"currentsHourly": [
{
"dir360": "293",
"fxTime": "2021-03-10T00:00+07:00",
"speed": "22.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T01:00+07:00",
"speed": "13.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T02:00+07:00",
"speed": "7.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T03:00+07:00",
"speed": "7.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T04:00+07:00",
"speed": "15.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T05:00+07:00",
"speed": "28.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T06:00+07:00",
"speed": "43.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T07:00+07:00",
"speed": "55.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T08:00+07:00",
"speed": "60.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T09:00+07:00",
"speed": "55.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T10:00+07:00",
"speed": "39.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T11:00+07:00",
"speed": "13.000"
},
{
"dir360": "113",
"fxTime": "2021-03-10T12:00+07:00",
"speed": "19.000"
},
{
"dir360": "113",
"fxTime": "2021-03-10T13:00+07:00",
"speed": "49.000"
},
{
"dir360": "113",
"fxTime": "2021-03-10T14:00+07:00",
"speed": "75.000"
},
{
"dir360": "113",
"fxTime": "2021-03-10T15:00+07:00",
"speed": "89.000"
},
{
"dir360": "113",
"fxTime": "2021-03-10T16:00+07:00",
"speed": "90.000"
},
{
"dir360": "113",
"fxTime": "2021-03-10T17:00+07:00",
"speed": "77.000"
},
{
"dir360": "113",
"fxTime": "2021-03-10T18:00+07:00",
"speed": "54.000"
},
{
"dir360": "113",
"fxTime": "2021-03-10T19:00+07:00",
"speed": "25.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T20:00+07:00",
"speed": "3.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T21:00+07:00",
"speed": "26.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T22:00+07:00",
"speed": "38.000"
},
{
"dir360": "293",
"fxTime": "2021-03-10T23:00+07:00",
"speed": "40.000"
}
],
"refer": {
"sources": [
"qweather.com"
],
"license": [
"QWeather Developers License"
]
}
}
-
code
See Status Code -
updateTime
API last update time -
fxLink
Responsive web page of this data, for embedded in website or APP -
currentsTable.fxTime
Maximum speed time -
currentsTable.speedMax
Maximum speed, cm/sec -
currentsTable.dir360
Currents direction in azimuth degree -
currentsHourly.fxTime
Hourly forecast time -
currentsHourly.speed
Currents speed, cm/sec -
currentsHourly.dir360
Currents direction in azimuth degree -
refer.sources
Data source and other statements, may be null -
refer.license
Data license, may be null