{
  "info": {
    "name": "Nutrition & Calories (SBX-BESIN)",
    "description": "Calories and nutrition facts per 100 g for about 7,800 foods, searchable in Turkish and English, with portion weights and a meal and recipe calorie calculator.",
    "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": "Calculate a meal or recipe",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/nutrition/calculate?items=string",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "nutrition",
            "calculate"
          ],
          "query": [
            {
              "key": "items",
              "value": "string",
              "description": "e.g. `domates:150,beyaz peynir:50,zeytinyağı:10g` or `170457:150`.",
              "disabled": false
            }
          ],
          "variable": []
        },
        "description": "The nutrients of a meal or recipe: `items` lists `<food>:<grams>` pairs, comma-separated (up to 30). A food is an id or a name (the best match is used and named in the answer, so check it); grams as `150`, `150g` or `1.5kg`. Answers each item's amounts and `meta.totals`; `meta.partial` lists nutrients some item had no value for (their totals add the known ones). Use when the user asks for the calories or macros of a dish, a recipe or a day's meals.\n\nCredits: 1"
      }
    },
    {
      "name": "List food categories",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/nutrition/categories",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "nutrition",
            "categories"
          ],
          "query": [],
          "variable": []
        },
        "description": "The 25 food categories (vegetables, fruits, legumes, dairy and eggs, meats, fish…) in English and Turkish with how many foods each has. Free.\n\nCredits: 0"
      }
    },
    {
      "name": "Search foods",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/nutrition/foods",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "nutrition",
            "foods"
          ],
          "query": [
            {
              "key": "q",
              "value": "string",
              "description": "Words to find at the start of words of the Turkish or English names, Turkish letters optional.",
              "disabled": true
            },
            {
              "key": "category",
              "value": "string",
              "description": "A category id from /nutrition/categories, e.g. vegetables.",
              "disabled": true
            },
            {
              "key": "limit",
              "value": "50",
              "description": "Items per page, 1–200.",
              "disabled": true
            },
            {
              "key": "cursor",
              "value": "string",
              "description": "The `next_cursor` of the previous page, with the same filters.",
              "disabled": true
            }
          ],
          "variable": []
        },
        "description": "About 7,800 foods with calories, protein, fat, carbohydrate, sugars, fibre and salt per 100 g. Search with `q` in Turkish or English (Turkish letters optional: `domates`, `tomato`, `tavuk gogsu`, `beyaz peynir`); the everyday food comes first (raw before prepared). Narrow with `category`. Use when the user asks how many calories or how much protein, fat or carbohydrate a food has, or to find a food's id for /nutrition/foods/{id} or /nutrition/calculate.\n\nCredits: 1"
      }
    },
    {
      "name": "Get a food",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/nutrition/foods/:id",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "nutrition",
            "foods",
            ":id"
          ],
          "query": [],
          "variable": [
            {
              "key": "id",
              "value": "1",
              "description": "A food id from /nutrition/foods, e.g. 170457."
            }
          ]
        },
        "description": "One food: every nutrient per 100 g (energy, macronutrients, fats incl. saturated, trans, cholesterol and omega-3, sugars, fibre, sodium and salt, 9 minerals, 13 vitamins, caffeine) and its household portions with their weight (e.g. 1 medium tomato = 123 g). Use after a search when the user wants vitamins, minerals or a portion's weight.\n\nCredits: 1"
      }
    },
    {
      "name": "List nutrients",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/nutrition/nutrients",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "nutrition",
            "nutrients"
          ],
          "query": [],
          "variable": []
        },
        "description": "The nutrients served — key, English and Turkish name, unit and group — and which of them lists carry. Free.\n\nCredits: 0"
      }
    }
  ]
}