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

start_date: date | str
Start date of the data, in YYYY-MM-DD format. The default is 2 weeks ago.

end_date: date | str
End date of the data, in YYYY-MM-DD format. The default is today.

limit: Annotated[int, Ge(ge=0)]
The number of data entries to return. The number of articles to return.


Returns

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

date: Union[datetime, str]
The date of the data. The date of publication.

title: str
Title of the article.

author: str
Author of the article.

excerpt: str
Excerpt of the article text.

body: str
Body of the article text.

images: Any
Images associated with the article.

url: str
URL to the article.