Skip to main content
Version: v5

search

Search the published corpus, in the news feed widget's shape.

Examples​

from openbb import obb
# Search the news.
obb.tmx.news.search(query='drilling')
# The second page of results.
obb.tmx.news.search(query='lithium', limit=20, offset=20)

Parameters​

query: str
The words to search for.

content_type: str
Default: News
The kind of content to search.

limit: int
Default: 20
Results to return.

offset: int
Default: 0
Results to skip.

fetch_body: bool
Default: True
Read each article for its full body.


Returns​