{"id":45679,"library":"openbb-news","title":"OpenBB News Extension","description":"OpenBB News Extension provides news data providers for the OpenBB Platform, allowing retrieval of financial news from sources like Benzinga, Bloomberg, and FMP. Version 1.6.2 requires Python >=3.10, <4.0. Releases follow OpenBB's monthly cadence.","status":"active","version":"1.6.2","language":"python","source_language":"en","source_url":"https://github.com/OpenBB-finance/OpenBB/tree/develop/openbb_platform/extensions/news","tags":["openbb","news","finance","data-provider","extension"],"install":[{"cmd":"pip install openbb-news","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core OpenBB platform required for the extension to function","package":"openbb-core","optional":false}],"imports":[{"wrong":"from openbb_news import OpenBBNews","symbol":"OpenBBNews","correct":"from openbb_news import OpenBBNews"}],"quickstart":{"code":"from openbb import obb\n# Set up API keys for Benzinga or FMP provider\nobb.user.credentials.BENZINGA_API_KEY = os.environ.get('BENZINGA_API_KEY', '')\nobb.user.credentials.FMP_API_KEY = os.environ.get('FMP_API_KEY', '')\n# Fetch news from Benzinga (by default)\nnews = obb.news.all(limit=5)\nprint(news.results)","lang":"python","description":"Initialize OpenBB with news extension and fetch recent news."},"warnings":[{"fix":"Update imports to use the new OpenBB platform pattern: `from openbb import obb` then `obb.news.all(...)`.","message":"OpenBB v4.0 changed the news API from `obb.news` to `obb.news.all()` and `obb.news.company()`. Also removed the old `openbb_news` module's direct access methods.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Set provider-specific credentials via `obb.user.credentials.PROVIDER_API_KEY = 'key'`.","message":"You must have valid API keys for the news providers (Benzinga, FMP, etc.). The news commands will fail if the provider's API key is missing or invalid.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using `obb.news.all()` directly from the platform without the extension, if your OpenBB version supports it.","message":"The `openbb-news` extension is being phased out in favor of the built-in news providers in OpenBB Platform v4+. Check compatibility before upgrading.","severity":"deprecated","affected_versions":">=4.0.0"}],"env_vars":null,"search_vec":"'1.6.2':28 '3.10':31 '4.0':32 'allow':15 'benzinga':23 'bloomberg':24 'cadenc':38 'data':9,43 'data-provid':42 'extens':3,6,45 'financ':41 'financi':18 'fmp':26 'follow':34 'like':22 'month':37 'news':2,5,8,19,40 'openbb':1,4,13,35,39 'platform':14 'provid':7,10,44 'python':30 'releas':33 'requir':29 'retriev':16 'sourc':21 'version':27","created_at":"2026-06-07T12:56:11.908561+00:00","updated_at":"2026-06-07T12:56:11.908561+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'OpenBBNews' from 'openbb_news' (/tmp/tmpgw5vjz50/venv/lib/python3.12/site-packages/openbb_news/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["analytics"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}