Brave Summarizer Search API

Response Objects

# SummarizerSearchApiResponse

Top level response model for successful Summarizer Search API requests. The response will include the summarized content or answer based on the key. The API can also respond back with an error response based on the incompleted summarization request, invalid subscription keys, and rate limit events. Access to Summarizer requires a subscription to Pro AI plan.

FieldTypeRequiredDescription
type"summarizer"true

The type of summarizer search API result. The value is always summarizer.

statusstringtrue

The current status of summarizer for the given key. The value can be either failed or complete.

titlestringfalse

The title for the summary.

summarylist [ SummaryMessage ]false

Details for the summary message.

enrichmentsSummaryEnrichmentsfalse

Enrichments that can be added to the summary message.

followupslist [ string ]false

Followup queries relevant to the current query.

entities_infosdict [ string, SummaryEntityInfo ]false

Details on the entities in the summary message.

# SummaryMessage

The summary message.

FieldTypeRequiredDescription
typestringtrue

The type of subset of a summary message. The value can be token (a text excerpt from the summary), enum_item (a summary entity), enum_start (describes the beginning of summary entities, which means the following item(s) in the summary list will be entities), or enum_end (the end of summary entities).

dataSummaryEntity | stringfalse

The summary entity or the explanation for the type field. For type enum_start the value can be ol or ul, which means an ordered list or an unordered list of entities follows respectively. For type enum_end there is no value. For type token the value is a text excerpt. For type enum_item the value is the SummaryEntity response model.

# TextLocation

Index-based location in a text.

FieldTypeRequiredDescription
startinttrue

The 0-based index, where the important part of the text starts.

endinttrue

The 0-based index, where the important part of the text ends.

# SummaryEntity

An entity in the summary message.

FieldTypeRequiredDescription
uuidstringtrue

A unique identifier for the entity.

namestringtrue

The name of the entity.

urlstringfalse

The URL where further details on the entity can be found.

textstringfalse

A text message describing the entity.

imageslist [ SummaryImage ]false

The image associated with the entity.

highlightlist [ TextLocation ]false

The location of the entity in the summary message.

# Thumbnail

Aggregated details representing a picture thumbnail.

FieldTypeRequiredDescription
srcstringtrue

The served URL of the picture thumbnail.

originalstringfalse

The original URL of the image.

# ImageProperties

Metadata on an image.

FieldTypeRequiredDescription
urlstringtrue

The image URL.

# Image

A model describing an image.

FieldTypeRequiredDescription
thumbnailThumbnailtrue

The thumbnail associated with the image.

urlstringfalse

The URL of the image.

propertiesImagePropertiesfalse

Metadata on the image.

# SummaryImage (Image)

An image associated with the summary.

FieldTypeRequiredDescription
textstringfalse

Text associated with the image.

# SummaryEnrichments

Enrichments associated with the summary message.

FieldTypeRequiredDescription
rawstringtrue

The raw summary message.

imageslist [ SummaryImage ]false

The images associated with the summary.

qalist [ SummaryAnswer ]false

The answers in the summary message.

entitieslist [ SummaryEntity ]false

The entities in the summary message.

contextlist [ SummaryContext ]false

References based on which the summary was built.

# SummaryAnswer

The answer if the query is a question.

FieldTypeRequiredDescription
answerstringtrue

The answer text.

scorefloatfalse

A score associated with the answer.

highlightTextLocationfalse

The location of the answer in the summary message.

# MetaUrl

Aggregated information about a URL.

FieldTypeRequiredDescription
schemestringfalse

The protocol scheme extracted from the URL.

netlocstringfalse

The network location part extracted from the URL.

hostnamestringfalse

The lowercased domain name extracted from the URL.

faviconstringfalse

The favicon used for the URL.

pathstringfalse

The hierarchical path of the URL useful as a display string.

# SummaryContext

A reference for the summary.

FieldTypeRequiredDescription
titlestringtrue

The title of the reference.

urlstringtrue

The URL where the reference can be found.

meta_urlMetaUrlfalse

Details on the URL associated with the reference.

# SummaryEntityInfo

Details on the entity in the summary message.

FieldTypeRequiredDescription
providerstringfalse

The name of the provider.

descriptionstringfalse

Description of the entity.