Share via


GoogleSearchResponse Class

The response from a Google search.

Note: This class is marked as 'experimental' and may change in the future.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Constructor

GoogleSearchResponse(*, kind: str = '', url: dict[str, str] = None, queries: dict[str, list[dict[str, str | int]]] = None, context: dict[str, Any] = None, search_information: GoogleSearchInformation | None = None, spelling: dict[str, Any] = None, promotions: list[dict[str, Any]] = None, items: list[GoogleSearchResult] | None = None)

Keyword-Only Parameters

Name Description
kind
Required
url
Required
queries
Required
context
Required
search_information
Required
spelling
Required
promotions
Required
items
Required

Attributes

context

context: dict[str, Any]

is_experimental

is_experimental = True

items

items: list[GoogleSearchResult] | None

kind

kind: str

promotions

promotions: list[dict[str, Any]]

queries

queries: dict[str, list[dict[str, str | int]]]

search_information

search_information: GoogleSearchInformation | None

spelling

spelling: dict[str, Any]

stage_status

stage_status = 'experimental'

url

url: dict[str, str]