{
  "info": {
    "name": "Ambee API",
    "description": {
      "content": "Ambee's environmental-intelligence REST API: air quality, pollen, weather, fire, soil, and NDVI/vegetation data. Authenticate with an x-api-key header.",
      "type": "text/plain"
    },
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "apikey",
    "apikey": [
      { "key": "key", "value": "x-api-key", "type": "string" },
      { "key": "value", "value": "{{apiKey}}", "type": "string" },
      { "key": "in", "value": "header", "type": "string" }
    ]
  },
  "variable": [
    { "key": "baseUrl", "value": "https://api.ambeedata.com" },
    { "key": "apiKey", "value": "" }
  ],
  "item": [
    {
      "name": "Air Quality",
      "item": [
        {
          "name": "Latest air quality by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/latest/by-lat-lng?lat=&lng=",
              "host": ["{{baseUrl}}"],
              "path": ["latest", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" }
              ]
            },
            "description": "Returns the most recent air quality reading (AQI and pollutant concentrations) for a coordinate."
          }
        },
        {
          "name": "Latest air quality by city",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/latest/by-city?city=",
              "host": ["{{baseUrl}}"],
              "path": ["latest", "by-city"],
              "query": [ { "key": "city", "value": "" } ]
            }
          }
        },
        {
          "name": "Latest air quality by postal code",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/latest/by-postal-code?postalCode=&countryCode=",
              "host": ["{{baseUrl}}"],
              "path": ["latest", "by-postal-code"],
              "query": [
                { "key": "postalCode", "value": "" },
                { "key": "countryCode", "value": "" }
              ]
            }
          }
        },
        {
          "name": "Historical air quality by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/history/by-lat-lng?lat=&lng=&from=&to=",
              "host": ["{{baseUrl}}"],
              "path": ["history", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" },
                { "key": "from", "value": "" },
                { "key": "to", "value": "" }
              ]
            }
          }
        },
        {
          "name": "Air quality forecast by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/forecast/aq/by-lat-lng?lat=&lng=",
              "host": ["{{baseUrl}}"],
              "path": ["forecast", "aq", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Pollen",
      "item": [
        {
          "name": "Latest pollen by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/latest/pollen/by-lat-lng?lat=&lng=",
              "host": ["{{baseUrl}}"],
              "path": ["latest", "pollen", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" }
              ]
            }
          }
        },
        {
          "name": "Historical pollen by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/history/pollen/by-lat-lng?lat=&lng=&from=&to=",
              "host": ["{{baseUrl}}"],
              "path": ["history", "pollen", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" },
                { "key": "from", "value": "" },
                { "key": "to", "value": "" }
              ]
            }
          }
        },
        {
          "name": "Pollen forecast by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/forecast/pollen/by-lat-lng?lat=&lng=",
              "host": ["{{baseUrl}}"],
              "path": ["forecast", "pollen", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" }
              ]
            }
          }
        },
        {
          "name": "120-hour pollen forecast by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/forecast/v2/pollen/120hr/by-lat-lng?lat=&lng=",
              "host": ["{{baseUrl}}"],
              "path": ["forecast", "v2", "pollen", "120hr", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Weather",
      "item": [
        {
          "name": "Latest weather by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/weather/latest/by-lat-lng?lat=&lng=&units=",
              "host": ["{{baseUrl}}"],
              "path": ["weather", "latest", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" },
                { "key": "units", "value": "" }
              ]
            }
          }
        },
        {
          "name": "Historical weather by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/weather/history/by-lat-lng?lat=&lng=&from=&to=",
              "host": ["{{baseUrl}}"],
              "path": ["weather", "history", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" },
                { "key": "from", "value": "" },
                { "key": "to", "value": "" }
              ]
            }
          }
        },
        {
          "name": "Weather forecast by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/weather/forecast/by-lat-lng?lat=&lng=",
              "host": ["{{baseUrl}}"],
              "path": ["weather", "forecast", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Fire",
      "item": [
        {
          "name": "Active wildfires by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/fire/latest/by-lat-lng?lat=&lng=",
              "host": ["{{baseUrl}}"],
              "path": ["fire", "latest", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" }
              ]
            }
          }
        },
        {
          "name": "Fire risk by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/fire/risk/by-lat-lng?lat=&lng=",
              "host": ["{{baseUrl}}"],
              "path": ["fire", "risk", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Soil",
      "item": [
        {
          "name": "Latest soil data by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/soil/latest/by-lat-lng?lat=&lng=",
              "host": ["{{baseUrl}}"],
              "path": ["soil", "latest", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" }
              ]
            }
          }
        },
        {
          "name": "Historical soil data by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/soil/history/by-lat-lng?lat=&lng=&from=&to=",
              "host": ["{{baseUrl}}"],
              "path": ["soil", "history", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" },
                { "key": "from", "value": "" },
                { "key": "to", "value": "" }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "NDVI",
      "item": [
        {
          "name": "Latest NDVI by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/ndvi/latest/by-lat-lng?lat=&lng=",
              "host": ["{{baseUrl}}"],
              "path": ["ndvi", "latest", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" }
              ]
            }
          }
        },
        {
          "name": "Historical NDVI by latitude and longitude",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/ndvi/history/by-lat-lng?lat=&lng=&from=&to=",
              "host": ["{{baseUrl}}"],
              "path": ["ndvi", "history", "by-lat-lng"],
              "query": [
                { "key": "lat", "value": "" },
                { "key": "lng", "value": "" },
                { "key": "from", "value": "" },
                { "key": "to", "value": "" }
              ]
            }
          }
        }
      ]
    }
  ]
}
