Najczęstsze pytania dotyczące interfejsu Pollen API
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Czy interfejs API ma limit liczby żądań?
W przypadku interfejsu Pollen API domyślny limit to 6000 zapytań na minutę.
Czy muszę włączyć płatności?
Aby korzystać z interfejsu Pollen API, musisz mieć ważne konto rozliczeniowe. Aby skonfigurować projekt z kontem rozliczeniowym, zapoznaj się z artykułem Włączanie płatności.
Co się stanie, jeśli zapytam o lokalizację, która nie jest obsługiwana?
Jeśli szerokość i długość geograficzna nie są uwzględnione na liście obsługiwanych krajów, w odpowiedzi pojawi się kod błędu 400 z komunikatem „Informacje o tej lokalizacji są niedostępne. Spróbuj w innym miejscu”.
Co się stanie, jeśli roślina nie ma danych o pyleniu, ale jest obsługiwana w danym kraju?
Jeśli dla wybranej lokalizacji i daty nie ma danych o pyłkach, odpowiedź zawiera kod rośliny i nazwę wyświetlaną wszystkich roślin występujących w wybranej lokalizacji, ale nie zawiera innych pól danych. Na przykład:
"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"
}
{
...
}
]
}
]
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-08-31 UTC.
[null,null,["Ostatnia aktualizacja: 2025-08-31 UTC."],[[["\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```"]]