Pollen API 常見問題
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
API 是否有使用頻率限制?
Pollen API 的預設頻率限制為每分鐘 6,000 次查詢。
我需要啟用帳單功能嗎?
您必須擁有有效的帳單帳戶,才能使用 Pollen API。請參閱「啟用計費功能」,瞭解如何為專案設定帳單帳戶。
如果查詢不支援的地點,會發生什麼情況?
如果緯度和經度不在支援的國家/地區清單中,回應會傳回 400 錯誤代碼,並顯示「Information is unavailable for this location. 請嘗試其他地點。」
如果植物沒有花粉資料,但該國家/地區支援這項功能,會發生什麼情況?
如果所選位置和日期沒有花粉資料,回應會包含所要求位置涵蓋的所有植物的植物代碼和顯示名稱,但不會包含其他資料欄位。例如:
"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 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-31 (世界標準時間)。
[null,null,["上次更新時間:2025-08-31 (世界標準時間)。"],[[["\u003cp\u003eThe Pollen API has a rate limit of 6,000 queries per minute and requires a valid billing account for usage.\u003c/p\u003e\n"],["\u003cp\u003eRequests 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.\u003c/p\u003e\n"]]],["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"],null,["# Pollen API FAQ\n\nIs there a rate limit on the API?\n---------------------------------\n\nFor Pollen API, there is a default rate limit of 6,000 queries per\nminute.\n\nDo I have to enable billing?\n----------------------------\n\nA valid billing account is required to use the Pollen API. See [Enable\nbilling](/maps/documentation/pollen/cloud-setup#billing) to set up your project with a billing account.\n\nWhat happens if I query a location that is not supported?\n---------------------------------------------------------\n\nIf the latitude and longitude are not covered in the [supported country\nlist](/maps/documentation/pollen/coverage), the response will return a 400 error\ncode with the message, \"Information is unavailable for this location. Please try\na different location.\"\n\nWhat happens if the plant has no pollen data but is supported in the country?\n-----------------------------------------------------------------------------\n\nIn cases where there is no pollen data for the selected location and date, the\nresponse includes the plant code and display name for all plants covered in the\nrequested location with no other data fields. For example: \n\n```json\n\"dailyInfo\": [\n {\n \"date\": {\n \"year\": 2023,\n \"month\": 6,\n \"day\": 22\n },\n \"pollenTypeInfo\": [\n {\n \"code\": \"GRASS\",\n \"displayName\": \"Grass\"\n },\n {\n \"code\": \"TREE\",\n \"displayName\": \"Tree\"\n },\n {\n \"code\": \"WEED\",\n \"displayName\": \"Weed\"\n }\n ],\n \"plantsInfo\": [\n {\n \"code\": \"HAZEL\",\n \"displayName\": \"Hazel\"\n }\n {\n ...\n }\n ]\n }\n]\n```"]]