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.

FieldTypeDescription
type"news"The type of search API result. The value is always news.
queryQueryNews search query string.
resultslist [ NewsResult ]The list of news results for the given query.

# Query

A model representing information gathered around the requested query.

FieldTypeDescription
originalstringThe original query that was requested.
alteredstringThe altered query by the spellchecker. This is the query that is used to search if any.
cleanedstringThe cleaned noramlized query by the spellchecker. This is the query that is used to search if any.
spellcheck_offboolWhether the spell checker is enabled or disabled.
show_strict_warningstringThe 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.

FieldTypeDescription
typenews_resultThe type of news search API result. The value is always news_result.
urlstringThe source url of the news article.
titlestringThe title of the news article.
descriptionstringThe description for the news article.
agestringA human readable representation of the page age.
page_agestringThe page age found from the source web page.
page_fetchedstringThe iso date time when the page was last fetched. The format is YYYY-MM-DDTHH:MM:SSZ
breakingboolWhether the result includes breaking news.
thumbnailThumbnailThe thumbnail for the news article.
meta_urlMetaUrlAggregated information on the url associated with the news search result.
extra_snippetslist [ string ]A list of extra alternate snippets for the news search result.

# Thumbnail

Aggregated details representing the news thumbnail

FieldTypeDescription
srcstringThe served url of the thumbnail associated with the news article.
originalstringThe original url of the thumbnail associated with the news article.

# MetaUrl

Aggregated information about a url.

FieldTypeDescription
schemestringThe protocol scheme extracted from the url.
netlocstringThe network location part extracted from the url.
hostnamestringThe lowercased domain name extracted from the url.
faviconstringThe favicon used for the url.
pathstringThe hierarchical path of the url useful as a display string.