花粉预报API对于寻找特定地理位置花粉水平详细信息的用户来说是非常宝贵的。该API旨在提供准确的花粉预报,允许用户输入地理参数,如纬度和经度,以及一到五天的预报区间。作为回报,用户可以获得关于花粉类型、季节状态和健康建议的全面数据,以有效管理过敏症状。
通过向花粉预报API发出请求,用户可以期待收到一个包含指定位置每日花粉信息的结构化响应。每个响应都包括有关日期、该地区盛行的不同类型花粉以及基于报告花粉水平的相关健康建议的详细信息。这些信息对于过敏患者至关重要,因为它帮助他们为户外活动做好准备,并主动管理他们的症状。
除了花粉类型信息外,该API还提供一个通用花粉指数(UPI),将各种花粉类型的数据整合为一个单一的指数。该指数按等级排列,以指示过敏风险水平,使用户能够快速评估他们的暴露风险。例如,极低的UPI值表明花粉存在最少,这意味着适合进行户外活动。相反,高UPI则表示花粉水平显著,这可能会引发敏感个体的过敏症状。
要使用此端点,您必须指明纬度和经度,以及预报天数(您可以选择1到5之间的任意数字)。
花粉数据 - 端点功能
| 对象 | 描述 |
|---|---|
location.longitude |
[必需] Indicates a longitude. |
location.latitude |
[必需] Indicates a latitude. |
days |
[必需] Indicates a forecast value of days (1 to 5) |
{
"dailyInfo": [
{
"date": {
"year": 2024,
"month": 10,
"day": 15
},
"pollenTypeInfo": [
{
"code": "GRASS",
"displayName": "Grass",
"inSeason": false,
"indexInfo": {
"code": "UPI",
"displayName": "Universal Pollen Index",
"value": 1,
"category": "Very Low",
"indexDescription": "People with very high allergy to pollen are likely to experience symptoms",
"color": {
"green": 0.61960787,
"blue": 0.22745098
}
},
"healthRecommendations": [
"Pollen levels are very low right now. It's a great day to enjoy the outdoors!"
]
},
{
"code": "TREE",
"displayName": "Tree"
},
{
"code": "WEED",
"displayName": "Weed",
"inSeason": true,
"indexInfo": {
"code": "UPI",
"displayName": "Universal Pollen Index",
"value": 1,
"category": "Very Low",
"indexDescription": "People with very high allergy to pollen are likely to experience symptoms",
"color": {
"green": 0.61960787,
"blue": 0.22745098
}
},
"healthRecommendations": [
"Pollen levels are very low right now. It's a great day to enjoy the outdoors!"
]
}
],
"plantInfo": [
{
"code": "BIRCH",
"displayName": "Birch"
},
{
"code": "OLIVE",
"displayName": "Olive"
},
{
"code": "GRAMINALES",
"displayName": "Grasses",
"inSeason": false,
"indexInfo": {
"code": "UPI",
"displayName": "Universal Pollen Index",
"value": 1,
"category": "Very Low",
"indexDescription": "People with very high allergy to pollen are likely to experience symptoms",
"color": {
"green": 0.61960787,
"blue": 0.22745098
}
},
"plantDescription": {
"type": "GRASS",
"family": "Poaceae",
"season": "Late spring, summer",
"specialColors": "None",
"specialShapes": "The leaves are alternate, long and narrow and the leaf margin is smooth.",
"crossReaction": "Plantain (Plantago) pollen. In addition, there may be a higher risk for food allergies like melons, oranges, tomatoes, peanuts, soy, potato, and other legumes.",
"picture": "https://storage.googleapis.com/pollen-pictures/graminales_full.jpg",
"pictureCloseup": "https://storage.googleapis.com/pollen-pictures/graminales_closeup.jpg"
}
},
{
"code": "RAGWEED",
"displayName": "Ragweed"
},
{
"code": "ALDER",
"displayName": "Alder"
},
{
"code": "MUGWORT",
"displayName": "Mugwort",
"inSeason": true,
"indexInfo": {
"code": "UPI",
"displayName": "Universal Pollen Index",
"value": 1,
"category": "Very Low",
"indexDescription": "People with very high allergy to pollen are likely to experience symptoms",
"color": {
"green": 0.61960787,
"blue": 0.22745098
}
},
"plantDescription": {
"type": "WEED",
"family": "Asteraceae (the daisy family)",
"season": "Late summer, fall",
"specialColors": "The leaves are green on the upper side and gray-green on the lower side.",
"specialShapes": "The leaves are alternate, divided and pinnate.",
"crossReaction": "Ragweed and Goldenrod pollen as well as daisies such as Sunflower, Dandelion and Chamomile. In addition, there may be a higher risk for food allergies like mustard, peach, celery and various herbs and spices.",
"picture": "https://storage.googleapis.com/pollen-pictures/mugwort_full.jpg",
"pictureCloseup": "https://storage.googleapis.com/pollen-pictures/mugwort_closeup.jpg"
}
}
]
}
]
}
curl --location --request GET 'https://zylalabs.com/api/5235/pollen+forecast+api/6710/pollen+data?location.longitude=35.31&location.latitude=32.36&days=1' --header 'Authorization: Bearer YOUR_API_KEY'
| 标头 | 描述 |
|---|---|
授权
|
[必需] 应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。 |
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
要使用此 API,用户必须指明经纬度坐标以及他们希望获取的预报天数,范围从 1 到 5
有不同的计划适合每个人,包括针对少量请求的免费试用,但其速率受到限制以防滥用服务
API接收纬度、经度和预测范围(1-5天),并提供详细的花粉信息,包括类型、水平和健康建议
除了每月的API调用次数,没有其他限制
花粉预测API提供实时花粉数据,包括基于地理位置的预测、类型、水平和健康建议
API返回每日花粉预测,包括花粉类型、季节状态、通用花粉指数(UPI)值以及基于指定地理坐标的花粉水平的健康建议
关键字段包括“日期”(年、月、日)、“花粉类型信息”(代码、显示名、季节性)、“指数信息”(代码、显示名、值、类别)和“健康建议”,它们根据花粉水平提供可操作的建议
响应结构为一个包含“dailyInfo”数组的JSON对象,每个条目包括日期和详细的花粉类型信息,使用户能够轻松获取每日预测
该API提供有关各种花粉类型的信息(例如,草类、树木、杂草)、它们的季节状态、指示过敏风险的UPI值以及根据花粉水平量身定制的健康建议
用户可以通过指定纬度、经度和预测天数(1-5)来自定义请求,从而根据他们的位置和需求提供定制的花粉预测
数据来自气象和环境监测系统,确保花粉预测基于实时观察和历史模式以保证准确性
典型的使用案例包括帮助过敏患者规划户外活动 通知健康专业人士关于花粉水平的信息 以及协助研究人员研究与花粉相关的健康影响
用户可以分析UPI值以评估过敏风险,遵循健康建议以管理症状,并跟踪花粉类型以根据预测数据为特定过敏触发因素做好准备
服务级别:
100%
响应时间:
192ms
服务级别:
100%
响应时间:
778ms
服务级别:
100%
响应时间:
4,497ms
服务级别:
100%
响应时间:
227ms
服务级别:
100%
响应时间:
398ms
服务级别:
100%
响应时间:
11,987ms
服务级别:
100%
响应时间:
872ms
服务级别:
100%
响应时间:
537ms
服务级别:
100%
响应时间:
1,953ms
服务级别:
100%
响应时间:
130ms
服务级别:
100%
响应时间:
990ms
服务级别:
100%
响应时间:
3,008ms
服务级别:
100%
响应时间:
1,141ms
服务级别:
100%
响应时间:
1,115ms
服务级别:
100%
响应时间:
1,024ms
服务级别:
100%
响应时间:
134ms
服务级别:
100%
响应时间:
937ms
服务级别:
100%
响应时间:
1,999ms
服务级别:
100%
响应时间:
1,241ms
服务级别:
100%
响应时间:
1,090ms