# MyAnimeList API

> Returns anime, manga and character details, anime search, top anime rankings and the current season's anime.

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

One anime by MyAnimeList id or myanimelist.net URL.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | MyAnimeList anime id, or myanimelist.net anime URL. (e.g. 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: `aired` (string), `duration` (string), `episodes` (integer (int64)), `favorites` (integer (int64)), `genres` (Label[]), `genres[].name` (string), `id` (string), `image` (string), `members` (integer (int64)), `popularity` (integer (int64)), `rank` (integer (int64)), `rating` (string), `score` (number (double)), `scoredBy` (integer (int64)), `season` (string), `source` (string), `status` (string), `studios` (Label[]), `studios[].name` (string), `synopsis` (string), `title` (string), `titleEnglish` (string), `titleJapanese` (string), `type` (string), `url` (string), `year` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/myanimelist/anime?id=1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/myanimelist/searchAnime

Anime that match a search, 25 per page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Search terms. (e.g. naruto) |
| `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: `aired` (string), `duration` (string), `episodes` (integer (int64)), `favorites` (integer (int64)), `genres` (Label[]), `genres[].name` (string), `id` (string), `image` (string), `members` (integer (int64)), `popularity` (integer (int64)), `rank` (integer (int64)), `rating` (string), `score` (number (double)), `scoredBy` (integer (int64)), `season` (string), `source` (string), `status` (string), `studios` (Label[]), `studios[].name` (string), `synopsis` (string), `title` (string), `titleEnglish` (string), `titleJapanese` (string), `type` (string), `url` (string), `year` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/myanimelist/searchAnime?query=naruto" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/myanimelist/topAnime

The top anime by score, popularity or another ranking, 25 per page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `filter` | string | no | Ranking filter: airing, upcoming, bypopularity or favorite. Omit it for the overall top. (one of airing, upcoming, bypopularity, favorite) |
| `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: `aired` (string), `duration` (string), `episodes` (integer (int64)), `favorites` (integer (int64)), `genres` (Label[]), `genres[].name` (string), `id` (string), `image` (string), `members` (integer (int64)), `popularity` (integer (int64)), `rank` (integer (int64)), `rating` (string), `score` (number (double)), `scoredBy` (integer (int64)), `season` (string), `source` (string), `status` (string), `studios` (Label[]), `studios[].name` (string), `synopsis` (string), `title` (string), `titleEnglish` (string), `titleJapanese` (string), `type` (string), `url` (string), `year` (integer (int64))

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

## GET /v1/myanimelist/seasonNow

Anime airing in the current season, 25 per page.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `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: `aired` (string), `duration` (string), `episodes` (integer (int64)), `favorites` (integer (int64)), `genres` (Label[]), `genres[].name` (string), `id` (string), `image` (string), `members` (integer (int64)), `popularity` (integer (int64)), `rank` (integer (int64)), `rating` (string), `score` (number (double)), `scoredBy` (integer (int64)), `season` (string), `source` (string), `status` (string), `studios` (Label[]), `studios[].name` (string), `synopsis` (string), `title` (string), `titleEnglish` (string), `titleJapanese` (string), `type` (string), `url` (string), `year` (integer (int64))

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

## GET /v1/myanimelist/manga

One manga by MyAnimeList id or myanimelist.net URL.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | MyAnimeList manga id, or myanimelist.net manga URL. (e.g. 2) |
| `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: `authors` (Label[]), `authors[].name` (string), `chapters` (integer (int64)), `favorites` (integer (int64)), `genres` (Label[]), `genres[].name` (string), `id` (string), `image` (string), `members` (integer (int64)), `popularity` (integer (int64)), `publishedText` (string), `rank` (integer (int64)), `score` (number (double)), `scoredBy` (integer (int64)), `status` (string), `synopsis` (string), `title` (string), `titleEnglish` (string), `titleJapanese` (string), `type` (string), `url` (string), `volumes` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/myanimelist/manga?id=2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/myanimelist/character

One character by MyAnimeList id or URL, with the anime they appear in.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | MyAnimeList character id, or myanimelist.net character URL. (e.g. 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: `about` (string), `anime` (Work[]), `anime[].id` (string), `anime[].role` (string), `anime[].title` (string), `anime[].url` (string), `favorites` (integer (int64)), `id` (string), `image` (string), `name` (string), `nameKanji` (string), `nicknames` (Label[]), `nicknames[].name` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/myanimelist/character?id=1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
