# NASA EONET API

> Returns NASA EONET natural events such as fires, storms and volcanoes, with categories, sources and map layers.

Category: Government & Open Data. Region: global. 6 endpoints at `https://api.hoshime.com/v1/eonet/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/eonet
## GET /v1/eonet/events

Natural events (fires, storms, volcanoes and more), filtered by status and category.

Scope: `social:read` · Units: 1 · Cached: 15 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `status` | string | no | open, closed or all events. (one of open, closed, all; default open; e.g. closed) |
| `category` | string | no | Category id, such as wildfires or severeStorms. See categories. |
| `limit` | integer | no | Items per page, 1 to 100. (default 20; e.g. 5) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `categories` (Category[]), `categories[].id` (string), `categories[].title` (string), `closedAt` (string), `description` (string), `id` (string), `places` (Place[]), `places[].latitude` (number (double)), `places[].longitude` (number (double)), `places[].magnitudeUnit` (string), `places[].magnitudeValue` (number (double)), `places[].observedAt` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/eonet/events?status=closed&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/eonet/event

One natural event by its EONET id, such as EONET_25991.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | EONET event id, such as EONET_25991. (e.g. EONET_25991) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `categories` (Category[]), `categories[].id` (string), `categories[].title` (string), `closedAt` (string), `description` (string), `id` (string), `places` (Place[]), `places[].latitude` (number (double)), `places[].longitude` (number (double)), `places[].magnitudeUnit` (string), `places[].magnitudeValue` (number (double)), `places[].observedAt` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/eonet/event?id=EONET_25991" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/eonet/categories

The event categories EONET tracks, with their ids for the events filter.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `description` (string), `id` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/eonet/categories" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/eonet/sources

The agencies and organisations that report events to EONET, with their home page.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `homeUrl` (string), `id` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/eonet/sources" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/eonet/category

One event category with its description, such as wildfires or severeStorms.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Category id, such as wildfires or severeStorms. See categories. (e.g. wildfires) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `description` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/eonet/category?id=wildfires" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/eonet/layers

The NASA GIBS map layers that show one event category, as WMTS or WMS services.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Category id, such as wildfires or severeStorms. See categories. (e.g. wildfires) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `items` (Layer[]), `items[].name` (string), `items[].serviceType` (string), `items[].serviceUrl` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/eonet/layers?id=wildfires" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
