Storm List
Get a list of tropical cyclones for the last 2 years in major ocean basins around the world.
Only the coastal areas of China are supported now, i.e.
basin=NP
| Interface code | Interface | Class |
|---|---|---|
| tropicalStormList | Storm list | StormListResponse |
Parameters
StormListParameter
-
basin(required)The basin where the storm needs to be queried. For now, only supportNP.ALNorth AtlanticEPEastern PacificNPNorthWest PacificSPSouthWestern PacificNINorth Indian North Indian OceanSISouth Indian South Indian Ocean
-
year(required)Support to query storm of this year and last year, e.g.,year=2020
Sample code
Swift
Task{
do {
let parameter = StormListParameter(basin: .NP, year: 2024)
let response = try await QWeather.instance
.tropicalStormList(parameter)
print(response)
} catch QWeatherError.errorResponse(let error) {
print(error)
} catch {
print(error)
}
}
Objective-C
StormListParameter *parameter = [StormListParameter instanceWithBasin:BasinNP year:2024];
[QWeatherObjc tropicalStormList:parameter completionHandler:^(StormListResponse * _Nullable response, NSError * _Nullable error) {
if (response) {
NSLog(@"%@", response.description);
}
if (error) {
NSLog(@"%@", error.localizedDescription);
}
}];
Response
StormListResponse
-
codeSee Status Code -
updateTimeAPI last update time -
fxLinkResponsive web page of this data, for embedded in website or APP -
storm.stormIdStorm ID -
storm.nameStorm name -
storm.basinThe basin of the storm -
storm.yearYear of the storm -
storm.isActiveWhether it is an active storm?1= Active and0= Stopped -
refer.sourcesData source and other statements, may be null -
refer.licenseData license, may be null