# Crypto Fear & Greed Index API

> Returns the latest and daily historical Crypto Fear & Greed Index readings since 2018.

Category: Finance & Crypto. Region: global. 2 endpoints at `https://api.hoshime.com/v1/feargreed/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/feargreed
## GET /v1/feargreed/index

The latest Crypto Fear & Greed Index readings, newest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 30. (default 1) |
| `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: `classification` (string), `observedAt` (string), `value` (integer (int64))

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

## GET /v1/feargreed/history

The daily Crypto Fear & Greed Index back to 2018-02-01, oldest first, optionally bounded by time.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `from` | integer | no | Keep readings at or after this Unix second. |
| `to` | integer | no | Keep readings at or before this Unix second. |
| `limit` | integer | no | Items per page, 1 to 10000. (default 10000; e.g. 30) |
| `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: `classification` (string), `observedAt` (string), `value` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/feargreed/history?limit=30" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
