# Polymarket API

> Returns Polymarket prediction events with their markets, outcome prices (the odds) and volume, for one event, one topic or the front page.

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

One Polymarket prediction event with all its markets, outcome prices (the odds) and volume.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Event slug or address, such as presidential-election-winner-2028 or https://polymarket.com/event/presidential-election-winner-2028. (e.g. presidential-election-winner-2028) |
| `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: `active` (boolean), `closed` (boolean), `commentCount` (integer (int64)), `description` (string), `endAt` (string), `id` (string), `imageUrl` (string), `liquidityUsd` (string), `markets` (Market[]), `markets[].active` (boolean), `markets[].bestAskPrice` (string), `markets[].bestBidPrice` (string), `markets[].closed` (boolean), `markets[].endAt` (string), `markets[].id` (string), `markets[].label` (string), `markets[].lastTradePrice` (string), `markets[].outcomes` (Outcome[]), `markets[].question` (string), `markets[].slug` (string), `markets[].volumeUsd` (string), `slug` (string), `startAt` (string), `tags` (string[]), `title` (string), `url` (string), `volume24hUsd` (string), `volumeUsd` (string)

```bash
curl "https://api.hoshime.com/v1/polymarket/event?id=presidential-election-winner-2028" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/polymarket/topic

Active Polymarket events of one topic, such as politics or crypto, with their markets and odds.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `topic` | string | yes | Topic slug such as president, politics or crypto, or its https://polymarket.com/predictions/… address. (e.g. president) |
| `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: `active` (boolean), `closed` (boolean), `commentCount` (integer (int64)), `description` (string), `endAt` (string), `id` (string), `imageUrl` (string), `liquidityUsd` (string), `markets` (Market[]), `markets[].active` (boolean), `markets[].bestAskPrice` (string), `markets[].bestBidPrice` (string), `markets[].closed` (boolean), `markets[].endAt` (string), `markets[].id` (string), `markets[].label` (string), `markets[].lastTradePrice` (string), `markets[].outcomes` (Outcome[]), `markets[].question` (string), `markets[].slug` (string), `markets[].volumeUsd` (string), `slug` (string), `startAt` (string), `tags` (string[]), `title` (string), `url` (string), `volume24hUsd` (string), `volumeUsd` (string)

```bash
curl "https://api.hoshime.com/v1/polymarket/topic?topic=president" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/polymarket/trending

The events featured on the Polymarket front page, with their markets and odds.

Scope: `social:read` · Units: 1 · Cached: 5 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: `active` (boolean), `closed` (boolean), `commentCount` (integer (int64)), `description` (string), `endAt` (string), `id` (string), `imageUrl` (string), `liquidityUsd` (string), `markets` (Market[]), `markets[].active` (boolean), `markets[].bestAskPrice` (string), `markets[].bestBidPrice` (string), `markets[].closed` (boolean), `markets[].endAt` (string), `markets[].id` (string), `markets[].label` (string), `markets[].lastTradePrice` (string), `markets[].outcomes` (Outcome[]), `markets[].question` (string), `markets[].slug` (string), `markets[].volumeUsd` (string), `slug` (string), `startAt` (string), `tags` (string[]), `title` (string), `url` (string), `volume24hUsd` (string), `volumeUsd` (string)

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