Yahoo Answer Box API

Yahoo 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. Contact us if an answer box you are looking for is not supported yet.

API Examples

Date-Time Answer Box

Date-Time Answer Box

JSON Example

{
  ...
  "answer_box": {
    "type": "date_time_result",
    "results": [
      {
        "description": "Sacramento, CA - Current Time",
        "details": "3:36 PM PDT on Monday, October 28"
      }
    ]
  },
  ...
}

Dictionary Answer Box

Dictionary Answer Box

JSON Example

{
  ...
  "answer_box": {
    "type": "dictionary_result",
    "results": [
      {
        "syllables": "Kind·ness",
        "phonetic": "/ˈkīn(d)nəs/",
        "word_type": "noun",
        "definitions": [
          "the quality of being friendly, generous, and considerate:",
          "a kind act:"
        ],
        "examples": [
          "he thanked them for their kindness and support",
          "it is a kindness I shall never forget"
        ],
        "similar_words": [
          "kindliness",
          "kind-heartedness",
          "warm-heartedness",
          "tender-heartedness",
          ...
        ],
        "opposite_words": [
          "unkindness",
          "meanness"
        ]
      }
    ]
  },
  ...
}

Flight Status Answer Box

Flight Status Answer Box

JSON Example

{
  ...
  "answer_box": {
    "type": "flight_status",
    "flights": [
      {
        "flight_name": "Emirates Flight 335",
        "percentage_of_flight_progress": 100,
        "flight_status": "Arrived at 5:17 AM",
        "departure": {
          "airport_name": "MNL",
          "location": "Manila",
          "terminal": "Terminal 3",
          "time": "Mon Oct 28 at 12:40 AM (was 11:30 PM)"
        },
        "arrival": {
          "airport_name": "DXB",
          "location": "Dubai",
          "terminal": "Terminal 3",
          "time": "Mon Oct 28 at 5:17 AM (was 4:45 AM)"
        }
      },
      {
        "flight_name": "Emirates Flight 335",
        "percentage_of_flight_progress": 80,
        "flight_status": "On time - arrives in 2 hrs",
        "departure": {
          "airport_name": "MNL",
          "location": "Manila",
          "terminal": "Terminal 3",
          "time": "Tue Oct 29 at 12:09 AM (was 11:30 PM)"
        },
        "arrival": {
          "airport_name": "DXB",
          "location": "Dubai",
          "terminal": "Terminal 3",
          "time": "Tue Oct 29 at 4:57 AM (was 4:45 AM)"
        }
      }
    ]
  },
  ...
}

Flight Status Answer Box on mobile

Flight Status Answer Box on mobile

JSON Example

{
  ...
  "answer_box": {
    "type": "flight_status",
    "flights": [
      {
        "flight_name": "United Airlines Flight 160",
        "percentage_of_flight_progress": 100,
        "flight_status": "Arrived at 5:57 PM",
        "departure": {
          "airport_name": "MUC",
          "location": "Munich",
          "terminal": "Terminal 2",
          "gate": "Gate H5",
          "time": "Mon Oct 28 at 12:00 PM (was 11:30 AM)",
          "directions_link": "https://maps.google.com/maps?saddr=&daddr=Munich+Franz+Joseph+Strauss+Airport"
        },
        "arrival": {
          "airport_name": "IAH",
          "location": "Houston",
          "terminal": "Terminal E",
          "gate": "Gate 4",
          "time": "Mon Oct 28 at 5:57 PM (was 5:40 PM)",
          "directions_link": "https://maps.google.com/maps?saddr=&daddr=Houston+George+Bush+Intercontinental+Airport"
        }
      }
    ]
  },
  ...
}

JSON structure overview

{
  ...
  "answer_box": {
    "type": "String - Type of answer box (date_time_result, dictionary_result, flight_status, etc.)",
    ...
  },
  ...
}