Page cover image

Answer Box Results

Get instant Google Answers using the Google Scraping API

Sometimes if you make certain queries (i.e. currency conversion, math equations) in your Google search will result in an instant answer from Google, displayed inside a specific box, on top of the results.

If available, the content of this box will be displayed inside the answer_box array which includes:

Element
Type
Description

type

String

Type of answer box (calculator, organic result, converter, etc.)

result

String

The actual answer, when the answer box can be inlined.

Answer Box Results Request Example

Request Example That Returns Answer Box Elements

GET https://serpapi.webscrapingapi.com/v1?engine=google&api_key=<YOUR_API_KEY>&q=pi

This is a basic GET request that returns the answer box results found on the Google page.

Query Parameters

Name
Type
Description

q*

String

pi

api_key*

String

<YOUR_API_KEY>

{
    ...
	"answer_box": {
		"type": "calculator_result",
		"result": "3.14159265359"
	},
    ...
}
Scrape Google's Answer Box

Last updated