การคาดการณ์

ปลายทาง การคาดการณ์ จะให้ข้อมูลละอองเกสรรายวันได้สูงสุด 5 วัน คุณสามารถควบคุม ข้อมูลต่อไปนี้ที่แสดงต่อผู้ใช้ได้

  • จำนวนวันของการพยากรณ์
  • รหัสภาษาสำหรับฟิลด์ที่แปล
  • ขนาดหน้าการตอบกลับ
  • ข้อมูลโดยละเอียดเกี่ยวกับพืชในพื้นที่หนึ่งๆ และศักยภาพในการก่อให้เกิดอาการแพ้

โปรแกรมสำรวจ API ช่วยให้คุณส่งคำขอแบบเรียลไทม์เพื่อให้คุ้นเคยกับ API และตัวเลือก API ดังนี้

เกี่ยวกับคำขอการคาดการณ์

หากต้องการขอข้อมูลละอองเกสรรายวันโดยใช้ปลายทางการพยากรณ์อากาศ ให้ส่งคำขอ HTTP GET ไปยัง

https://pollen.googleapis.com/v1/forecast:lookup?key=YOUR_API_KEY

ใส่พารามิเตอร์ใน URL คำขอมีสถานที่ที่คุณต้องการรับพยากรณ์ละอองเกสร จำนวนวันพยากรณ์ และข้อมูลละอองเกสรที่จะรวมไว้ในการตอบกลับ

เกี่ยวกับการตอบกลับการคาดการณ์

เนื้อหา การตอบกลับ จะระบุรหัสภูมิภาคของพิกัดที่ขอและข้อมูลพยากรณ์อากาศรายวัน สำหรับแต่ละวันที่ขอ หากคุณขอข้อมูลมากกว่า 1 วัน เนื้อหาการตอบกลับจะมีโทเค็นเพื่อดึงข้อมูลหน้าถัดไปด้วย หากข้อมูลมีขนาดไม่พอดีกับขนาดหน้าที่ขอ

ส่วนเนื้อหาของการตอบกลับจะมีออบเจ็กต์ 3 รายการด้วย

  • DayInfo ระบุวันที่ของการพยากรณ์ที่แสดง พร้อมด้วย PollenTypeInfo และ PlantInfo

  • PollenTypeInfo ระบุช่วงเวลาของประเภทละอองเกสรที่มี (GRASS, TREE และ WEED) ดัชนีละอองเกสร และคำแนะนำด้านสุขภาพที่เกี่ยวข้อง ณ พิกัดที่ขอ

  • PlantInfo ระบุชื่อและคำอธิบายของพืช ซึ่งรวมถึงฤดูกาล ลักษณะ และ ปฏิกิริยาข้าม ณ พิกัดที่ขอ

พารามิเตอร์พื้นฐาน

ตัวอย่างคำขอ

โค้ดต่อไปนี้แสดงวิธีสร้างคำขอพื้นฐานสำหรับคำขอ forecast:lookup ในตัวอย่างนี้ คุณกำหนดตำแหน่งและจำนวนวันของข้อมูลละอองเกสร

curl -X GET "https://pollen.googleapis.com/v1/forecast:lookup?key=YOUR_API_KEY&location.longitude=35.32&location.latitude=32.32&days=1"

ตัวอย่างการตอบกลับ

การเรียกใช้ด้านบนจะสร้างการตอบกลับ JSON ต่อไปนี้

{
  "regionCode": "IL",
  "dailyInfo": [
    {
      "date": {
        "year": 2023,
        "month": 7,
        "day": 11
      },
      "pollenTypeInfo": [
        {
          "code": "GRASS",
          "displayName": "Grass",
          "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!"
          ]
        },
        {
          "code": "TREE",
          "displayName": "Tree",
          "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": "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",
          "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": "TREE",
            "family": "Betulaceae (the Birch family)",
            "season": "Late winter, spring",
            "specialColors": "The bark is usually whitish-gray, silver, or sometimes red.",
            "specialShapes": "Birch leaves are often triangular with jagged edges. The bark on most birch trees has horizontal dark streaks that look like scoring. Birch tree bark is also well-known for its paper-like texture and peeling nature.",
            "crossReaction": "Alder, Hazel, Hornbeam, Beech, Willow, and Oak pollen. In addition, there may be a higher risk for food allergies like hazelnuts, almonds, peanuts, pears, apples, cherries and carrots.",
            "picture": "https://storage.googleapis.com/pollen-pictures/birch_full.jpg",
            "pictureCloseup": "https://storage.googleapis.com/pollen-pictures/birch_closeup.jpg"
          }
        },
        {
          "code": "OLIVE",
          "displayName": "Olive"
        },
        {
          "code": "GRAMINALES",
          "displayName": "Grasses",
          "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": "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",
          "inSeason": true,
          "indexInfo": {
            "code": "UPI",
            "displayName": "Universal Pollen Index",
            "value": 0,
            "category": "None",
            "indexDescription": "Pollen levels are very low and are not likely to trigger allergic reactions",
            "color": {}
          },
          "plantDescription": {
            "type": "WEED",
            "family": "Asteraceae (the daisy family)",
            "season": "Late summer, fall",
            "specialColors": "None",
            "specialShapes": "The leaves are alternate or opposite, divided and lobed. The leaf margin is smooth or serrated.",
            "crossReaction": "Mugwort and Goldenrod as well as daisies such as Sunflower, Dandelion, and Chamomile.",
            "picture": "https://storage.googleapis.com/pollen-pictures/ragweed_full.jpg",
            "pictureCloseup": "https://storage.googleapis.com/pollen-pictures/ragweed_closeup.jpg"
          }
        },
        {
          "code": "ALDER",
          "displayName": "Alder"
        },
        {
          "code": "MUGWORT",
          "displayName": "Mugwort",
          "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": "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"
          }
        }
      ]
    }
  ]
}

พารามิเตอร์เพิ่มเติม

ตัวอย่างคำขอ

โค้ดต่อไปนี้แสดงวิธีสร้างคำขอสำหรับ forecast:lookup ใน ตัวอย่างนี้ คุณตั้งค่าสถานที่ วัน และภาษาตอบกลับ แล้วนำ คำอธิบายพืชออก

curl -X GET "https://pollen.googleapis.com/v1/forecast:lookup?key=YOUR_API_KEY&location.longitude=35.32&location.latitude=32.32&days=1&languageCode=fr&plantsDescription=false"

ตัวอย่างการตอบกลับ

การเรียกใช้ข้างต้นจะสร้างการตอบกลับ JSON ต่อไปนี้

{
  "regionCode": "IL",
  "dailyInfo": [
    {
      "date": {
        "year": 2023,
        "month": 7,
        "day": 11
      },
      "pollenTypeInfo": [
        {
          "code": "GRASS",
          "displayName": "Herbacée",
          "inSeason": true,
          "indexInfo": {
            "code": "UPI",
            "displayName": "Universal Pollen Index",
            "value": 1,
            "category": "Très faible",
            "indexDescription": "Les personnes extrêmement sensibles au pollen sont susceptibles de ressentir des symptômes.",
            "color": {
              "green": 0.61960787,
              "blue": 0.22745098
            }
          },
          "healthRecommendations": [
            "Les niveaux de pollen sont très faibles actuellement. La journée est idéale pour profiter du grand air !"
          ]
        },
        {
          "code": "TREE",
          "displayName": "Arbre",
          "inSeason": false,
          "indexInfo": {
            "code": "UPI",
            "displayName": "Universal Pollen Index",
            "value": 1,
            "category": "Très faible",
            "indexDescription": "Les personnes extrêmement sensibles au pollen sont susceptibles de ressentir des symptômes.",
            "color": {
              "green": 0.61960787,
              "blue": 0.22745098
            }
          },
          "healthRecommendations": [
            "Les niveaux de pollen sont très faibles actuellement. La journée est idéale pour profiter du grand air !"
          ]
        },
        {
          "code": "WEED",
          "displayName": "Herbacées",
          "inSeason": true,
          "indexInfo": {
            "code": "UPI",
            "displayName": "Universal Pollen Index",
            "value": 1,
            "category": "Très faible",
            "indexDescription": "Les personnes extrêmement sensibles au pollen sont susceptibles de ressentir des symptômes.",
            "color": {
              "green": 0.61960787,
              "blue": 0.22745098
            }
          },
          "healthRecommendations": [
            "Les niveaux de pollen sont très faibles actuellement. La journée est idéale pour profiter du grand air !"
          ]
        }
      ],
      "plantInfo": [
        {
          "code": "BIRCH",
          "displayName": "Bouleau",
          "inSeason": false,
          "indexInfo": {
            "code": "UPI",
            "displayName": "Universal Pollen Index",
            "value": 1,
            "category": "Très faible",
            "indexDescription": "Les personnes extrêmement sensibles au pollen sont susceptibles de ressentir des symptômes.",
            "color": {
              "green": 0.61960787,
              "blue": 0.22745098
            }
          }
        },
        {
          "code": "OLIVE",
          "displayName": "Olivier"
        },
        {
          "code": "GRAMINALES",
          "displayName": "Graminées",
          "inSeason": true,
          "indexInfo": {
            "code": "UPI",
            "displayName": "Universal Pollen Index",
            "value": 1,
            "category": "Très faible",
            "indexDescription": "Les personnes extrêmement sensibles au pollen sont susceptibles de ressentir des symptômes.",
            "color": {
              "green": 0.61960787,
              "blue": 0.22745098
            }
          }
        },
        {
          "code": "RAGWEED",
          "displayName": "Ambroisie",
          "inSeason": true,
          "indexInfo": {
            "code": "UPI",
            "displayName": "Universal Pollen Index",
            "value": 0,
            "category": "Aucun",
            "indexDescription": "Les niveaux de pollen sont très faibles et ont peu de risque de déclencher des réactions allergiques.",
            "color": {}
          }
        },
        {
          "code": "ALDER",
          "displayName": "Aulne"
        },
        {
          "code": "MUGWORT",
          "displayName": "Armoise",
          "inSeason": false,
          "indexInfo": {
            "code": "UPI",
            "displayName": "Universal Pollen Index",
            "value": 1,
            "category": "Très faible",
            "indexDescription": "Les personnes extrêmement sensibles au pollen sont susceptibles de ressentir des symptômes.",
            "color": {
              "green": 0.61960787,
              "blue": 0.22745098
            }
          }
        }
      ]
    }
  ]
}

ขีดจำกัดขนาดหน้า

ตัวอย่างคำขอ

โค้ดต่อไปนี้แสดงวิธีสร้างคำขอสำหรับ forecast:lookup ใน ตัวอย่างนี้ คุณตั้งค่าสถานที่ จำนวนวันที่พยากรณ์ (ในกรณีนี้คือ 4 วัน) และขีดจำกัดขนาดหน้าเป็น 1 คำขอนี้จะแสดงการคาดการณ์สำหรับวันแรกเท่านั้น การตอบกลับจะมีพร็อพเพอร์ตี้ nextPageToken ซึ่งคุณจะใช้ในคำขอที่ 2 เพื่อเข้าถึงวันที่ 2 จาก 4 วัน

curl -X GET "https://pollen.googleapis.com/v1/forecast:lookup?key=YOUR_API_KEY&location.longitude=35.32&location.latitude=32.32&days=4&pageSize=1"

ตัวอย่างการตอบกลับ

การเรียกใช้ด้านบนจะสร้างการตอบกลับ JSON ต่อไปนี้ ซึ่งรวมถึง nextPageToken คุณใช้ nextPageToken ในคำขอที่ 2 เพื่อเข้าถึงวันถัดไปในพยากรณ์อากาศ

{
  "regionCode": "IL",
  "dailyInfo": [
    {
      "date": {
        "year": 2023,
        "month": 7,
        "day": 14
      },
      "pollenTypeInfo": [
        {
          "code": "GRASS",
          "displayName": "Grass",
          "inSeason": true,
          "indexInfo": {
            "code": "UPI",
            "displayName": "Universal Pollen Index",
            "value": 2,
            "category": "Low",
            "indexDescription": "People with high allergy to pollen are likely to experience symptoms",
            "color": {
              "red": 0.5176471,
              "green": 0.8117647,
              "blue": 0.2
            }
          },
          "healthRecommendations": [
            "It's a good day for outdoor activities since pollen levels are low.",
            "Do you know which plants cause your pollen allergy? Check out the pollen data to be prepared."
          ]
        },
        {
          "code": "TREE",
          "displayName": "Tree",
          "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": "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",
          "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": "TREE",
            "family": "Betulaceae (the Birch family)",
            "season": "Late winter, spring",
            "specialColors": "The bark is usually whitish-gray, silver, or sometimes red.",
            "specialShapes": "Birch leaves are often triangular with jagged edges. The bark on most birch trees has horizontal dark streaks that look like scoring. Birch tree bark is also well-known for its paper-like texture and peeling nature.",
            "crossReaction": "Alder, Hazel, Hornbeam, Beech, Willow, and Oak pollen. In addition, there may be a higher risk for food allergies like hazelnuts, almonds, peanuts, pears, apples, cherries and carrots.",
            "picture": "https://storage.googleapis.com/pollen-pictures/birch_full.jpg",
            "pictureCloseup": "https://storage.googleapis.com/pollen-pictures/birch_closeup.jpg"
          }
        },
        {
          "code": "OLIVE",
          "displayName": "Olive"
        },
        {
          "code": "GRAMINALES",
          "displayName": "Grasses",
          "inSeason": true,
          "indexInfo": {
            "code": "UPI",
            "displayName": "Universal Pollen Index",
            "value": 2,
            "category": "Low",
            "indexDescription": "People with high allergy to pollen are likely to experience symptoms",
            "color": {
              "red": 0.5176471,
              "green": 0.8117647,
              "blue": 0.2
            }
          },
          "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",
          "inSeason": true,
          "indexInfo": {
            "code": "UPI",
            "displayName": "Universal Pollen Index",
            "value": 0,
            "category": "None",
            "indexDescription": "Pollen levels are very low and are not likely to trigger allergic reactions",
            "color": {}
          },
          "plantDescription": {
            "type": "WEED",
            "family": "Asteraceae (the daisy family)",
            "season": "Late summer, fall",
            "specialColors": "None",
            "specialShapes": "The leaves are alternate or opposite, divided and lobed. The leaf margin is smooth or serrated.",
            "crossReaction": "Mugwort and Goldenrod as well as daisies such as Sunflower, Dandelion, and Chamomile.",
            "picture": "https://storage.googleapis.com/pollen-pictures/ragweed_full.jpg",
            "pictureCloseup": "https://storage.googleapis.com/pollen-pictures/ragweed_closeup.jpg"
          }
        },
        {
          "code": "ALDER",
          "displayName": "Alder"
        },
        {
          "code": "MUGWORT",
          "displayName": "Mugwort",
          "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": "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"
          }
        }
      ]
    }
  ],
  "nextPageToken": "CAESdApadHlwZS5nb29nbGVhcGlzLm..."
}

หากต้องการเข้าถึงหน้า 2 ให้แทรก nextPageToken ในคำขอ การตอบกลับ มี nextPageToken ซึ่งคุณจะใช้เพื่อเข้าถึงวันที่ 3 ของ การพยากรณ์ได้

curl -X GET "https://pollen.googleapis.com/v1/forecast:lookup?key=YOUR_API_KEY&location.longitude=35.32&location.latitude=32.32&days=4&pageSize=1&pageToken=CAESdApadHlwZS5nb29nbGVhcGlzLm..."

คำตอบจะให้ข้อมูลเกี่ยวกับวันที่ 2 ของการพยากรณ์ละอองเกสร

{
  "regionCode": "IL",
  "dailyInfo": [
    {
      "date": {
        "year": 2023,
        "month": 7,
        "day": 15
      },
      "pollenTypeInfo": [
        {
          "code": "GRASS",
          "displayName": "Grass",
          "inSeason": true,
          "indexInfo": {
            "code": "UPI",
            "displayName": "Universal Pollen Index",
            "value": 2,
            "category": "Low",
            "indexDescription": "People with high allergy to pollen are likely to experience symptoms",
            "color": {
              "red": 0.5176471,
              "green": 0.8117647,
              "blue": 0.2
            }
          },
          "healthRecommendations": [
            "It's a good day for outdoor activities since pollen levels are low.",
            "Do you know which plants cause your pollen allergy? Check out the pollen data to be prepared."
          ]
        },
        {
          "code": "TREE",
          "displayName": "Tree",
          "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": "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",
          "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": "TREE",
            "family": "Betulaceae (the Birch family)",
            "season": "Late winter, spring",
            "specialColors": "The bark is usually whitish-gray, silver, or sometimes red.",
            "specialShapes": "Birch leaves are often triangular with jagged edges. The bark on most birch trees has horizontal dark streaks that look like scoring. Birch tree bark is also well-known for its paper-like texture and peeling nature.",
            "crossReaction": "Alder, Hazel, Hornbeam, Beech, Willow, and Oak pollen. In addition, there may be a higher risk for food allergies like hazelnuts, almonds, peanuts, pears, apples, cherries and carrots.",
            "picture": "https://storage.googleapis.com/pollen-pictures/birch_full.jpg",
            "pictureCloseup": "https://storage.googleapis.com/pollen-pictures/birch_closeup.jpg"
          }
        },
        {
          "code": "OLIVE",
          "displayName": "Olive"
        },
        {
          "code": "GRAMINALES",
          "displayName": "Grasses",
          "inSeason": true,
          "indexInfo": {
            "code": "UPI",
            "displayName": "Universal Pollen Index",
            "value": 2,
            "category": "Low",
            "indexDescription": "People with high allergy to pollen are likely to experience symptoms",
            "color": {
              "red": 0.5176471,
              "green": 0.8117647,
              "blue": 0.2
            }
          },
          "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",
          "inSeason": true,
          "indexInfo": {
            "code": "UPI",
            "displayName": "Universal Pollen Index",
            "value": 0,
            "category": "None",
            "indexDescription": "Pollen levels are very low and are not likely to trigger allergic reactions",
            "color": {}
          },
          "plantDescription": {
            "type": "WEED",
            "family": "Asteraceae (the daisy family)",
            "season": "Late summer, fall",
            "specialColors": "None",
            "specialShapes": "The leaves are alternate or opposite, divided and lobed. The leaf margin is smooth or serrated.",
            "crossReaction": "Mugwort and Goldenrod as well as daisies such as Sunflower, Dandelion, and Chamomile.",
            "picture": "https://storage.googleapis.com/pollen-pictures/ragweed_full.jpg",
            "pictureCloseup": "https://storage.googleapis.com/pollen-pictures/ragweed_closeup.jpg"
          }
        },
        {
          "code": "ALDER",
          "displayName": "Alder"
        },
        {
          "code": "MUGWORT",
          "displayName": "Mugwort",
          "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": "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"
          }
        }
      ]
    }
  ],
  "nextPageToken": "CAISdApadHlwZS5nb29nbGVhcGlzLm..."
}

ลองใช้งาน

โปรแกรมสำรวจ API ช่วยให้คุณส่งคำขอตัวอย่างได้ เพื่อให้คุ้นเคยกับ API และตัวเลือก API

  1. เลือกไอคอน API api ทางด้านขวาของหน้า

  2. แก้ไขพารามิเตอร์คำขอ (ไม่บังคับ)

  3. เลือกปุ่มดำเนินการ ในกล่องโต้ตอบ ให้เลือกบัญชี ที่ต้องการใช้เพื่อส่งคำขอ

  4. ในแผงโปรแกรมสำรวจ API ให้เลือกไอคอนเต็มหน้าจอ fullscreen เพื่อขยายหน้าต่างโปรแกรมสำรวจ API