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
- standard
- benzinga
- biztoc
- fmp
- intrinio
- tiingo
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.
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.
date: date | str
A specific date to get data for.
display: Literal['headline', 'abstract', 'full']
Default: full
Specify headline only (headline), headline + teaser (abstract), or headline + full body (full).
updated_since: int
Number of seconds since the news was updated.
published_since: int
Number of seconds since the news was published.
sort: Literal['id', 'created', 'updated']
Default: created
Key to sort the news by.
order: Literal['asc', 'desc']
Default: desc
Order to sort the news by.
isin: str
The ISIN of the news to retrieve.
cusip: str
The CUSIP of the news to retrieve.
channels: str
Channels of the news to retrieve.
topics: str
Topics of the news to retrieve.
authors: str
Authors of the news to retrieve.
content_types: str
Content types of the news to retrieve.
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.
term: str
Search term to filter articles by. This overrides all other filters.
source: str
Filter by a specific publisher. Only valid when filter is set to source.
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.
topic: Literal['fmp_articles', 'general', 'press_releases', 'stocks', 'forex', 'crypto']
Default: general
The topic of the news to be fetched.
page: int
Page number of the results. Use in combination with limit.
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.
source: Literal['yahoo', 'moody', 'moody_us_news', 'moody_us_press_releases']
The source of the news article.
sentiment: Literal['positive', 'neutral', 'negative']
Return news only from this source.
language: str
Filter by language. Unsupported for yahoo source.
topic: str
Filter by topic. Unsupported for yahoo source.
word_count_greater_than: int
News stories will have a word count greater than this value. Unsupported for yahoo source.
word_count_less_than: int
News stories will have a word count less than this value. Unsupported for yahoo source.
is_spam: bool
Filter whether it is marked as spam or not. Unsupported for yahoo source.
business_relevance_greater_than: float
News stories will have a business relevance score more than this value. Unsupported for yahoo source. Value is a decimal between 0 and 1.
business_relevance_less_than: float
News stories will have a business relevance score less than this value. Unsupported for yahoo source. Value is a decimal between 0 and 1.
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.
offset: int
Default: 0
Page offset, used in conjunction with limit.
source: str | list[str]
A comma-separated list of the domains requested. Multiple items allowed for provider(s): tiingo.
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
- standard
- benzinga
- biztoc
- fmp
- intrinio
- tiingo
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.
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.
channels: str
Channels associated with the news.
stocks: str
Stocks associated with the news.
tags: str
Tags associated with the news.
updated: datetime
Updated date of the news.
id: str
Article ID.
updated_id: str
Updated article ID if the article was updated.
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: list[dict[str, str]]
Images for the article.
url: str
URL to the article.
tags: list[str]
Tags for the article.
score: float
Search relevance score for the article.
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.
source: str
News source.
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.
source: str
The source of the news article.
summary: str
The summary of the news article.
topics: str
The topics related to the news article.
word_count: int
The word count of the news article.
business_relevance: float
How strongly correlated the news article is to the business
sentiment: str
The sentiment of the news article - i.e, negative, positive.
sentiment_confidence: float
The confidence score of the sentiment rating.
language: str
The language of the news article.
spam: bool
Whether the news article is spam.
copyright: str
The copyright notice of the news article.
id: str
Article ID.
company: IntrinioCompany
The Intrinio Company object. Contains details company reference data.
security: IntrinioSecurity
The Intrinio Security object. Contains the security details related to the news article.
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.
symbols: str
Ticker tagged in the fetched news.
article_id: int
Unique ID of the news article.
site: str
News source.
tags: str
Tags associated with the news article.
crawl_date: datetime
Date the news article was crawled.