Weather Indices Forecast

Platform: API iOS Android

Get weather indices forecast data for cities in China and around the world.

  • Weather Indices in China: Comfort Indices, Car Wash Indices, Dressing Indices, Cold Indices, Sports Indices, Travel Indices, UV Indices, Air Pollution Indices, Air Conditioning Indices, Allergy Indices, Sunglasses Indices, Makeup Indices, Sunshine Indices, Traffic Indices, Fishing Indices, Sun Protection Indices
  • Weather Indices worldwide: Sports Indices, Car Wash Indices, UV Indices, Fishing Indices
Interface code Interface Class
indices1d Today Weather Indices IndicesDailyResponse
indices3d Weather Indices 3-days forecast IndicesDailyResponse

Parameters

IndicesParameter

  • location(required)The location to be queried, support LocationID or comma-separated longitude and latitude (decimal, up to 2 decimal places), LocationID can be obtained by GeoAPI. Example: location=101010100 or location=116.41,39.92
  • type(required)Weather indices type ID, including car wash index, clothing index, fishing index, etc. You can get multiple types of weather indices at one time, and multiple types are separated by comma, e.g., type=3,5, and all indices type see Indices Info.
  • langMulti-language setting, please see Language to find out how our multi-language works and how to set up.

Sample code

/**
 * Get 2-day weather indices data
 */
public void indices1d(IndicesParameter parameter, Callback<IndicesDailyResponse> callback);

/**
 * Get 3-day weather indices data
 */
public void indices3d(IndicesParameter parameter, Callback<IndicesDailyResponse> callback);

Response

IndicesDailyResponse

  • code See Status Code
  • updateTime API last update time
  • fxLink Responsive web page of this data, for embedded in website or APP
  • daily.date Forecast date
  • daily.type Weather indices forecast type ID
  • daily.name Name of weather indices type
  • daily.level Weather indices level
  • daily.category Weather indices category name
  • daily.text Description of the weather indices, may be null
  • refer.sources Data source and other statements, may be null
  • refer.license Data license, may be null

Index type and level

See Indices Info.