Duaer

Skills

在 Duaer 里查地震

在 Duaer 里:来自美国地质调查局(USGS)目录的全球地震,可按震级、日期及某地周边范围筛选:震级、震源深度、时间、位置与海啸标记。一次成功查询用 1 额度。

能拿到什么

每条结果含 eventId、magnitude, magnitudeType、place、time 等字段,并附来源链接。

密钥

调用前先获取 Duaer 密钥.

调用技能

下面这段是给智能体复制的英文技能,和数据市场里的复制内容相同。

---
name: duaer-earthquakes
description: >-
  Duaer Earthquakes. Earthquakes worldwide from the USGS catalog, filtered by magnitude, dates, and a circle around a place: magnitude, depth, time, location, and tsunami flag.
  One successful search uses 1 Duaer credit.
---

# Duaer Earthquakes

Duaer Earthquakes searches the USGS earthquake catalog, newest first. Without dates it covers the last 30 days. Add a place to search a circle around it.

## When to use

- Check recent quakes near a factory, a supplier, or an office.
- List strong quakes in a region and period for a risk report.

## When not to use

- Real-time alerting within minutes. The catalog updates within minutes to hours.
- Other hazards such as fires and storms. Use https://skills.duaer.com/natural-events.md.

## Call

`GET https://api.duaer.com/v1/data/earthquakes?minMagnitude=6&from=2024-01-01&to=2024-12-31`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

Provide at least one of `minMagnitude`, `from`, `to`, `place`, or `latitude` with `longitude`.

- `minMagnitude` — Optional. From 0 to 10, such as 5.
- `from` — Optional. First day, YYYY-MM-DD. Default: last 30 days.
- `to` — Optional. Last day, YYYY-MM-DD.
- `place` — Optional. Center of a search circle, such as Tokyo.
- `latitude` — Optional. Circle center latitude instead of a place.
- `longitude` — Optional. Circle center longitude.
- `radiusKm` — Optional. Circle radius from 1 to 20000 km. Default 500 when a center is set.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/earthquakes?minMagnitude=6&from=2024-01-01&to=2024-12-31` — magnitude 6 and above in 2024.
- `GET https://api.duaer.com/v1/data/earthquakes?place=Tokyo&radiusKm=300&minMagnitude=4` — recent quakes within 300 km of Tokyo.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:

- `eventId` — USGS event id.
- `magnitude`, `magnitudeType` — magnitude and its scale (mww, mb, ml, …).
- `place` — USGS location text.
- `time` — UTC time, ISO 8601.
- `latitude`, `longitude`, `depthKm` — epicenter and depth.
- `tsunami` — true when USGS set the tsunami flag.
- `felt`, `alert` — "Did you feel it?" report count and PAGER alert level, when present.

Fields without a value are left out.

## Credits

A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/natural-events.md — Duaer Natural events
- https://skills.duaer.com/weather.md — Duaer Weather forecast

相关技能