Pollen API 常見問題
API 是否有頻率限制?
Pollen API 的預設頻率限制為每分鐘 6,000 次查詢。
我需要啟用計費功能嗎?
您必須具備有效的帳單帳戶,才能使用 Pollen API。請參閱啟用計費功能一節,瞭解如何設定具有帳單帳戶的專案。
如果查詢的地點不支援,會怎麼樣?
如果支援的國家/地區清單中不包含經緯度,回應將傳回 400 錯誤代碼,並附帶以下訊息:「無法取得此位置的資訊。請改用其他位置。」
如果該工廠沒有花粉資料,但支援的國家/地區,會發生什麼事?
如果所選位置和日期沒有花粉資料,回應會包含要求位置涵蓋的所有植物的植物代碼和顯示名稱,沒有其他資料欄位。例如:
"dailyInfo": [
{
"date": {
"year": 2023,
"month": 6,
"day": 22
},
"pollenTypeInfo": [
{
"code": "GRASS",
"displayName": "Grass"
},
{
"code": "TREE",
"displayName": "Tree"
},
{
"code": "WEED",
"displayName": "Weed"
}
],
"plantsInfo": [
{
"code": "HAZEL",
"displayName": "Hazel"
}
{
...
}
]
}
]
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-06-26 (世界標準時間)。
[null,null,["上次更新時間:2024-06-26 (世界標準時間)。"],[[["The Pollen API has a rate limit of 6,000 queries per minute and requires a valid billing account for usage."],["Requests for unsupported locations result in a 400 error, while requests for supported locations with missing pollen data return plant codes and display names without other data fields."]]],["The Pollen API has a default rate limit of 6,000 queries per minute, and a valid billing account is required for use. Querying unsupported locations results in a 400 error. If a location lacks pollen data but is within a supported country, the API returns the plant codes and display names without other data, such as pollen levels or counts. The response format shows date, plant type code, and display name.\n"]]