{
  "info": {
    "name": "Nöbetçi Eczane (SBX-ECZ)",
    "description": "81 il ve yaklaşık 960 ilçede 30 binden fazla eczane (nöbetçi ve normal); nöbet durumu ve nöbet saat aralığıyla, konumdan en-yakın-nokta araması dahil, günde 3 defaya kadar güncellenir.",
    "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 cities",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/pharmacy/cities",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "pharmacy",
            "cities"
          ],
          "query": [],
          "variable": []
        },
        "description": "All 81 provinces with pharmacy and on-duty counts, sorted by pharmacy count descending. A city's `id` is its name, which is what `city=` accepts. Not paged: the whole list in one answer.\n\nCredits: 0"
      }
    },
    {
      "name": "List districts",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/pharmacy/districts",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "pharmacy",
            "districts"
          ],
          "query": [
            {
              "key": "city",
              "value": "string",
              "description": "Restrict to districts of this city (case- and accent-insensitive). Omit to list all districts nationwide.",
              "disabled": true
            }
          ],
          "variable": []
        },
        "description": "Districts (roughly 960 nationwide) with pharmacy and on-duty counts, optionally filtered to one city. A district's `id` is its name; `cityId` is its city's. Not paged: the whole list in one answer.\n\nCredits: 0"
      }
    },
    {
      "name": "Search pharmacies",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/pharmacy/pharmacies",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "pharmacy",
            "pharmacies"
          ],
          "query": [
            {
              "key": "city",
              "value": "string",
              "description": "Filter by city name (case- and accent-insensitive). Up to 120 characters.",
              "disabled": true
            },
            {
              "key": "district",
              "value": "string",
              "description": "Filter by district name (case- and accent-insensitive). Up to 120 characters.",
              "disabled": true
            },
            {
              "key": "name",
              "value": "string",
              "description": "Turkish-aware substring match on pharmacy name. Up to 120 characters. `q` is an alias for this parameter.",
              "disabled": true
            },
            {
              "key": "q",
              "value": "string",
              "description": "Alias for `name`.",
              "disabled": true
            },
            {
              "key": "duty",
              "value": "true",
              "description": "Filter to on-duty (`true`) or off-duty (`false`) pharmacies. Omit to return both.",
              "disabled": true
            },
            {
              "key": "activelyOnDuty",
              "value": "true",
              "description": "`true` = duty shift active now (Europe/Istanbul, start inclusive, end exclusive); `false` = not active now. Such answers carry `Cache-Control: no-store`, no `ETag`, and are never answered `304`. `false` does not mean closed.",
              "disabled": true
            },
            {
              "key": "sort",
              "value": "id",
              "description": "Sort order for the result set.",
              "disabled": true
            },
            {
              "key": "limit",
              "value": "50",
              "description": "Maximum number of items on this page.",
              "disabled": true
            },
            {
              "key": "cursor",
              "value": "string",
              "description": "Opaque; the `next_cursor` of the previous page. Keep every other parameter unchanged, or the call is a 400.",
              "disabled": true
            }
          ],
          "variable": []
        },
        "description": "All pharmacies (on-duty and regular) matching the given filters.\n\nCredits: 1"
      }
    },
    {
      "name": "Find nearby pharmacies",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/pharmacy/pharmacies/nearby?lat=0&lon=0",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "pharmacy",
            "pharmacies",
            "nearby"
          ],
          "query": [
            {
              "key": "lat",
              "value": "0",
              "description": "Latitude of the search center (WGS84).",
              "disabled": false
            },
            {
              "key": "lon",
              "value": "0",
              "description": "Longitude of the search center (WGS84).",
              "disabled": false
            },
            {
              "key": "radiusKm",
              "value": "5",
              "description": "Search radius in kilometers.",
              "disabled": true
            },
            {
              "key": "city",
              "value": "string",
              "description": "Filter by city name (case- and accent-insensitive). Up to 120 characters.",
              "disabled": true
            },
            {
              "key": "district",
              "value": "string",
              "description": "Filter by district name (case- and accent-insensitive). Up to 120 characters.",
              "disabled": true
            },
            {
              "key": "name",
              "value": "string",
              "description": "Turkish-aware substring match on pharmacy name. Up to 120 characters. `q` is an alias for this parameter.",
              "disabled": true
            },
            {
              "key": "q",
              "value": "string",
              "description": "Alias for `name`.",
              "disabled": true
            },
            {
              "key": "duty",
              "value": "true",
              "description": "Filter to on-duty (`true`) or off-duty (`false`) pharmacies. Omit to return both.",
              "disabled": true
            },
            {
              "key": "activelyOnDuty",
              "value": "true",
              "description": "`true` = duty shift active now (Europe/Istanbul, start inclusive, end exclusive); `false` = not active now. Such answers carry `Cache-Control: no-store`, no `ETag`, and are never answered `304`. `false` does not mean closed.",
              "disabled": true
            },
            {
              "key": "limit",
              "value": "50",
              "description": "Maximum number of items on this page.",
              "disabled": true
            },
            {
              "key": "cursor",
              "value": "string",
              "description": "Opaque; the `next_cursor` of the previous page. Keep every other parameter unchanged, or the call is a 400.",
              "disabled": true
            }
          ],
          "variable": []
        },
        "description": "Pharmacies within a radius of a coordinate, nearest first and annotated with `distanceKm`. Pages through at most the 500 nearest: at 500 `next_cursor` is null.\n\nCredits: 2"
      }
    },
    {
      "name": "List on-duty pharmacies",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/pharmacy/pharmacies/on-duty",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "pharmacy",
            "pharmacies",
            "on-duty"
          ],
          "query": [
            {
              "key": "city",
              "value": "string",
              "description": "Filter by city name (case- and accent-insensitive). Up to 120 characters.",
              "disabled": true
            },
            {
              "key": "district",
              "value": "string",
              "description": "Filter by district name (case- and accent-insensitive). Up to 120 characters.",
              "disabled": true
            },
            {
              "key": "name",
              "value": "string",
              "description": "Turkish-aware substring match on pharmacy name. Up to 120 characters. `q` is an alias for this parameter.",
              "disabled": true
            },
            {
              "key": "q",
              "value": "string",
              "description": "Alias for `name`.",
              "disabled": true
            },
            {
              "key": "activelyOnDuty",
              "value": "true",
              "description": "`true` = duty shift active now (Europe/Istanbul, start inclusive, end exclusive); `false` = not active now. Such answers carry `Cache-Control: no-store`, no `ETag`, and are never answered `304`. `false` does not mean closed.",
              "disabled": true
            },
            {
              "key": "limit",
              "value": "50",
              "description": "Maximum number of items on this page.",
              "disabled": true
            },
            {
              "key": "cursor",
              "value": "string",
              "description": "Opaque; the `next_cursor` of the previous page. Keep every other parameter unchanged, or the call is a 400.",
              "disabled": true
            }
          ],
          "variable": []
        },
        "description": "Pharmacies currently on duty, sorted by city. Always returns on-duty pharmacies only — the shared `duty` filter does not apply here.\n\nCredits: 1"
      }
    },
    {
      "name": "Get a pharmacy by id",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/pharmacy/pharmacies/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "pharmacy",
            "pharmacies",
            ":id"
          ],
          "query": [],
          "variable": [
            {
              "key": "id",
              "value": "1",
              "description": "Positive integer pharmacy id."
            }
          ]
        },
        "description": "A single pharmacy by its numeric id.\n\nCredits: 1"
      }
    }
  ]
}