# Turkey Earthquakes - AFAD Official Data (`gmpsignal/turkey-earthquakes-afad-official-data`) Actor

Official Turkey earthquake data from AFAD as clean JSON: magnitude, coordinates, depth and full province/district location for any date range. No API key. Ideal for monitoring and alerting, risk modeling, research, dashboards and AI agents.

- **URL**: https://apify.com/gmpsignal/turkey-earthquakes-afad-official-data.md
- **Developed by:** [GMPSignal](https://apify.com/gmpsignal) (community)
- **Categories:** Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 earthquake records

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Turkey Earthquakes — AFAD Official Data 🇹🇷🌍

Get **earthquake data for Turkey and surrounding regions** straight from AFAD (Turkey's official Disaster and Emergency Management Authority) — as clean JSON with magnitude, coordinates, depth, and full administrative location (province / district / neighborhood).

Turkey is one of the most seismically active countries in the world. This actor gives researchers, insurers, journalists, alerting tools and AI agents a reliable, structured feed of the official record — no API key, no login.

### What you get (per earthquake)

```json
{
  "eventId": "725480",
  "magnitude": 2.6,
  "magnitudeType": "ML",
  "date": "2026-08-13T11:54:06",
  "latitude": 36.97367,
  "longitude": 30.447,
  "depthKm": 6.02,
  "location": "Korkuteli (Antalya)",
  "province": "Antalya",
  "district": "Korkuteli",
  "neighborhood": "Söğütcük",
  "country": "Türkiye",
  "source": "AFAD",
  "scrapedAt": "2026-08-14T02:00:00.000Z"
}
```

### Use cases

- **Monitoring & alerting** — run hourly/daily, diff the dataset, trigger notifications for new events above a threshold
- **Research & risk modeling** — historical windows with exact coordinates and depths (insurers, reinsurers, academics)
- **News & dashboards** — feed live Turkish seismic activity to sites and apps
- **AI agents** — structured disaster data for LLM tools

### Input

- `daysBack` (default 7) or explicit `startDate` / `endDate`
- `minMagnitude` — e.g. 4 for significant events only
- `province` — optional filter (e.g. Istanbul, Izmir)
- `maxItems` — cap the number of events

### Pricing

Pay per event: you are charged only per earthquake record returned — no subscriptions, no minimums.

### Notes

- Data comes from AFAD's public open-data endpoint; timestamps are Turkey time as published by AFAD.
- Not affiliated with AFAD. For life-safety decisions always rely on official channels.
- Issues? Open an issue — response < 24h.

# Actor input Schema

## `daysBack` (type: `integer`):

How many days back from now to fetch (used when startDate is not set).

## `startDate` (type: `string`):

ISO date/time, e.g. 2026-08-01 or 2026-08-01T00:00:00. Overrides daysBack.

## `endDate` (type: `string`):

ISO date/time. Defaults to now.

## `minMagnitude` (type: `integer`):

Only earthquakes with magnitude greater than or equal to this value (0-9).

## `province` (type: `string`):

Only events in this Turkish province, e.g. Istanbul, Izmir, Kahramanmaras. Leave empty for all.

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

Maximum number of earthquakes to return.

## `proxyConfiguration` (type: `object`):

Proxy settings. Apify Proxy (automatic) is recommended.

## Actor input object example

```json
{
  "daysBack": 7,
  "minMagnitude": 0,
  "province": "",
  "maxItems": 2000,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

# 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("gmpsignal/turkey-earthquakes-afad-official-data").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("gmpsignal/turkey-earthquakes-afad-official-data").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 gmpsignal/turkey-earthquakes-afad-official-data --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gmpsignal/turkey-earthquakes-afad-official-data"
        }
    }
}

```

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/rI43ljD2FsdzwcGQC/builds/cUtaeHcibl6IPy17X/openapi.json
