News Class

Defines a news answer.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.cognitiveservices.search.newssearch.models._models_py3.SearchResultsAnswer
News

Constructor

News(*, value, **kwargs)

Parameters

_type
str
Required

Required. Constant filled by server.

value
list[NewsArticle]
Required

Required. An array of NewsArticle objects that contain information about news articles that are relevant to the query. If there are no results to return for the request, the array is empty.

Variables

id
str

A String identifier.

web_search_url
str

The URL To Bing's search result for this item.

follow_up_queries
list[Query]
total_estimated_matches
<xref:long>

The estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.

location
str

Location of local news