# MyAnimeList Search API Documentation

Search public MyAnimeList anime and manga by keyword: for each result the title, url, image, type, score and synopsis, plus episodes or chapters for anime and volumes for manga. A valid empty search result is a successful response.

- **Documentation:** [https://scrappa.co/docs/myanimelist-api/myanimelist_search](https://scrappa.co/docs/myanimelist-api/myanimelist_search)
- **API group:** MyAnimeList API
- **Endpoint:** `GET https://scrappa.co/api/myanimelist/search`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | Yes | Search query, e.g. naruto. |
| `type` | string | No | Search type: anime or manga. Defaults to anime. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/myanimelist/search?q=naruto"
```

## Example response

```json
{
    "success": true,
    "data": {
        "query": "naruto",
        "type": "anime",
        "results": [
            {
                "title": "Naruto",
                "url": "https://myanimelist.net/anime/20/Naruto",
                "image": "https://cdn.myanimelist.net/r/50x70/images/anime/1141/142503.jpg",
                "type": "TV",
                "episodes_or_chapters": 220,
                "score": 8.03,
                "synopsis": "Twelve years ago, a colossal demon fox terrorized the world. During the monster's attack on the Hidden Leaf Village, the Hokage\u2014the village's leader and most powerful ninja\u2014sacrifices himself to seal..."
            }
        ]
    },
    "meta": {
        "endpoint_family": "search",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required query parameter is missing or invalid. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
