丰富版生活指数
全球支持,逐小时更新
bash
curl "https://api.caiyunapp.com/v1/lifeindex/?token=TOKEN&lng=110.8840&lat=21.6594&fields=DressingIndex,WindColdIndex"fields可选参数见下方列表,默认为全部
json
{
"status": "ok",
"result": {
"meta": {
"created_at": 1619078405
},
"$LifeIndex": [
{
"datetime": "2021-04-22T00:00+08:00",
"level": 1,
"desc": "适宜",
"detail": "描述..."
}
]
}
}其中 $LifeIndex 支持类型如下:
AirConditionerIndex: 空调指数AllergyIndex: 过敏指数AnglingIndex: 钓鱼指数AQIIndex: 空气污染扩散条件指数BoatingIndex: 划船指数CarWashingIndex: 洗车指数ColdRiskIndex: 感冒指数ComfortIndex: 舒适度指数DatingIndex: 约会指数DressingIndex: 穿衣指数DrinkingIndex: 啤酒指数DryingIndex: 晾晒指数HairdressingIndex: 美发指数HeatstrokeIndex: 中暑指数KiteIndex: 放风筝指数MakeUpIndex: 化妆指数MoodIndex: 心情指数MorningExerciseIndex: 晨练指数NightLifeIndex: 夜生活指数RainGearIndex: 雨具指数RoadConditionIndex: 路况指数ShoppingIndex: 逛街指数SportIndex: 运动指数TrafficIndex: 路况指数TravelIndex: 旅游指数UltravioletIndex: 紫外线指数/防晒指数WashClothesIndex: 洗衣指数WindColdIndex: 风寒指数StreetStallIndex: 摆摊指数TakeoutIndex: 送外卖指数CyclingIndex: 骑行指数
meta 字段用于描述一些基本元数据,目前 created_at 表示当前请求的生活指数数据的生成时间