Brave News Search API

Response Objects

# NewsSearchApiResponse

Top level response model for successful News Search API requests. The API can also respond back with an error response based on invalid subscription keys and rate limit events.

FieldTypeRequiredDescription
type"news"true

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

queryQuerytrue

News search query string.

resultslist [ NewsResult ]true

The list of news results for the given query.

# Query

A model representing information gathered around the requested query.

FieldTypeRequiredDescription
originalstringtrue

The original query that was requested.

alteredstringfalse

The altered query by the spellchecker. This is the query that is used to search if any.

cleanedstringfalse

The cleaned normalized query by the spellchecker. This is the query that is used to search if any.

spellcheck_offboolfalse

Whether the spellchecker is enabled or disabled.

show_strict_warningboolfalse

The value is true if the lack of results is due to a strict safesearch setting. Adult content relevant to the query was found, but was blocked by safesearch.

# NewsResult

A model representing a news result for the requested query.

FieldTypeRequiredDescription
typenews_resulttrue

The type of news search API result. The value is always news_result.

urlstringtrue

The source URL of the news article.

titlestringtrue

The title of the news article.

descriptionstringfalse

The description for the news article.

agestringfalse

A human readable representation of the page age.

page_agestringfalse

The page age found from the source web page.

page_fetchedstringfalse

The ISO date time when the page was last fetched. The format is YYYY-MM-DDTHH:MM:SSZ.

breakingboolfalse

Whether the result includes breaking news.

thumbnailThumbnailfalse

The thumbnail for the news article.

meta_urlMetaUrlfalse

Aggregated information on the URL associated with the news search result.

extra_snippetslist [ string ]false

A list of extra alternate snippets for the news search result.

# Thumbnail

Aggregated details representing the news thumbnail.

FieldTypeRequiredDescription
srcstringtrue

The served URL of the thumbnail associated with the news article.

originalstringfalse

The original URL of the thumbnail associated with the news article.

# 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.