template bg

Google Answer Box Scraper API

Extract weather, time, calculator, flight-duration, and direct-answer results from public Google Search pages as one structured response.

Published by
Br
BrowserAct Team
September 03, 2026
Approx.Credits
21-48 Credits
Categories
BA
APIGoogle
Template ID
116267174238134974

Brief

Google Answer Box Scraper API extracts a visible direct-answer region from one public Google Search results page and returns it as a predictable structured response. Configure a query, country, interface language, and Safe Search option, then run the Bot for search-data workflows, monitoring, enrichment, or downstream automation.

What Does BrowserAct Google Answer Box Scraper API Do?

The Bot opens one internally constructed public Google Search URL and extracts only the answer region that directly responds to the query. It supports the answer families verified in the current Live Version: direct answers, weather, local time, calculator results, and flight duration.

Atomic Capability

One run opens one public Google Search results page and returns one answer-box response.

The Bot reads the visible answer region without opening cited sources or destination pages. It stops after the answer is extracted or its absence is confirmed and does not mix in organic results, AI Overview, knowledge panels, People also ask, ads, local listings, shopping results, news modules, or related searches.

Key Features

  • Extracts a single public Google answer-box capability.
  • Accepts any valid search query up to 300 characters.
  • Uses dropdowns for country, interface language, and Safe Search.
  • Builds the Google Search URL internally; users never enter a URL or locale code.
  • Returns the same response envelope whether an answer box appears or not.
  • Preserves additional visible values from the same answer region in unclassified_fields.

Capability Availability

State Output behavior
Target answer region is present available is true; data contains the detected answer family.
Valid result page without the target region available is false; data is null.
Additional fields appear inside the answer region Values are preserved in unclassified_fields.

Quick Start

  1. Open Run task.
  2. Enter a search query, such as weather Dallas.
  3. Choose the search country, interface language, and Safe Search mode.
  4. Run the Bot.
  5. Review the structured response or call the published template from the API Tab.

Input Parameters

Parameter Configuration
query String · Required
Default: weather Dallas
Open-ended Google search text; 1-300 characters after trimming.
search_country Dropdown · Required
Default: United States
Country context mapped to Google's internal gl value.
interface_language Dropdown · Required
Default: English
Interface language mapped to Google's internal hl value.
safe_search Dropdown · Required
Default: Active
Maps to Google's supported Safe Search value.

See the Inputs Tab for all supported labels, mappings, constraints, and the default request JSON.

Output Structure

Each run returns one fixed response envelope:

Field Type Description
capability String Fixed value google_answer_box.
available Boolean Whether a supported answer region appeared on the valid source page.
request_metadata Object Normalized public inputs and the internally constructed source URL.
data Object or null The detected answer family and its structured fields.
unclassified_fields Object Additional visible fields from the same answer region.

See the Output Tab for the complete schema and the full response from a current Live Version run.

Example Output

This preview contains one result from the default Live Version run.

Field Result
capability google_answer_box
available true
request_metadata query: weather Dallas; country: United States; language: English; Safe Search: Active
data type: weather; location: Dallas, TX; temperature: 79 F; condition: Clear with periodic clouds; humidity: 81%; wind: 6 mph
unclassified_fields {}

How Does It Work?

How Google Answer Box Scraper API works

  1. BrowserAct validates the query and maps the selected country, language, and Safe Search labels.
  2. The Bot URL-encodes the query, constructs the Google Search URL internally, and opens one public results page.
  3. It identifies the visible direct-answer region and determines whether it is a direct answer, weather, local time, calculator, or flight-duration result.
  4. It populates only the detected answer family and normalizes it into the fixed response envelope.
  5. It returns one structured object, or available=false with data=null when the valid page contains no answer region.

Response Behavior and Limits

  • Answer absent: available=false and data=null is a valid response.
  • Variant fields: Only the detected answer-family object is populated; the other family objects remain null.
  • Dynamic fields: Additional visible values inside the same answer region appear in unclassified_fields.
  • Public access: The Bot uses public Google Search pages and requires no account login.
  • Execution boundary: One run reads one search results page and does not paginate.
  • Destination pages: Returned links are not opened.

Use Cases

  • Retrieve direct search answers for internal tools and agent workflows.
  • Monitor localized weather or time responses across supported country and language settings.
  • Normalize calculator and flight-duration answers for downstream processing.
  • Compose this capability with other BrowserAct Bots through API, n8n, Make, Zapier, or MCP.

How to Build a New API-Ready Bot with Agent Built

Step 1: Define One Atomic Capability

Describe one public-web action, its user inputs, allowed navigation, output contract, and exact stopping point. Keep fixed target URLs internal and give every visible input a working default.

Describe an atomic BrowserAct Bot

Step 2: Let BrowserAct Explore the Capability Variants

Build the Bot against the live website and check multiple positive triggers, one valid negative trigger, and at least one non-default dropdown path.

BrowserAct explores the target capability

Step 3: Validate the Stable Contract

Publish the validated version, run it again with the default inputs, and confirm the response envelope, actual output, execution time, credits, and API call before listing the template.

Validate structured results

Automation and Export

Automation and export flow

BrowserAct produces structured data first. Use the completed result through Run Task, the JSON API, n8n, Make, Zapier, MCP-based agents, or an available export flow.

Need Help?

Cannot find the exact atomic capability you need, or need help composing several Bots?

Discord: BrowserAct Community

Email: service@browseract.com

What can we do for youWhat can we do for you

FAQ About the template

Your next scraper starts here.

Google Answer Box Scraper API | Extract Direct Search Answers