Storm List

Platform: API iOS Android

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 support NP.
    • AL North Atlantic
    • EP Eastern Pacific
    • NP NorthWest Pacific
    • SP SouthWestern Pacific
    • NI North Indian North Indian Ocean
    • SI South 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

  • code See Status Code
  • updateTime API last update time
  • fxLink Responsive web page of this data, for embedded in website or APP
  • storm.stormId Storm ID
  • storm.name Storm name
  • storm.basin The basin of the storm
  • storm.year Year of the storm
  • storm.isActive Whether it is an active storm? 1 = Active and 0 = Stopped
  • refer.sources Data source and other statements, may be null
  • refer.license Data license, may be null