Skip to main content
GET
/
api
/
serie
/
{slug}
Get Serie
curl --request GET \
  --url https://api.example.com/api/serie/{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/serie/{slug}

Description

Retrieve comprehensive information about a TV series or anime, including metadata, episode listings organized by season, and streaming URLs. This endpoint automatically searches both the Series and Anime sections.

Path Parameters

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

Response

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

Example Request

curl http://localhost:1234/api/serie/the-last-of-us

Example Response

Success Response

{
  "slug": "the-last-of-us",
  "info": {
    "titulo": "The Last of Us",
    "sinopsis": "Twenty years after modern civilization has been destroyed, Joel must smuggle Ellie out of an oppressive quarantine zone. What starts as a small job soon becomes a brutal, heartbreaking journey.",
    "generos": ["Action", "Adventure", "Drama", "Sci-Fi"],
    "imagen_poster": "https://example.com/thelastofus-poster.jpg",
    "fecha_estreno": "2023-01-15"
  },
  "temporadas": {
    "1": [
      {
        "temporada": 1,
        "episodio": 1,
        "titulo": "When You're Lost in the Darkness",
        "fecha": "2023-01-15",
        "imagen": "https://example.com/ep1-thumb.jpg",
        "url": "https://sololatino.net/series/the-last-of-us/temporada-1/episodio-1"
      },
      {
        "temporada": 1,
        "episodio": 2,
        "titulo": "Infected",
        "fecha": "2023-01-22",
        "imagen": "https://example.com/ep2-thumb.jpg",
        "url": "https://sololatino.net/series/the-last-of-us/temporada-1/episodio-2"
      }
    ],
    "2": [
      {
        "temporada": 2,
        "episodio": 1,
        "titulo": "Season 2 Premiere",
        "fecha": "2024-01-15",
        "imagen": "https://example.com/s2e1-thumb.jpg",
        "url": "https://sololatino.net/series/the-last-of-us/temporada-2/episodio-1"
      }
    ]
  }
}

Error Response

{
  "error": "Serie o anime no encontrado"
}
Status: 404 Not Found

Automatic Section Detection

The endpoint automatically searches for the series in multiple sections:
  1. First searches in the Series section
  2. If not found, searches in the Anime section
  3. Returns 404 if not found in either section
This means you can use the same endpoint for both regular TV series and anime series.

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/series/the-last-of-us/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
  • Each episode includes its own season and episode number for reference

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