Google Direct Answer Box API

/ Home / Google Search API / Answer Box

Google searches that may be answered directly are getting direct answers boxes. SerpApi is able to scrape, extract, and make sense of several kind of answer boxes. Contact us if the one answer box you are looking for is not supported yet.

SerpApi "Direct Answer Box" JSON

{
  ...
  "answer-box": [
    {
      "type": "String - Type of answer box (calculator, organic result, converter, etc.)",
      "result": "String - When the answer box can be inlined, the actual answer."
    },
  ...
}

Calculator Answer Box

Calculator Answer Box

JSON Example

{
  ...
  "answer_box": {
    "type": "calculator_result",
    "result": "3.141592653589793"
  },
  ...
}

Weather Answer Box

Weather Answer Box

JSON Example

{
  ...
  "answer_box": {
    "type": "weather_result",
    "result": "Mostly Cloudy"
  },
  ...
}

Converter Answer Box

Converter Answer Box

JSON Example

{
  ...
  "answer_box": {
    "type": "currency_converter",
    "result": "112.82 United States Dollar"
  },
 }

Flights Answer Box

Flights Answer Box

JSON Example

{
  ...
  "answer_box": {
    "type": "google_flights",
    "title": "Flights from Atlanta, GA (ATL) to London, United Kingdom (all airports)",
    "flights": [
      {
        "link": "https://www.google.com/flights?hl=en&gl=us&source=flun&lite=0&uitype=cuAA&tfs=CAEQAhosEgoyMDIxLTAxLTAyMgJUS2oMCAISCC9tLzAxM3lxcgwIAhIIL20vMDRqcGwaLBIKMjAyMS0wMS0xMTICVEtqDAgCEggvbS8wNGpwbHIMCAISCC9tLzAxM3lxemRDaWRIV2s5TVgwSkhMUzB0TFMwdExTMHRiM1ZwYkRJMFFVRkJRVUZHTFRsSVFUUkNRVEYxUVVFU0EyTlVTeG9MQ0lTUkJSQUNHZ05WVTBRNEEwb0VDQUVRQVZJQ1ZFdHdoSkVG&sa=X&ved=2ahUKEwjmocGqtZvtAhUUa80KHRfGDsIQ1RUoAHoECAcQGQ",
        "flight_info": [
          "Turkish Airlines",
          "18h 10m+",
          "Connecting",
          "from $841"
        ]
      },
      {
        "link": "https://www.google.com/flights?hl=en&gl=us&source=flun&lite=0&uitype=cuAA&tfs=CAEQAhosEgoyMDIxLTAxLTAyMgJWU2oMCAISCC9tLzAxM3lxcgwIAhIIL20vMDRqcGwaLBIKMjAyMS0wMS0xMTICVlNqDAgCEggvbS8wNGpwbHIMCAISCC9tLzAxM3lxemRDaWRIV2s5TVgwSkhMUzB0TFMwdExTMHRiM1ZwYkRJMFFVRkJRVUZHTFRsSVFUUkNRVEYxUVVFU0EyNVdVeG9MQ0lDakJSQUNHZ05WVTBRNEEwb0VDQUVRQVZJQ1ZsTndnS01G&sa=X&ved=2ahUKEwjmocGqtZvtAhUUa80KHRfGDsIQ1RUoAXoECAcQGg",
        "flight_info": [
          "Virgin Atlantic",
          "7h 40m",
          "Nonstop",
          "from $864"
        ]
      },
      {
        "link": "https://www.google.com/flights?hl=en&gl=us&source=flun&lite=0&uitype=cuAA&tfs=CAEQAhosEgoyMDIxLTAxLTAyMgJBQWoMCAISCC9tLzAxM3lxcgwIAhIIL20vMDRqcGwaLBIKMjAyMS0wMS0xMTICQUFqDAgCEggvbS8wNGpwbHIMCAISCC9tLzAxM3lxemRDaWRIV2s5TVgwSkhMUzB0TFMwdExTMHRiM1ZwYkRJMFFVRkJRVUZHTFRsSVFUUkNRVEYxUVVFU0EyNUJRUm9MQ1BEUkJSQUNHZ05WVTBRNEEwb0VDQUVRQVZJQ1FVRnc4TkVG&sa=X&ved=2ahUKEwjmocGqtZvtAhUUa80KHRfGDsIQ1RUoAnoECAcQGw",
        "flight_info": [
          "American",
          "7h 55m",
          "Nonstop",
          "from $924"
        ]
      },
      ...
    ...
    ],
  }
  ...
}

Dictionary Answer Box

Dictionary Answer Box

JSON Example

{
  ...
  "answer_box": {
    "type": "dictionary_results",
    "syllables": "trans·par·ent",
    "phonetic": "/transˈperənt/",
    "word_type": "adjective",
    "definitions": [
      "(of a material or article) allowing light to pass through so that objects behind can be distinctly seen.",
      "easy to perceive or detect.",
      "having thoughts, feelings, or motives that are easily perceived.",
      "(of an organization or its activities) open to public scrutiny.",
      "transmitting heat or other electromagnetic rays without distortion.",
      "(of a process or interface) functioning without the user being aware of its presence."
    ],
    "examples": [
      ""transparent blue water"",
      ""a transparent plastic film"",
      ""the residents will see through any transparent attempt to buy their votes"",
      ""the symbolism of this myth is transparent"",
      ""you'd be no good at poker—you're too transparent"",
      ""if you had transparent government procurement, corruption would go away"",
      ""parliament should render government transparent""
    ],
    "extras": [
      "synonyms:see-through, clear, translucent, pellucid, crystal clear, crystalline, limpid, glassy, glasslike, liquid; Moreunclouded, uncloudy; raretranspicuous "a transparent plastic film"",
      "antonyms:opaque, cloudy",
      "synonyms:obvious, explicit, unambiguous, unequivocal, clear, lucid, straightforward, plain, (as) plain as the nose on your face, apparent, unmistakable, manifest, conspicuous, patent, indisputable, self-evident; raretranspicuous "the symbolism of this myth is transparent"",
      "antonyms:obscure, ambiguous",
      "synonyms:frank, open, candid, honest, direct, forthright, unreserved, plain-spoken, straight, straightforward, ingenuous, innocent, guileless, simple, artless; Moreaccountable; informalupfront "parliament should render government transparent"",
      "antonyms:cunning, secretive"
    ]
  },
  ...
}

List Answer Box

List Answer Box

JSON Example

{
  ...
  "answer_box": {
    "type": "organic_result",
    "title": "French Toast Recipe | Robert Irvine | Food Network",
    "link": "https://www.foodnetwork.com/recipes/robert-irvine/french-toast-recipe-1951408",
    "snippet": "DirectionsIn a small bowl, combine cinnamon, nutmeg, and sugar and set aside briefly.In a 10-inch or 12-inch skillet, melt butter over medium heat. Whisk together cinnamon mixture, eggs, milk, and vanilla and pour into a shallow container such as a pie plate. Dip bread in egg mixture.",
    "list": [
      "In a small bowl, combine cinnamon, nutmeg, and sugar and set aside briefly.",
      "In a 10-inch or 12-inch skillet, melt butter over medium heat. Whisk together cinnamon mixture, eggs, milk, and vanilla and pour into a shallow container such as a pie plate. Dip bread in egg mixture."
    ],
    "refinements": [
      "no milk",
      "good",
      "sweet",
      "without eggs",
      "bread",
      "stuffed",
      "casserole",
      "cinnamon roll"
    ],
    "thumbnail": "<URL to image>"
  },
  ...
}

Organic Result Answer Box

Organic Result Answer Box

JSON Example

{
  ...
  "answer_box": {
    "type": "organic_result",
    "title": "Star Wars: The Last Jedi: Why Luke Used a Blue Lightsaber ...",
    "date": "Jan 11, 2018",
    "link": "https://time.com/5099085/star-wars-the-last-jedi-luke-skywalker-blue-lightsaber/#:~:text=Luke%20was%20given%20the%20blue,Ren%20in%20The%20Last%20Jedi.",
    "snippet": "Luke was given the blue lightsaber by Obi-Wan Kenobi in A New HopeA New HopeA New Hope is presented in the aspect ratio of 2.35:1 (its original aspect ratio), encoded with AVC MPEG-4 compression.www.tweaktown.com › reviews › star_wars_episode_iv_a_ne...Star Wars Episode IV: A New Hope (1977) Blu-ray Movie Review ... but lost it during his duel with Darth Vader on Cloud City in The Empire Strikes BackEmpire Strikes BackImperial Basic. The First Galactic Empire is a fictional autocracy featured in the Star Wars franchise. It was first introduced in the 1977 film Star Wars and appears in its two sequels: The Empire Strikes Back (1980) and Return of the Jedi (1983). It is the main antagonist faction of the original trilogy.en.wikipedia.org › wiki › Galactic_Empire_(Star_Wars)Galactic Empire (Star Wars) - Wikipedia. It was then given to Rey by Maz KanataMaz KanataIntroduced in the 2015 film Star Wars: The Force Awakens, she is a computer-generated imagery character voiced and performed through motion capture by Lupita Nyong'o. Maz, a former pirate and smuggler, is more than 1,000 years old and manages an interstellar tavern in a castle on the fictional planet Takodana.en.wikipedia.org › wiki › Maz_KanataMaz Kanata - Wikipedia in The Force Awakens, but shattered during Rey's standoff with Kylo RenKylo Renwww.yodasdatapad.com › agesStar Wars Character Age Table - Yoda's Datapad in The Last Jedi.",
    "answer": "blue",
    "thumbnail": "<URL to image>"
  },
  ...
}

Organic Result Answer Box

Organic Result Answer Box

JSON Example

{
  ...
  "answer_box": {
    "type": "organic_result",
    "title": "We have data on 3,639 companies that use IBM Watson....Who uses IBM Watson?",
    "link": "https://enlyft.com/tech/products/ibm-watson",
    "contents": {
      "table": [
        [
          "Company",
          "Bonnier Corporation"
        ],
        [
          "Website",
          "bonniercorp.com"
        ],
        [
          "Country",
          "United States"
        ],
        [
          "Revenue",
          "100M-200M"
        ],
        [
          "Company Size",
          "500-1000"
        ]
      ],
      "formatted": {
        "company": "Bonnier Corporation",
        "website": "bonniercorp.com",
        "country": "United States",
        "revenue": "100M-200M",
        "company_size": "500-1000"
      }
    }
  },
  ...
}

Organic Result Answer Box

Organic Result Answer Box

JSON Example

{
  ...
    "answer_box": {
    "type": "organic_result",
    "title": "Papa John's Prices",
    "link": "https://www.fastfoodmenuprices.com/papa-johns-prices/",
    "contents": {
      "table": [
        [
          "Food",
          "Size",
          "Price"
        ],
        [
          "Pizzas Original and Thin Crust Choices"
        ],
        [
          "Cheese (Original)",
          "Medium",
          "$13.00"
        ],
        [
          "Cheese (Original)",
          "Large",
          "$15.00"
        ],
        [
          "Cheese (Original)",
          "Extra Large",
          "$17.00"
        ]
      ],
      "formatted": {
        "pizzas_original_and_thin_crust_choices": [
          {
            "food": "Cheese (Original)",
            "size": "Medium",
            "price": "$13.00"
          },
          {
            "food": "Cheese (Original)",
            "size": "Large",
            "price": "$15.00"
          },
          {
            "food": "Cheese (Original)",
            "size": "Extra Large",
            "price": "$17.00"
          }
        ]
      }
    }
  },

  ...
}

Organic Result Answer Box

Organic Result Answer Box

JSON Example

{
  ...
  "answer_box": {
    "type": "organic_result",
    "title": "A. Pengertian Persegi Panjang (Rectangle)",
    "link": "https://www.advernesia.com/blog/matematika/rumus-luas-dan-rumus-keliling-persegi-panjang-beserta-sisinya/",
    "contents": {
      "table": [
        [
          "Nama",
          "Rumus"
        ],
        [
          "Luas (L)",
          "L = p × l"
        ],
        [
          "Keliling (Kll)",
          "Kll = 2 × (p + l)"
        ],
        [
          "Panjang (p)",
          "p = L ÷ l"
        ],
        [
          "Panjang (p)",
          "p = (Kll ÷ 2) - l"
        ]
      ],
      "formatted": [
        {
          "nama": "Luas (L)",
          "rumus": "L = p × l"
        },
        {
          "nama": "Keliling (Kll)",
          "rumus": "Kll = 2 × (p + l)"
        },
        {
          "nama": "Panjang (p)",
          "rumus": "p = L ÷ l"
        },
        {
          "nama": "Panjang (p)",
          "rumus": "p = (Kll ÷ 2) - l"
        }
      ]
    }
  },
  ...
}