公
EMSC API
6 endpointsGovernment & Open DataGlobalsocial:read5 real examples
Returns earthquakes from the Euro-Mediterranean Seismological Centre: latest, searched by window, nearby, counts and single events.
View as Markdown| GET | /emsc/latest | The most recent earthquakes in the Euro-Mediterranean region, newest first. |
| GET | /emsc/search | Earthquakes in a time window and above a magnitude, newest first. |
| GET | /emsc/strongest | The strongest earthquakes of the Euro-Mediterranean region in a time window, largest magnitude first: the big events of a year, or of all time. |
| GET | /emsc/nearby | Earthquakes within a radius of a point, newest first. |
| GET | /emsc/count | How many earthquakes the Seismic Portal lists for a magnitude and date window (30 days by default). |
| GET | /emsc/quake | One earthquake by its EMSC event id, such as 20240101_0000001. |
latest
GET
/v1/emsc/latestThe most recent earthquakes in the Euro-Mediterranean region, newest first.
scope social:read1 unitcached 1 minpaginated
Parameters
minMagnitudestring | Smallest magnitude, such as 3. |
limitinteger | Items per page, 1 to 200. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
authority | string |
depthKm | number (double) |
id | string |
latitude | number (double) |
longitude | number (double) |
magnitude | number (double) |
magnitudeType | string |
originAt | string |
region | string |
url | string |
curl "https://api.hoshime.com/v1/emsc/latest" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/emsc/latest", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/emsc/latest", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "authority": "INGV", "depthKm": 8.9, "id": "20261106_0000221", "latitude": 42.7178, "longitude": 12.4775, "magnitude": 2.1, "magnitudeType": "ml", "originAt": "2026-11-06T17:49:26Z", "region": "CENTRAL ITALY", "url": "https://www.emsc-csem.org/Earthquake/earthquake.php?id=20261106_0000221" }, { "authority": "BMKG", "depthKm": 10, "id": "20261106_0000220", "latitude": -2.9, "longitude": 122.39, "magnitude": 3.5, "magnitudeType": "m", "originAt": "2026-11-06T17:38:51Z", "region": "SULAWESI, INDONESIA", "url": "https://www.emsc-csem.org/Earthquake/earthquake.php?id=20261106_0000220" } ], "meta": { "cached": false, "endpoint": "latest", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "emsc", "requestId": "req_2Xb9kQ…", "units": 1 } }
search
GET
/v1/emsc/searchEarthquakes in a time window and above a magnitude, newest first.
scope social:read1 unitcached 5 minpaginated
Parameters
minMagnitudestring | Smallest magnitude, such as 4.5. e.g. 7 |
startstring | Start date, YYYY-MM-DD (UTC). e.g. 2023-02-01 |
endstring | End date, YYYY-MM-DD (UTC). Defaults to now. e.g. 2023-02-28 |
limitinteger | Items per page, 1 to 200. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
authority | string |
depthKm | number (double) |
id | string |
latitude | number (double) |
longitude | number (double) |
magnitude | number (double) |
magnitudeType | string |
originAt | string |
region | string |
url | string |
curl "https://api.hoshime.com/v1/emsc/search?minMagnitude=7&start=2023-02-01&end=2023-02-28" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/emsc/search?minMagnitude=7&start=2023-02-01&end=2023-02-28", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/emsc/search?minMagnitude=7&start=2023-02-01&end=2023-02-28", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "authority": "EMSC", "depthKm": 10, "id": "20230206_0000222", "latitude": 38.11, "longitude": 37.24, "magnitude": 7.5, "magnitudeType": "mw", "originAt": "2023-02-06T10:24:49Z", "region": "CENTRAL TURKEY", "url": "https://www.emsc-csem.org/Earthquake/earthquake.php?id=20230206_0000222" }, { "authority": "EMSC", "depthKm": 20, "id": "20230206_0000008", "latitude": 37.17, "longitude": 37.08, "magnitude": 7.8, "magnitudeType": "mw", "originAt": "2023-02-06T01:17:36Z", "region": "CENTRAL TURKEY", "url": "https://www.emsc-csem.org/Earthquake/earthquake.php?id=20230206_0000008" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "emsc", "requestId": "req_2Xb9kQ…", "units": 1 } }
strongest
GET
/v1/emsc/strongestThe strongest earthquakes of the Euro-Mediterranean region in a time window, largest magnitude first: the big events of a year, or of all time.
scope social:read1 unitcached 30 minpaginated
Parameters
minMagnitudestring | Smallest magnitude, such as 5. |
startstring | Start date, YYYY-MM-DD (UTC). Leave it out for the whole catalogue. e.g. 2023-02-01 |
endstring | End date, YYYY-MM-DD (UTC). Defaults to now. e.g. 2023-02-28 |
limitinteger | Items per page, 1 to 200. default 20e.g. 3 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
authority | string |
depthKm | number (double) |
id | string |
latitude | number (double) |
longitude | number (double) |
magnitude | number (double) |
magnitudeType | string |
originAt | string |
region | string |
url | string |
curl "https://api.hoshime.com/v1/emsc/strongest?start=2023-02-01&end=2023-02-28&limit=3" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/emsc/strongest?start=2023-02-01&end=2023-02-28&limit=3", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/emsc/strongest?start=2023-02-01&end=2023-02-28&limit=3", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "authority": "…", "depthKm": 0, "id": "abc123", "latitude": 0, "longitude": 0, "magnitude": 0, "magnitudeType": "…", "originAt": "2026-11-06T09:41:00Z", "region": "…", "url": "https://…" } ], "meta": { "cached": false, "endpoint": "strongest", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "emsc", "requestId": "req_2Xb9kQ…", "units": 1 } }
nearby
GET
/v1/emsc/nearbyEarthquakes within a radius of a point, newest first.
scope social:read1 unitcached 5 minpaginated
Parameters
latstring required | Latitude of the centre, -90 to 90. e.g. 38.11 |
lonstring required | Longitude of the centre, -180 to 180. e.g. 37.24 |
radiusKmstring | Radius in kilometres, from 1 to 1000. default 100e.g. 50 |
minMagnitudestring | Smallest magnitude, such as 3. e.g. 7 |
startstring | Start date, YYYY-MM-DD (UTC). e.g. 2023-02-01 |
endstring | End date, YYYY-MM-DD (UTC). Defaults to now. e.g. 2023-02-28 |
limitinteger | Items per page, 1 to 200. default 20 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
authority | string |
depthKm | number (double) |
id | string |
latitude | number (double) |
longitude | number (double) |
magnitude | number (double) |
magnitudeType | string |
originAt | string |
region | string |
url | string |
curl "https://api.hoshime.com/v1/emsc/nearby?lat=38.11&lon=37.24&radiusKm=50&minMagnitude=7&start=2023-02-01&end=2023-02-28" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/emsc/nearby?lat=38.11&lon=37.24&radiusKm=50&minMagnitude=7&start=2023-02-01&end=2023-02-28", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/emsc/nearby?lat=38.11&lon=37.24&radiusKm=50&minMagnitude=7&start=2023-02-01&end=2023-02-28", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "authority": "EMSC", "depthKm": 10, "id": "20230206_0000222", "latitude": 38.11, "longitude": 37.24, "magnitude": 7.5, "magnitudeType": "mw", "originAt": "2023-02-06T10:24:49Z", "region": "CENTRAL TURKEY", "url": "https://www.emsc-csem.org/Earthquake/earthquake.php?id=20230206_0000222" } ], "meta": { "cached": false, "endpoint": "nearby", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "emsc", "requestId": "req_2Xb9kQ…", "units": 1 } }
count
GET
/v1/emsc/countHow many earthquakes the Seismic Portal lists for a magnitude and date window (30 days by default).
scope social:read1 unitcached 30 min
Parameters
minMagnitudestring | Smallest magnitude, such as 5. e.g. 5 |
startstring | Start date, YYYY-MM-DD (UTC). Defaults to 30 days ago. e.g. 2024-01-01 |
endstring | End date, YYYY-MM-DD (UTC). Defaults to now. e.g. 2024-01-08 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
count | integer (int64) |
endDate | string |
minMagnitude | string |
startDate | string |
curl "https://api.hoshime.com/v1/emsc/count?minMagnitude=5&start=2024-01-01&end=2024-01-08" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/emsc/count?minMagnitude=5&start=2024-01-01&end=2024-01-08", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/emsc/count?minMagnitude=5&start=2024-01-01&end=2024-01-08", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "count": 45, "endDate": "2024-01-08", "minMagnitude": "5", "startDate": "2024-01-01" }, "meta": { "cached": false, "endpoint": "count", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "emsc", "requestId": "req_2Xb9kQ…", "units": 1 } }
quake
GET
/v1/emsc/quakeOne earthquake by its EMSC event id, such as 20240101_0000001.
scope social:read1 unitcached 1 h
Parameters
idstring required | EMSC event id, such as 20240101_0000001. e.g. 20240101_0000001 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
authority | string |
depthKm | number (double) |
id | string |
latitude | number (double) |
longitude | number (double) |
magnitude | number (double) |
magnitudeType | string |
originAt | string |
region | string |
url | string |
curl "https://api.hoshime.com/v1/emsc/quake?id=20240101_0000001" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/emsc/quake?id=20240101_0000001", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/emsc/quake?id=20240101_0000001", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "authority": "THE", "depthKm": 10, "id": "20240101_0000001", "latitude": 35.14, "longitude": 24.12, "magnitude": 2.3, "magnitudeType": "ml", "originAt": "2024-01-01T00:00:29Z", "region": "CRETE, GREECE", "url": "https://www.emsc-csem.org/Earthquake/earthquake.php?id=20240101_0000001" }, "meta": { "cached": false, "endpoint": "quake", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "emsc", "requestId": "req_2Xb9kQ…", "units": 1 } }