🌐
GitHub
https://github.com › Sayad-Uddin-Tahsin › BBC-News-API
GitHub - Sayad-Uddin-Tahsin/BBC-News-API: A simple and yet easy-to-use API for BBC News · GitHub
graph TD; yourpc["Your PC"] bbcweb["BBC ... -->api; api-- Response -->yourpc; ... The bbc-news Python wrapper provides convenient access to the BBC News API from your Python projects....
🌐
PyPI
https://pypi.org › project › bbc-news
bbc-news · PyPI
The bbc-news Python library provides a simple and intuitive interface for accessing the BBC News API, allowing developers to fetch the latest news articles from the British Broadcasting Corporation (BBC) programmatically.
🌐
News API
https://newsapi.org › docs › client-libraries › python
Python client library - News API
Use the unofficial Python client library to integrate News API into your Python application without having to make HTTP requests directly. ... from newsapi import NewsApiClient # Init newsapi = NewsApiClient(api_key='API_KEY') # /v2/top-headlines top_headlines = newsapi.get_top_headlines(q...
🌐
News API
https://newsapi.org › docs › get-started
Get started - Documentation - News API
To get started you'll need an API key. They're free while you are in development. ... You should know how to make web requests in your chosen programming language. We have included some crude ways to do this in our examples below if you need a place to start. Alternatively you can use one of our client libraries. Now let's consider two of the most popular use cases for News ...
🌐
BBC News API Docs
https://bbc-news-api.vercel.app › documentation
BBC News API – Official Documentation
For support, please visit our GitHub repository or join our community discussions. We're here to help you integrate and use the API effectively. The BBC News API can be used with any programming language that supports HTTP requests.
🌐
GitHub
https://github.com › Sayad-Uddin-Tahsin › BBC-News-API › blob › main › README.md
BBC-News-API/README.md at main · Sayad-Uddin-Tahsin/BBC-News-API · GitHub
graph TD; yourpc["Your PC"] bbcweb["BBC ... -->api; api-- Response -->yourpc; ... The bbc-news Python wrapper provides convenient access to the BBC News API from your Python projects....
Author: Sayad-Uddin-Tahsin
🌐
W3Resource
https://w3resource.com › projects › python › web-programming › python-web-programming-9.php
Python Projects: Fetch a list of articles of BBC news - w3resource
August 19, 2022 - Python Code: #Source:https://bit.ly/2MjxHyo import requests _NEWS_API = "https://newsapi.org/v1/articles?source=bbc-news&sortBy=top&apiKey=" def fetch_bbc_news(bbc_news_api_key: str) -> None: # fetching a list of articles in json format bbc_news_page = requests.get(_NEWS_API + bbc_news_api_key).json() # each article in the list is a dict for i, article in enumerate(bbc_news_page["articles"], 1): print(f"{i}.) {article['title']}") if __name__ == "__main__": fetch_bbc_news(bbc_news_api_key="718b1a4a84614ca29a61e2e17ab9a554") Flowchart: Go to: Python Projects Home ↩ ·
🌐
PyPI
https://pypi.org › project › bbc-feeds
bbc-feeds · PyPI
A python package to get news, weather, and sports from BBC
Find elsewhere
🌐
GitHub
https://github.com › mattlisiv › newsapi-python
GitHub - mattlisiv/newsapi-python: A Python Client for News API · GitHub
$ python -m pip install newsapi-python · After installation, import the client class into your project: from newsapi import NewsApiClient · Initialize the client with your API key: api = NewsApiClient(api_key='XXXXXXXXXXXXXXXXXXXXXXX') An instance of NewsApiClient has three instance methods corresponding to three News API endpoints. Use .get_top_headlines() to pull from the /top-headlines endpoint: api.get_top_headlines(sources='bbc-news') Use .get_everything() to pull from the /everything endpoint: api.get_everything(q='bitcoin') Use .get_sources() to pull from the /sources endpoint: api.get_sources() You will encounter an error if you attempt to print the .json() object to the command line.
🌐
GeeksforGeeks
https://geeksforgeeks.org › python › fetching-top-news-using-news-api
Fetching top news using News API - GeeksforGeeks
August 7, 2025 - Steps : 1. Visit https://newsapi.org/ to get your own API key. 2. Install requests package. Below is the implementation of the above idea : Python · # importing requests package import requests def NewsFromBBC(): # BBC news api # following ...
🌐
Aiforautomation
https://aiforautomation.io › home › ai news › bbc has no news api: 3-step python rss workaround
BBC Has No News API: 3-Step Python RSS Workaround | AI for Automation
May 3, 2026 - Use this 3-step Python RSS workaround to extract headlines and full article text. BBC Technology has no public news API — making Python web scraping the only reliable option for developers building automated news pipelines.
🌐
BBC
https://bbc.co.uk › developer › technology › apis.html
BBC - Developer - APIs
Here are some of the best BBC APIs for you to remix/mashup with. Some of these will take you to different sites around the BBC.
🌐
GeeksforGeeks
https://geeksforgeeks.org › fetching-top-news-using-news-api
Fetching top news using News API - GeeksforGeeks
May 26, 2022 - Steps : 1. Visit https://newsapi.org/ to get your own API key. 2. Install requests package. Below is the implementation of the above idea : Python3 · # importing requests package import requests def NewsFromBBC(): # BBC news api # following ...
🌐
BBC
https://developer.bbc.com
BBC Developer Portal
The BBC Developer Portal is a hub for developers across the BBC to access and contribute to APIs and relevant documentation.
Top answer
1 of 1
4

Documentation shows you can use q= for searching query

Code from documentation but with q='corona virus'

from newsapi import NewsApiClient

# Init
newsapi = NewsApiClient(api_key='API_KEY') # fb3a5891a786455bb898f36e92b09f24

# /v2/top-headlines
top_headlines = newsapi.get_top_headlines(q='corona virus',
                                          sources='bbc-news,the-verge',
                                          category='business',
                                          language='en',
                                          country='us')

# /v2/everything
all_articles = newsapi.get_everything(q='corona virus',
                                      sources='bbc-news,the-verge',
                                      domains='bbc.co.uk,techcrunch.com',
                                      from_param='2017-12-01',
                                      to='2017-12-12',
                                      language='en',
                                      sort_by='relevancy',
                                      page=2)

More details in doc for top-headlines


The same with requests.

You can put API Key in url but it is better to put it in header. Url can be saved in some logs.

I used API Key from documentation and it seems it is active but normally you should register on page and get own API Key.

import requests

API_KEY = 'fb3a5891a786455bb898f36e92b09f24'

params = {
    'q': 'corona virus',
    'source': 'bbc-news',
    'sortBy': 'top',
    'language': 'en',
    #'category': 'business',
    #'country': 'us',
    #'apiKey': API_KEY,
}

headers = {
    'X-Api-Key': API_KEY,  # KEY in header to hide it from url
}

url = 'https://newsapi.org/v2/top-headlines'

response = requests.get(url, params=params, headers=headers)
data = response.json()

articles = data["articles"] 
results = [arr["title"] for arr in articles] 

for i, arr in enumerate(results, 1): 
    print(i, arr)

My result:

1 Live updates: CPAC attendee tests positive for coronavirus; Italy considers locking down center of outbreak
2 Trump: Not concerned at all about coronavirus exposure - CNN Video
3 NHL starts closing dressing rooms to media to prevent spread of coronavirus
4 Two Australian Defence Force officers test positive for COVID-19
5 Princess says passenger brought coronavirus on ship; cruise companies to change boarding protocols
6 CPAC Attendee Tests Positive For Coronavirus, Didn't Have Contact With Trump
7 Hobart man who tested positive for coronavirus ignored direction to self-isolate and went to work at hotel
8 Health Minister says its 'not a day for criticism' as Coronavirus GP accuses health minister of 'grandstanding
9 U.S. conservative conference CPAC attendee tests positive for coronavirus
10 Italy poised to seal off north over coronavirus: Live updates
11 Elderly NSW man becomes third Australian to die with coronavirus
12 Coronavirus update: Two Australian Defence Force personnel infected
13 Live updates: CPAC attendee tests positive for coronavirus; Italy considers locking down center of outbreak
14 The divide between those who can buy in bulk, and those who can't
15 Live updates: CPAC attendee tests positive for coronavirus; Italy considers locking down center of outbreak
16 CPAC attendee tested positive for coronavirus
17 Hobart man who tested positive for coronavirus ignored direction to self-isolate and went to work at hotel
18 Coalition pulls multibillion-dollar coronavirus stimulus plan together
19 China January-February exports tumble, imports down as coronavirus batters trade and business
20 U.S. death toll from coronavirus hits 19, New York declares emergency
🌐
BBC News API
https://bbc-news-api.vercel.app
BBC News API
A simple and yet easy-to-use API for BBC News.
🌐
TutorialsPoint
https://tutorialspoint.com › fetching-top-news-using-news-api-in-python
Fetching top news using news API in Python
July 30, 2019 - News API is very famous API for searching and fetching news articles from any web site, using this API anyone can fetch top 10 heading line of news from any web site. But using this API, one thing is required which is the API key. import requests def Topnews(): # BBC news api my_api_key="A...
🌐
Medium
https://medium.com › @pythonprogrammers › base-heading-98a6cd3cbaba
Retrieve Trending NEWS Headlines From NEWS API Using Python | by PYTHON PROGRAMMERS | Medium
July 14, 2020 - ‘sources=bbc-news&’ ‘apiKey=YOUR_API_KEY’) response = requests.get(url) #print (response.json()) response_dict=response.json() print(‘the response_dict contains following key_values’) for x in response_dict: print(x) print(‘\n\ndict type response data is converted into list type’) for x in response_dict: if x==’articles’: response_list=response_dict[x] print(‘convertion successful’) print(‘\n\nthe articles are :’) for i in response_list: print(‘\n\n’) for key in i: print(key,’::’,i[key]) ·