Bing Answer Box API

For some requests, Bing search includes a "Answer" block, typically on top of the page and before organic results. SerpApi is able to extract and make sense of this information.

API Examples

JSON structure overview

{
  ...
  "answer_box": [
    {
      "type": "String - Type of answer box (wellness)",
      // Answer box result has different JSON structure depends on which type is parsed
      // Refer to examples below to get to know more about the detail JSON structure
    },
  ],
  ...
}

Wellness

Wellness

JSON Example

{
  ...,
  "answer_box": {
    "type": "wellness",
    "title": "Banana",
    "nutrition_facts": {
      "macronutrients": {
        "total_fat": {
          "value": "0 g",
          "calorie_yield": "0 %",
          "daily_value": "0 %",
          "types": {
            "saturated_fat": {
              "value": "0 g",
              "daily_value": "0 %"
            },
            "polyunsaturated_fat": {
              "value": "0 g",
              "daily_value": "0 %"
            },
            "monounsaturated_fat": {
              "value": "0 g",
              "daily_value": "0 %"
            }
          }
        },
        "total_carbohydrate": {
          "value": "4 g",
          "calorie_yield": "97.56 %",
          "daily_value": "1 %",
          "types": {
            "dietary_fiber": {
              "value": "0.6 g",
              "daily_value": "2 %"
            },
            "sugar": {
              "value": "3 g",
              "daily_value": "0 %"
            }
          }
        }
        "protein":{
          "value": "0.9 g",
          "calorie_yield": "4.37 %",
          "daily_value": "1 %"
        },
        "extras": [
          "72",
          "Calories",
          "About 6 mins of running (6mph)"
        ]
      },
      "micronutrients":{
        "vitamin_b_6": {
          "value": "0.3 mg",
          "daily_value": "15%"
        },
        "vitamin_c": {
          "value": "7 mg",
          "daily_value": "11%"
        }
      },
      "type": "1 extra small (less than 6″ long) (81 g)"
      "see_more_link": "https://www.bing.com/search/?q=banana+nutrition+list&form=HEAFOO",
      "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=bing&q=banana+nutrition+list"
    },
    "benefits": {
      "snippet": "Here are 11 science-based health benefits of bananas.Bananas Contain Many Important NutrientsBananas Contain Nutrients That Moderate Blood Sugar LevelsBananas May Improve Digestive HealthBananas May Aid Weight LossBananas May Support Heart HealthBananas Contain Powerful AntioxidantsBananas May Help You Feel More FullRead more on healthline.com",
      "list": [
        "Bananas Contain Many Important Nutrients",
        "Bananas Contain Nutrients That Moderate Blood Sugar Levels",
        "Bananas May Improve Digestive Health",
        "Bananas May Aid Weight Loss",
        "Bananas May Support Heart Health",
        "Bananas Contain Powerful Antioxidants",
        "Bananas May Help You Feel More Full"
      ]
    },
    "side_effects": {
      "snippet": "Dangerous Side Effects of Eating Too Many Bananas, According to Science You may gain weight. Your blood sugar will spike. You may develop hyperkalemia. You may experience tooth decay. You may experience constipation. You may have migraines.Read more on eatthis.com",
      "list": [
        "You may gain weight.",
        "Your blood sugar will spike.",
        "You may develop hyperkalemia.",
        "You may experience tooth decay.",
        "You may experience constipation.",
        "You may have migraines."
      ]
    }
  },
  ...
}