DEV Community

Donny Nguyen
Donny Nguyen

Posted on

BBC News Headlines API — Free to Use

Get BBC News Headlines in Your App with This Simple API

Need real-time news data? The BBC News Headlines API lets you fetch the latest news stories programmatically. No scraping, no hassle—just clean JSON responses ready to integrate into your dashboard, mobile app, or news aggregator.

What It Does

This API pulls the latest BBC News headlines across different sections—business, technology, entertainment, and more. Each headline includes the story title, description, URL, and publication timestamp. Perfect for building news apps, widgets, or content feeds without maintaining your own scraper.

Quick Start: Fetch Headlines

Here's everything you need to get started:

const options = {
  method: 'GET',
  headers: {
    'X-RapidAPI-Key': 'YOUR_API_KEY_HERE',
    'X-RapidAPI-Host': 'bbc-news-headlines-api-production.up.railway.app'
  }
};

fetch('https://bbc-news-headlines-api-production.up.railway.app/api/headlines?section=business', options)
  .then(response => response.json())
  .then(data => {
    console.log('Latest headlines:', data);
    // data contains array of headlines with title, description, url, publishedAt
  })
  .catch(error => console.error('Error fetching headlines:', error));
Enter fullscreen mode Exit fullscreen mode

Real Response Example

{
  "success": true,
  "headlines": [
    {
      "title": "Stock market reaches new high",
      "description": "Major indices surge on positive earnings reports...",
      "url": "https://www.bbc.com/news/business_12345",
      "publishedAt": "2024-01-15T10:30:00Z",
      "source": "BBC News"
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode

Supported Sections

Query different news categories by changing the section parameter:

  • business
  • technology
  • entertainment
  • sport
  • health
  • science
  • world

Just swap out the section in your URL: ?section=technology, ?section=sport, etc.

Use Cases

  • News dashboards: Display BBC headlines on internal company displays
  • Content aggregators: Mix BBC news with other sources
  • Mobile apps: Add real-time news sections to your app
  • Chatbots: Include latest headlines in bot responses
  • Email newsletters: Programmatically generate daily news digests

Get Your API Key

Sign up on RapidAPI and grab your free API key. The free tier gives you enough requests to build and test—upgrade if you need higher limits for production.

Ready to add BBC headlines to your project? Try it now on RapidAPI and start building with real news data today.

Top comments (0)