# Answer Box Results

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.&#x20;

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

<table><thead><tr><th width="123">Element</th><th width="99">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>type</code></td><td><code>String</code></td><td>Type of answer box (calculator, organic result, converter, etc.)</td></tr><tr><td><code>result</code></td><td><code>String</code></td><td>The actual answer, when the answer box can be inlined.</td></tr></tbody></table>

### Answer Box Results Request Example

## Request Example That Returns Answer Box Elements

<mark style="color:blue;">`GET`</mark> `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<mark style="color:red;">\*</mark>        | String | `pi`             |
| api\_key<mark style="color:red;">\*</mark> | String | `<YOUR_API_KEY>` |

{% tabs %}
{% tab title="200: OK API response" %}

```javascript
{
    ...
	"answer_box": {
		"type": "calculator_result",
		"result": "3.14159265359"
	},
    ...
}
```

{% endtab %}
{% endtabs %}

<figure><img src="https://1192456954-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9wbsYOleiAqS785aMtPp%2Fuploads%2FwOeCBqGcozyxSZUDD5dG%2Fanswer-box-results.png?alt=media&#x26;token=393cc960-74db-431d-9e16-b0563b872637" alt=""><figcaption><p>Scrape Google's Answer Box</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.webscrapingapi.com/google-search-api/google-apis-response/google-search-api/answer-box-results.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
