{
  "info": {
    "name": "Current & forecast (SBX-WTHR)",
    "description": "Current conditions, a 48-hour hourly and a 9-day daily forecast for any city or coordinate, with conditions in Turkish.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{SBX_API_KEY}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.servicebox.io",
      "type": "string"
    },
    {
      "key": "SBX_API_KEY",
      "value": "",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "List conditions",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/weather/conditions",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "weather",
            "conditions"
          ],
          "query": [],
          "variable": []
        },
        "description": "Every condition code the forecasts use, with English and Turkish names. Free.\n\nCredits: 0"
      }
    },
    {
      "name": "Current weather",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/weather/current",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "weather",
            "current"
          ],
          "query": [
            {
              "key": "cityId",
              "value": "string",
              "description": "A city id from the Cities API, e.g. 745044 (İstanbul).",
              "disabled": true
            },
            {
              "key": "lat",
              "value": "0",
              "description": "Latitude (WGS84), with `lon`.",
              "disabled": true
            },
            {
              "key": "lon",
              "value": "0",
              "description": "Longitude (WGS84), with `lat`.",
              "disabled": true
            },
            {
              "key": "timezone",
              "value": "string",
              "description": "IANA timezone for local times. Default: the city's, or the nearest city's for a point.",
              "disabled": true
            }
          ],
          "variable": []
        },
        "description": "The conditions now at a city or point: temperature, feels-like, humidity, dew point, pressure, clouds, wind and gusts, UV index, the next hour's precipitation and the condition (English and Turkish). From MET Norway's forecast model for this hour.\n\nCredits: 1"
      }
    },
    {
      "name": "Daily forecast",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/weather/forecasts/daily",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "weather",
            "forecasts",
            "daily"
          ],
          "query": [
            {
              "key": "cityId",
              "value": "string",
              "description": "A city id from the Cities API, e.g. 745044 (İstanbul).",
              "disabled": true
            },
            {
              "key": "lat",
              "value": "0",
              "description": "Latitude (WGS84), with `lon`.",
              "disabled": true
            },
            {
              "key": "lon",
              "value": "0",
              "description": "Longitude (WGS84), with `lat`.",
              "disabled": true
            },
            {
              "key": "timezone",
              "value": "string",
              "description": "IANA timezone for local times. Default: the city's, or the nearest city's for a point.",
              "disabled": true
            },
            {
              "key": "days",
              "value": "7",
              "description": "Days, 1–9.",
              "disabled": true
            }
          ],
          "variable": []
        },
        "description": "Day by day for up to 9 local calendar days from today (default 7): high, low, precipitation, strongest wind and the day's condition. Today covers only the hours still ahead.\n\nCredits: 1"
      }
    },
    {
      "name": "Hourly forecast",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/weather/forecasts/hourly",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "weather",
            "forecasts",
            "hourly"
          ],
          "query": [
            {
              "key": "cityId",
              "value": "string",
              "description": "A city id from the Cities API, e.g. 745044 (İstanbul).",
              "disabled": true
            },
            {
              "key": "lat",
              "value": "0",
              "description": "Latitude (WGS84), with `lon`.",
              "disabled": true
            },
            {
              "key": "lon",
              "value": "0",
              "description": "Longitude (WGS84), with `lat`.",
              "disabled": true
            },
            {
              "key": "timezone",
              "value": "string",
              "description": "IANA timezone for local times. Default: the city's, or the nearest city's for a point.",
              "disabled": true
            },
            {
              "key": "hours",
              "value": "24",
              "description": "Hours ahead, 1–48.",
              "disabled": true
            }
          ],
          "variable": []
        },
        "description": "Hour by hour for the next `hours` (1–48, default 24; MET gives hourly steps for about the next 2.5 days), with local times.\n\nCredits: 1"
      }
    }
  ]
}