# FreeToGame API

> Returns free-to-play games filtered by platform, genre or tag, sorted rankings and single game details.

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

Free-to-play games, optionally filtered by platform or genre category.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `platform` | string | no | pc or browser. Omit it for both. (one of pc, browser) |
| `category` | string | no | Genre category, such as shooter or mmorpg. |
| `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), `developer` (string), `gameUrl` (string), `genre` (string), `id` (string), `platform` (string), `profileUrl` (string), `publisher` (string), `releaseDate` (string), `shortDescription` (string), `thumbnailUrl` (string), `title` (string)

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

## GET /v1/freetogame/game

One free-to-play game by its FreeToGame id, with its description.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | integer | yes | FreeToGame game id. (e.g. 452) |
| `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), `developer` (string), `gameUrl` (string), `genre` (string), `id` (string), `platform` (string), `profileUrl` (string), `publisher` (string), `releaseDate` (string), `shortDescription` (string), `thumbnailUrl` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/freetogame/game?id=452" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/freetogame/filter

Free-to-play games that carry a tag, such as mmorpg or shooter, on pc or browser.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tag` | string | yes | Tag to filter by, such as mmorpg, shooter or battle-royale. (e.g. mmorpg) |
| `platform` | string | no | pc or browser. Omit it for both. (one of pc, browser; e.g. pc) |
| `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), `developer` (string), `gameUrl` (string), `genre` (string), `id` (string), `platform` (string), `profileUrl` (string), `publisher` (string), `releaseDate` (string), `shortDescription` (string), `thumbnailUrl` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/freetogame/filter?tag=mmorpg&platform=pc" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/freetogame/ranked

Free-to-play games sorted by popularity, release date, alphabetical order or relevance.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `sortBy` | string | no | Sort order of the list. (one of popularity, release-date, alphabetical, relevance; default popularity; e.g. popularity) |
| `platform` | string | no | pc or browser. Omit it for both. (one of pc, browser) |
| `category` | string | no | Genre category, such as shooter or mmorpg. |
| `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), `developer` (string), `gameUrl` (string), `genre` (string), `id` (string), `platform` (string), `profileUrl` (string), `publisher` (string), `releaseDate` (string), `shortDescription` (string), `thumbnailUrl` (string), `title` (string)

```bash
curl "https://api.hoshime.com/v1/freetogame/ranked?sortBy=popularity" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
