Skip to main content

world

World News. Global news data.

Examples

from openbb import obb
obb.news.world(provider='fmp')
obb.news.world(limit=100, provider='intrinio')
# Get news on the specified dates.
obb.news.world(start_date='2024-02-01', end_date='2024-02-07', provider='intrinio')
# Display the headlines of the news.
obb.news.world(display=headline, provider='benzinga')
# Get news by topics.
obb.news.world(topics=finance, provider='benzinga')
# Get news by source using 'tingo' as provider.
obb.news.world(provider='tiingo', source=bloomberg)
# Filter aticles by term using 'biztoc' as provider.
obb.news.world(provider='biztoc', term=apple)

Parameters

NameTypeDescriptionDefaultOptional
limitintThe number of data entries to return. The number of articles to return.2500True
start_dateUnion[date, str]Start date of the data, in YYYY-MM-DD format.NoneTrue
end_dateUnion[date, str]End date of the data, in YYYY-MM-DD format.NoneTrue

Returns

OBBject
results : List[WorldNews]
Serializable results.

provider : Optional[Literal['benzinga', 'biztoc', 'fmp', 'intrinio', 'tiingo']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data

NameTypeDescription
dateUnion[datetime, str]The date of the data. The published date of the article.
titlestrTitle of the article.
imagesList[Dict[str, str]]Images associated with the article.
textstrText/body of the article.
urlstrURL to the article.