# Rotten Tomatoes API

> Returns movie and TV series details with Tomatometer scores, search results and browse lists from Rotten Tomatoes.

Category: Entertainment & Books. Region: US. 4 endpoints at `https://api.hoshime.com/v1/rottentomatoes/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/rottentomatoes
## GET /v1/rottentomatoes/movie

One movie with its Tomatometer, genres, director and cast.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `slug` | string | yes | Movie slug, such as parasite_2019, or rottentomatoes.com movie URL. (e.g. parasite_2019) |
| `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: `actors` (Person[]), `actors[].name` (string), `contentRating` (string), `description` (string), `directors` (Person[]), `directors[].name` (string), `genres` (Genre[]), `genres[].name` (string), `name` (string), `releaseDate` (string), `reviewCount` (integer (int64)), `slug` (string), `tomatometer` (integer (int64) | null), `type` (string), `url` (string), `year` (string)

```bash
curl "https://api.hoshime.com/v1/rottentomatoes/movie?slug=parasite_2019" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/rottentomatoes/tv

One TV series with its Tomatometer, genres and cast.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `slug` | string | yes | TV slug, such as breaking_bad, or rottentomatoes.com TV URL. (e.g. breaking_bad) |
| `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: `actors` (Person[]), `actors[].name` (string), `contentRating` (string), `description` (string), `directors` (Person[]), `directors[].name` (string), `genres` (Genre[]), `genres[].name` (string), `name` (string), `releaseDate` (string), `reviewCount` (integer (int64)), `slug` (string), `tomatometer` (integer (int64) | null), `type` (string), `url` (string), `year` (string)

```bash
curl "https://api.hoshime.com/v1/rottentomatoes/tv?slug=breaking_bad" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/rottentomatoes/search

Movies and TV series that match a search on Rotten Tomatoes, with year and Tomatometer.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Title words to search for. (e.g. parasite) |
| `type` | string | no | all, movie or tv. (one of all, movie, tv; default all; e.g. movie) |
| `limit` | integer | no | Items per page, 1 to 50. (default 50) |
| `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: `cast` (string), `certified` (boolean), `name` (string), `slug` (string), `tomatometer` (integer (int64) | null), `type` (string), `url` (string), `year` (string)

```bash
curl "https://api.hoshime.com/v1/rottentomatoes/search?query=parasite&type=movie" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/rottentomatoes/browse

Titles on a Rotten Tomatoes browse list (in theaters, at home, TV, coming soon), popular first, with their Tomatometer.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `list` | string | no | in_theaters (movies in theaters), at_home (movies at home, popular), tv (TV series, popular) or coming_soon (upcoming movies). (one of in_theaters, at_home, tv, coming_soon; default in_theaters; e.g. in_theaters) |
| `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: `kind` (string), `slug` (string), `title` (string), `tomatometer` (integer (int64) | null), `url` (string)

```bash
curl "https://api.hoshime.com/v1/rottentomatoes/browse?list=in_theaters" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
