ParseForge Scrapers

BGS UK Earthquakes Scraper

parseforge/bgs-uk-earthquakes-scraper

AutomationOther

Collects UK earthquake events from the British Geological Survey public XML feed. Returns each earthquake as a flat row with magnitude, depth, location coordinates and origin time.

Run this scraper See the API call
Total users
2
Monthly active
1
Total runs
16
Bookmarked
0
Rating
Not rated yet
Last modified
10 days ago

Overview

ParseForge

BGS UK Earthquakes Scraper

Scrape BGS UK earthquake data from the official British Geological Survey XML feed, up to a million events per run. Each earthquake comes with its magnitude, depth, location coordinates, and origin time. No API key required. Export to CSV, JSON, Excel, or XML.

The British Geological Survey publishes near-real-time UK earthquake data, but manually checking their feed or copying records is slow. This Actor reads the official BGS XML feed directly, filters events by minimum magnitude, and returns each earthquake in one fixed schema. You get a clean dataset ready for analysis, without writing a single line of code.

Who uses it What they scrape BGS UK Earthquakes for
Seismology researchers Building a local earthquake catalogue for the British Isles over a custom time window.
Insurance analysts Assessing recent seismic activity near insured properties in the UK.
Data journalists Pulling the latest UK earthquake data for a news story or interactive map.
Geology students Collecting real-world BGS data for a dissertation or coursework project.

What it does

This Actor collects UK earthquake events from the BGS public XML feed and returns each one as a flat row with magnitude, depth, location, and time.

  • πŸ“ Magnitude filter: set a minimum magnitude and the Actor discards smaller events before they reach your dataset.
  • πŸ”— Configurable feed URL: point the Actor at any BGS XML feed endpoint, including historical or regional subsets.
  • πŸ“Š Fixed flat schema: every earthquake arrives as one row with the same columns, ready for spreadsheets or databases.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with BGS UK Earthquakes data

πŸ“ˆ Build a UK earthquake catalogue.

A seismology researcher runs the Actor weekly against the BGS feed to maintain a growing dataset of British earthquakes for statistical analysis.

πŸ—ΊοΈ Populate a live hazard map.

A developer schedules daily runs, filters to magnitude 2.0 and above, and pushes the results to a public-facing UK earthquake map.

πŸ“° Feed a news alert bot.

A data journalist configures the Actor to pull the latest events and trigger a tweet or Slack message whenever a felt earthquake appears.

πŸ“‹ Supply an insurance risk model.

An analyst extracts all BGS events above magnitude 1.5 for the past five years to correlate with claim locations.

Why choose this scraper

What you get
Official BGS source Data comes straight from the British Geological Survey's public seismology feed, the authoritative source for UK earthquakes.
No API key The feed is public. You do not need to register an application or manage tokens.
Magnitude filtering Cut out microseisms and only keep events above your chosen threshold, saving storage and compute.
Scalable collection Paid users can pull up to a million earthquake records in a single run for long-term studies.

How it compares

No other Store actor targets BGS UK Earthquakes the same way, so the honest comparison is with the alternatives teams actually weigh.

BGS UK Earthquakes Scraper Build it in-house By hand
Setup Run it now, zero config Days of engineering None, but hours per pull
When BGS UK Earthquakes changes Maintained for you You fix it You re-learn the page
Proxies, retries, anti-bot Built in Your problem Browser only
Output Fixed JSON schema, CSV/Excel export Whatever you build Copy-paste
Cost Pay per result Engineering time Analyst hours

Configure the run

Drive the Actor from the official BGS XML feed URL and filter by minimum magnitude so only relevant earthquakes reach your dataset. The Input tab lists every parameter.

A first run with the defaults:

{
  "maxItems": 10,
  "feedUrl": "http://quakes.bgs.ac.uk/feeds/MhSeismology.xml",
  "minMagnitude": 0
}

A larger pull:

{
  "maxItems": 200,
  "feedUrl": "http://quakes.bgs.ac.uk/feeds/MhSeismology.xml",
  "minMagnitude": 0
}

Pricing

Pay-per-result: $0.001 per result collected. You pay only for the results written to your dataset.

Results collected Approximate cost
100 results $0.10
1,000 results $1.00
10,000 results $10.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the BGS UK Earthquakes Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to BGS UK Earthquakes through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/bgs-uk-earthquakes-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Check your minMagnitude filter. If it is set higher than any recent UK earthquake, the Actor will return an empty dataset. Try lowering it to 0 to see all events.

The Actor fails with an error about the feed URL.

Ensure the feedUrl field points to a valid BGS XML endpoint. The default is http://quakes.bgs.ac.uk/feeds/MhSeismology.xml. Test the URL in a browser first.

I only got 10 results but I am a paid user.

The maxItems input field defaults to 10. Increase it to the number you need, up to 1,000,000.

The dataset has duplicate earthquakes.

The BGS feed may include the same event in consecutive runs if it has not aged off the feed. Deduplicate on origin time and coordinates in your downstream processing.

Some fields are empty in the output.

The BGS feed sometimes omits optional fields like location description for automatic detections. Empty cells reflect missing data at the source, not a scraping error.

FAQ

Question Answer
What data source does this Actor use? It reads the public XML feed published by the British Geological Survey at quakes.bgs.ac.uk. This is the same feed that powers the BGS website.
Do I need an API key or login? No. The BGS feed is openly accessible. You do not need to register, authenticate, or manage any credentials.
Can I filter by earthquake magnitude? Yes. Set the minMagnitude input field and the Actor will only return events at or above that value.
How many earthquakes can I scrape in one run? Free Apify users are limited to 10 events as a preview. Paid users can set maxItems up to 1,000,000 per run.
What format does the output come in? You can export your dataset to CSV, JSON, Excel, or XML from the Apify platform.
Does this cover the whole United Kingdom? Yes. The BGS feed includes earthquakes detected across the entire UK landmass and its surrounding waters.
Can I use a different BGS feed URL? Yes. The feedUrl input field accepts any valid BGS XML endpoint, so you can target specific date ranges or regional feeds if BGS provides them.
How often is the BGS feed updated? The British Geological Survey updates its feed in near real time as earthquakes are detected and reviewed. You can schedule the Actor to run as frequently as you need.
What fields does each earthquake record contain? Each row includes the event's origin time, latitude, longitude, depth, magnitude, and location description, matching the BGS feed schema.

Related actors

Browse the full ParseForge collection for more scrapers.

πŸ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by British Geological Survey. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

Input

FieldTypeWhat it doesDefault
maxItems integer Free users: limited to 10 earthquakes (preview). Paid users: optional, up to 1,000,000. 10
feedUrl string BGS XML feed URL. http://quakes.bgs.ac.uk/feeds/MhSeismolo
minMagnitude number Filter to magnitudes at or above this value. 0

Pricing

from $0.90 per 1,000 results

Charged forWhat it isPrice each
result Single result in the default dataset. $0.0009 to $0.001

Tiered: the lower figure is the price on a higher Apify plan. Billing and the free credit live on Apify.

API

One POST returns the dataset directly. Same shape for every scraper in the library, so swapping the slug is the only change.

POST Β· run and get results
curl -X POST "https://api.apify.com/v2/acts/parseforge~bgs-uk-earthquakes-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "helloWorld": 123
  }'

Examples

Input that runs as-is.

input.json
{
  "helloWorld": 123
}

Reviews

No reviews yet. Be the first.

Issues

We build and maintain this scraper, so a problem with it comes to us. Report it on the Apify listing and the thread stays attached to the scraper where the next person can find it: open an issue.

Broken and urgent, or you would rather not post in public? Write to parseforge@protonmail.com and it reaches the people who wrote it.

Related scrapers

Run BGS UK Earthquakes Scraper on Apify All scrapers