# Canada Earthquakes – NRCan Seismic Events API (`loudtzu/canada-earthquakes`) Actor

Natural Resources Canada earthquake catalogue via FDSN: time, magnitude, depth, location across Canada. Official open data.

- **URL**: https://apify.com/loudtzu/canada-earthquakes.md
- **Developed by:** [LOUDTZU TZULOUD](https://apify.com/loudtzu) (community)
- **Categories:** News, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Canada Earthquakes – NRCan Seismic Events API

### What it does

Queries Natural Resources Canada's **Earthquakes Canada FDSN event** web service and returns earthquake *catalogue* records for Canada and nearby regions: origin time (UTC), magnitude, depth, coordinates, and bilingual place text. One HTTP request per run. **Event metadata only** — not waveforms, continuous station feeds, or other digital-data products.

Endpoint used: `https://www.earthquakescanada.nrcan.gc.ca/fdsnws/event/1/query`

### Who it's for

Seismic risk analysts, insurers, journalists, educators and apps that need Canadian earthquake events with NRCan place text (including French and industry/quarry labels when published).

### Input

| Key | Notes |
|---|---|
| `startTime` / `endTime` | YYYY-MM-DD (UTC) |
| `minMagnitude` / `maxMagnitude` | e.g. 2.5 |
| `region` | CANADA, BC, AB, SK, MB, ON, QC, ATLANTIC, NORTH (bounding boxes, not exact borders) |
| `placeContains` | Match English or French place text |
| `order` | `time` (newest first) or `time-asc` |
| `maxItems` | default 100, **maximum 20,000** (NRCan FDSN event query ceiling; no paging past it) |

Example: `{"region": "BC", "minMagnitude": 2.5, "startTime": "2026-10-01", "maxItems": 50}`

### Output

`eventId`, `timeUtc`, `latitude`, `longitude`, `depthKm`, `magnitudeType`, `magnitude`, `placeEn`, `placeFr`, `regionHint`, `source`, `licence`.

### Limits (honest)

NRCan's FDSN **event** query accepts at most **20,000** events per request. This Actor enforces that ceiling in the input schema and in code. It does **not** split time windows to go beyond 20,000. Narrow the date or magnitude range if you hit the cap.

### Competitors (checked 2026-11-05, America/Halifax)

| Rival | URL | Price (as listed) | What it returns | Notes vs us |
|---|---|---|---|---|
| ryanclinton/usgs-earthquake-search | https://apify.com/ryanclinton/usgs-earthquake-search | $0.001/event + $0.00005 start | Global USGS FDSN: time, mag, depth, felt/alert/tsunami fields; up to 20k | Cheaper; USGS global network, not NRCan catalogue text |
| pushbuild/usgs-earthquakes | https://apify.com/pushbuild/usgs-earthquakes | $0.0002/event, no start listed | USGS live feeds + historical search | Cheaper; USGS only |

**Measured edge (2026-11-05):** For the same recent Canadian window, NRCan FDSN text returned bilingual place strings and industry labels (e.g. `Quarry blast…/Dynamitage de carrière…`, `Mining-related event, Esterhazy mine…/Événement minier…`). A USGS query near the Whitehorse NRCan event returned a different nearby Alaska epicentre with English-only USGS place text and no NRCan quarry/mining wording. We do **not** beat USGS Actors on price or global coverage. Ship only if NRCan bilingual/catalogue wording is the reason to buy; otherwise prefer a USGS Actor.

### Privacy

Geophysical catalogue events. No personal names or contact fields.

### Licence and terms

- **Catalogue licence:** [Earthquakes in Canada](https://open.canada.ca/data/en/dataset/4cedd37e-0023-41fe-8eff-bea45385e469) on open.canada.ca is under the [Open Government Licence – Canada](https://open.canada.ca/en/open-government-licence-canada) (`license_id` ca-ogl-lgo). Every row carries that attribution.
- **Endpoint:** This Actor calls the live **FDSN event** query above for catalogue fields (id, time, lat/lon, depth, magnitude, place). It does **not** download waveforms or the station “Digital Data” products covered by NRCan’s separate [digital-data licence](https://www.earthquakescanada.nrcan.gc.ca/stndon/licence-en.php) (single-computer / no redistribution wording). Do not conflate those products with this event feed.
- Independent; not endorsed by Natural Resources Canada.

### Pricing

**$0.003 per result, no start fee.**

### Limits

Magnitudes/locations may be revised by NRCan. Region filters are rectangular bounding boxes.

# Actor input Schema

## `startTime` (type: `string`):

YYYY-MM-DD (UTC).

## `endTime` (type: `string`):

YYYY-MM-DD (UTC).

## `minMagnitude` (type: `number`):

e.g. 2.5

## `maxMagnitude` (type: `number`):

Optional upper bound.

## `region` (type: `string`):

Convenience bounding box (not exact borders).

## `placeContains` (type: `string`):

Match English or French place text.

## `order` (type: `string`):

Newest first (time) or oldest first (time-asc).

## `maxItems` (type: `integer`):

Stop after this many events (1–20,000). Hard-capped at the NRCan FDSN event query limit of 20,000; this Actor does not page past that ceiling.

## Actor input object example

```json
{
  "minMagnitude": 2.5,
  "region": "CANADA",
  "order": "time",
  "maxItems": 100
}
```

# Actor output Schema

## `results` (type: `string`):

All items returned by the run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("loudtzu/canada-earthquakes").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("loudtzu/canada-earthquakes").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call loudtzu/canada-earthquakes --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,loudtzu/canada-earthquakes"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/0FuRDaerpXurDMfoP/builds/8fg059MrVBWHPhSmq/openapi.json
