Google Light Answer Box API

Google Light searches that may be answered directly appear as direct answers boxes. SerpApi is able to scrape, extract, and make sense of several kinds of answer boxes from Google Light. Contact us if an answer box you are looking for is not supported yet.

Organic Answer Box: Type 1

Organic Answer Box: Type 1

JSON Example

{
  "answer_box": {
    "type": "organic_result",
    "title": "Luke Skywalker's green lightsaber | Wookieepedia | Fandom",
    "link": "https://starwars.fandom.com/wiki/Luke_Skywalker%2527s_green_lightsaber&sa=U&ved=2ahUKEwiI3NKN9reGAxU1MlkFHfcjAhQQFnoECAEQBQ&usg=AOvVaw0o0JfMYWdLiQb7CTJc_Yfk",
    "displayed_link": "starwars.fandom.com › wiki › Luke_Skywalker's_green_lightsaber"
    "snippet": "Skywalker built a green-bladed lightsaber to replace his father's weapon. On a mission aboard the Imperial Refining Platform M36, Luke used the lightsaber alongside his Force abilities to defeat several KX-series security droids, clearing a path for Rebel forces to acquire copious Imperial fuel stores.",
    "snippet_highlighted_words": [
      "green"
    ],
    "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSDPOMsCJg81wgw8cVo9DVZN0anjqDpYkjxmI7HuWaxtQIX&s",
  },
  ...
}

Organic Answer Box: Type 2

Organic Answer Box: Type 2

JSON Example

{
  "answer_box": {
    "type": "organic_result",
    "title": "List of IBM Watson Assistant Customers - apps run the world",
    "link": "https://www.appsruntheworld.com/customers-database/products/view/ibm-watson-assistant&sa=U&ved=2ahUKEwjY57aC9beGAxW1EFkFHW2mDMYQFnoECAAQAw&usg=AOvVaw2DMWMnffeSfBZw5T6sleG6",
    "displayed_link": "www.appsruntheworld.com › customers-database › products › view › ibm-..."
    "snippet": "Companies using IBM Watson Assistant for Chatbots and Conversational AI include: Humana, a United States based Insurance organisation with 67100 employees and revenues of $92.87 billion, Panasonic, a Japan based Manufacturing organisation with 240198 employees and revenues of $50.15 billion, Covéa, a France based ...",
  },
  ...
}

Organic Answer Box: Type 3

Organic Answer Box: Type 3

JSON Example

{
  "answer_box": {
    "type": "organic_result",
    "title": "McDonald's Big Mac / Total Fat",
    "answer": "33 g"
  },
  ...
}

Organic Answer Box: Type 4

Organic Answer Box: Type 4

JSON Example

{
  "answer_box": {
    "type": "organic_result",
    "title": "5 Types of Programming Languages | Coursera",
    "link": "https://www.coursera.org/articles/types-programming-language&sa=U&ved=2ahUKEwjLi-Wf-beGAxXeAjQIHcxuBqgQFnoECAAQAw&usg=AOvVaw2caJPGh54jzeVuD6pagwIo",
    "displayed_link": "www.coursera.org › articles › types-prog..."
    "snippet": "5 major types of programming languagesProcedural programming languages. A procedural language follows a sequence of statements or commands in order to achieve a desired output. ... Functional programming languages. ... Object-oriented programming languages (OOP) ... Scripting languages. ... Logic programming languages.",
    "snippet_highlighted_words": [
      "5 major types of programming languages"
    ],
    "list": [
      "Procedural programming languages. A procedural language follows a sequence of statements or commands in order to achieve a desired output. ...",
      "Functional programming languages. ...",
      "Object-oriented programming languages (OOP) ...",
      "Scripting languages. ...",
      "Logic programming languages."
    ],
  },
  ...
}

Time Answer Box

Time Answer Box

JSON Example

{
  "answer_box": {
    "type": "time",
    "result": "2:05 PM",
    "date": "May 28, 2024",
    "description": "Local Time",
    "location": "Dallas, TX"
  },
  ...
}

Weather Answer Box

Weather Answer Box

JSON Example

{
  "answer_box": {
    "type": "weather_result",
    "temperature": "91",
    "unit": "F",
    "high": "94",
    "low": "76",
    "weather": "Mostly cloudy",
    "date": "Monday",
    "location": "Dallas, TX",
    "source": "https://www.weather.com/wx/today/?lat=32.78&lon=-96.80&locale=en_US&par=google",
    "icon": "https://ssl.gstatic.com/onebox/weather/48/partly_cloudy.png"
  },
  ...
}

Weather Answer Box with alert

Weather Answer Box with alert

JSON Example

{
  "answer_box": {
    "type": "weather_result",
    "temperature": "77",
    "unit": "F",
    "weather": "Mostly sunny",
    "date": "Tuesday",
    "location": "Dallas, TX",
    "icon": "https://ssl.gstatic.com/onebox/weather/48/partly_cloudy.png",
    "alert": [
      {
        "type": "Flood Warning",
        "source": "National Weather Service"
      }
    ]
  },
  ...
}

Dictionary Answer Box

Dictionary Answer Box

JSON Example

{
  "answer_box": {
    "type": "dictionary_results",
    "syllables": "mys·te·ri·ous",
    "pronunciation_audio": "https://ssl.gstatic.com/dictionary/static/sounds/20220808/mysterious--_us_1.mp3",
    "phonetic": "/məˈstirēəs/",
    "word_type": "adjective",
    "definitions": [
      "difficult or impossible to understand, explain, or identify."
    ],
    "examples": [
      "his colleague had vanished in mysterious circumstances"
    ],
    "extras": "synonyms: puzzling, strange, peculiar, curious, funny, queer, odd, weird, bizarre, mystifying, inexplicable, baffling, perplexing, bewildering, confusing, uncanny, dark, impenetrable, incomprehensible, unexplainable, unfathomable, Delphic, sibylline, unaccountable, insoluble, obscure, arcane, recondite, secret, esoteric, occult, cryptic, hidden, concealed, supernatural, mystical"
  },
  ...
}

Flight Duration Answer Box

Flight Duration Answer Box

JSON Example

{
  "answer_box": {
    "type": "flight_duration",
    "duration": "15h 20m",
    "stops": "Nonstop flight",
    "details": "Toronto, Canada (all airports) to Hong Kong (HKG)"
  },
  ...
}

Calculator Result Answer Box

Calculator Result Answer Box

JSON Example

{
  "answer_box": {
    "type": "calculator_result",
    "problem": "(3^2) - 7 =",
    "result": "2"
  },
  ...
}

Population Answer Box

Population Answer Box

JSON Example

{
  "answer_box": {
    "type": "population_result",
    "place": "Toronto",
    "population": "2.93 million",
    "year": "2017",
    "source": "United Nations",
    "source_link": "https://www.google.com/url?q=http://data.un.org/Data.aspx%3Fd%3DPOP%26amp%3Bf%3DtableCode%253A240&sa=U&ved=2ahUKEwighMP2hbGGAxVh5ckDHV4LDMEQkh96BAgIEAE&usg=AOvVaw3ZUnVQ-4m5IlqzzGGf5ssc"
  },
  ...
}