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

limit: int

The number of data entries to return. The number of articles to return.

Default: 2500

Optional: True


start_date: Union[date, str]

Start date of the data, in YYYY-MM-DD format.

Optional: True


end_date: Union[date, str]

End date of the data, in YYYY-MM-DD format.

Optional: True


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 published date of the article.

title: str

Title of the article.

images: list[Dict[str, str]]

Images associated with the article.

text: str

Text/body of the article.

url: str

URL to the article.