# CoinLore API

> Returns CoinLore global crypto market totals, coin tickers, exchange markets, exchanges and social stats for coins.

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

Total crypto market capitalization, volume and Bitcoin and Ethereum dominance.

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

| 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: `activeMarkets` (integer (int64)), `bitcoinDominancePct` (number (double)), `coins` (integer (int64)), `ethereumDominancePct` (number (double)), `marketCapChangePct` (number (double)), `marketCapUsd` (string), `volume24hUsd` (string), `volumeChangePct` (number (double))

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

## GET /v1/coinlore/tickers

Prices, changes and market caps of coins, in CoinLore's rank order.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 100. (default 100) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `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: `change` (string), `change1hPct` (string), `change7dPct` (string), `changePercent` (string), `high` (string), `id` (string), `low` (string), `marketCapUsd` (string), `name` (string), `open` (string), `price` (string), `priceBtc` (string), `rank` (integer (int64)), `slug` (string), `symbol` (string), `updatedAt` (string), `volume` (string)

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

## GET /v1/coinlore/ticker

Price, changes and market cap of one coin by CoinLore id.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | CoinLore coin id, such as 90 for Bitcoin. (e.g. 90) |
| `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: `change` (string), `change1hPct` (string), `change7dPct` (string), `changePercent` (string), `high` (string), `id` (string), `low` (string), `marketCapUsd` (string), `name` (string), `open` (string), `price` (string), `priceBtc` (string), `rank` (integer (int64)), `slug` (string), `symbol` (string), `updatedAt` (string), `volume` (string)

```bash
curl "https://api.hoshime.com/v1/coinlore/ticker?id=90" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/coinlore/markets

Exchange markets that list one coin, with their latest prices and volumes.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | CoinLore coin id, such as 90 for Bitcoin. (e.g. 90) |
| `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: `base` (string), `exchange` (string), `price` (string), `priceUsd` (string), `quote` (string), `updatedAt` (string), `volume` (string), `volumeUsd` (string)

```bash
curl "https://api.hoshime.com/v1/coinlore/markets?id=90" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/coinlore/exchanges

Crypto exchanges with their country, 24-hour volume in US dollars and number of active pairs, largest volume first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 500. (default 50; 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: `activePairs` (integer (int64)), `country` (string), `id` (string), `name` (string), `nameId` (string), `url` (string), `volumeUsd` (string)

```bash
curl "https://api.hoshime.com/v1/coinlore/exchanges?limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/coinlore/exchange

One crypto exchange by CoinLore id, with every trading pair it lists and their latest prices and volumes.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | CoinLore exchange id, such as 5 for Binance. The exchanges endpoint lists them. (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: `id` (string), `name` (string), `pairs` (Pair[]), `pairs[].base` (string), `pairs[].price` (string), `pairs[].priceUsd` (string), `pairs[].quote` (string), `pairs[].updatedAt` (string), `pairs[].volume` (string), `pairs[].volumeUsd` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/coinlore/exchange?id=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/coinlore/socialStats

Reddit subscribers and Twitter follower counts of one coin, when Coinlore has them.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Coinlore coin id, such as 90 for Bitcoin. (e.g. 90) |
| `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: `id` (string), `redditSubscribers` (integer (int64)), `twitterFollowers` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/coinlore/socialStats?id=90" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
