Skip to main content
GET
/
api
/
anime
/
{slug}
Get Anime
curl --request GET \
  --url https://api.example.com/api/anime/{slug}
{
  "slug": "<string>",
  "info": {
    "titulo": "<string>",
    "sinopsis": "<string>",
    "generos": [
      {}
    ],
    "imagen_poster": "<string>",
    "fecha_estreno": "<string>"
  },
  "temporadas": {
    "temporada": 123,
    "episodio": 123,
    "titulo": "<string>",
    "fecha": "<string>",
    "imagen": "<string>",
    "url": "<string>"
  },
  "error": "<string>"
}

Endpoint

GET /api/anime/{slug}

Description

Retrieve comprehensive information about an anime series, including metadata, episode listings organized by season, and streaming URLs. This endpoint is specifically for anime series (not anime movies - use /api/pelicula for those).

Path Parameters

slug
string
required
The unique slug identifier for the anime (obtained from /api/listado or search results)

Response

slug
string
required
The anime slug identifier
info
object
required
Anime metadata and information
temporadas
object
required
Episodes organized by season number (keys are season numbers as strings)
error
string
Error message if the anime is not found

Example Request

curl http://localhost:1234/api/anime/attack-on-titan

Example Response

Success Response

{
  "slug": "attack-on-titan",
  "info": {
    "titulo": "Attack on Titan",
    "sinopsis": "After his hometown is destroyed and his mother is killed, young Eren Jaeger vows to cleanse the earth of the giant humanoid Titans that have brought humanity to the brink of extinction.",
    "generos": ["Action", "Adventure", "Animation", "Drama", "Fantasy"],
    "imagen_poster": "https://example.com/aot-poster.jpg",
    "fecha_estreno": "2013-04-07"
  },
  "temporadas": {
    "1": [
      {
        "temporada": 1,
        "episodio": 1,
        "titulo": "To You, in 2000 Years: The Fall of Shiganshina, Part 1",
        "fecha": "2013-04-07",
        "imagen": "https://example.com/ep1-thumb.jpg",
        "url": "https://sololatino.net/animes/attack-on-titan/temporada-1/episodio-1"
      },
      {
        "temporada": 1,
        "episodio": 2,
        "titulo": "That Day: The Fall of Shiganshina, Part 2",
        "fecha": "2013-04-14",
        "imagen": "https://example.com/ep2-thumb.jpg",
        "url": "https://sololatino.net/animes/attack-on-titan/temporada-1/episodio-2"
      }
    ],
    "2": [
      {
        "temporada": 2,
        "episodio": 1,
        "titulo": "Beast Titan",
        "fecha": "2017-04-01",
        "imagen": "https://example.com/s2e1-thumb.jpg",
        "url": "https://sololatino.net/animes/attack-on-titan/temporada-2/episodio-1"
      }
    ]
  }
}

Error Response

{
  "error": "Anime no encontrado"
}
Status: 404 Not Found

Anime vs Serie Endpoints

Both /api/anime/{slug} and /api/serie/{slug} use the same underlying extraction logic and return the same response structure. The difference is:
  • /api/serie/{slug}: Searches Series section first, then Anime section
  • /api/anime/{slug}: Searches only the Anime section
For anime content, either endpoint will work, but /api/anime/{slug} is more efficient as it doesn’t search the Series section first.

Anime Movies vs Anime Series

  • Anime Series (multi-episode): Use /api/anime/{slug} (this endpoint)
  • Anime Movies (single films): Use /api/pelicula/{slug}
Anime movies are stored in the “Peliculas de Anime” section and return player information instead of episode listings.

Using Episode URLs

To get the video player for a specific episode, use the episode’s url field with the /api/iframe_player endpoint:
curl "http://localhost:1234/api/iframe_player?url=https://sololatino.net/animes/attack-on-titan/temporada-1/episodio-1"

Season Organization

Episodes are grouped by season in the temporadas object:
  • Keys are season numbers as strings (“1”, “2”, “3”, etc.)
  • Values are arrays of episode objects
  • Episodes within each season are ordered by episode number
  • Anime typically uses “seasons” to represent different cours or parts

Common Anime Genres

Anime content typically includes these genres:
  • Action
  • Adventure
  • Animation
  • Comedy
  • Drama
  • Fantasy
  • Horror
  • Mecha
  • Mystery
  • Psychological
  • Romance
  • Sci-Fi
  • Seinen
  • Shonen
  • Slice of Life
  • Supernatural

Image Handling

The endpoint handles various image loading strategies:
  • Extracts from lazy-loaded images
  • Falls back to <noscript> tags when needed
  • Uses OpenGraph meta tags as final fallback
  • Returns empty strings if no image is available

Build docs developers (and LLMs) love