curl --request GET \
--url https://api.example.com/api/pelicula/{slug}{
"slug": "<string>",
"player": {
"player_url": "<string>",
"source": "<string>",
"format": "<string>"
},
"info": {
"titulo": "<string>",
"sinopsis": "<string>",
"fecha_estreno": "<string>",
"generos": [
{}
],
"imagen_poster": "<string>"
},
"encontrado_en": "<string>",
"error": "<string>"
}Get movie details and video player information
curl --request GET \
--url https://api.example.com/api/pelicula/{slug}{
"slug": "<string>",
"player": {
"player_url": "<string>",
"source": "<string>",
"format": "<string>"
},
"info": {
"titulo": "<string>",
"sinopsis": "<string>",
"fecha_estreno": "<string>",
"generos": [
{}
],
"imagen_poster": "<string>"
},
"encontrado_en": "<string>",
"error": "<string>"
}GET /api/pelicula/{slug}
/api/listado or search results)curl http://localhost:1234/api/pelicula/spider-man-no-way-home
{
"slug": "spider-man-no-way-home",
"player": {
"player_url": "https://streamvid.net/embed/xyz123",
"source": "streamvid.net",
"format": "iframe"
},
"info": {
"titulo": "Spider-Man: No Way Home",
"sinopsis": "With Spider-Man's identity now revealed, Peter asks Doctor Strange for help. When a spell goes wrong, dangerous foes from other worlds start to appear, forcing Peter to discover what it truly means to be Spider-Man.",
"fecha_estreno": "2021-12-17",
"generos": ["Action", "Adventure", "Sci-Fi"],
"imagen_poster": "https://example.com/spiderman-poster.jpg"
},
"encontrado_en": "peliculas"
}
{
"slug": "demon-slayer-mugen-train",
"player": {
"player_url": "https://streamvid.net/embed/abc789",
"source": "streamvid.net",
"format": "iframe"
},
"info": {
"titulo": "Demon Slayer: Mugen Train",
"sinopsis": "Tanjiro and his friends board the Mugen Train to join Flame Hashira Kyojuro Rengoku in investigating a series of mysterious disappearances.",
"fecha_estreno": "2020-10-16",
"generos": ["Action", "Adventure", "Animation", "Fantasy"],
"imagen_poster": "https://example.com/demonslayer-poster.jpg"
},
"encontrado_en": "peliculas de anime"
}
{
"error": "Película no encontrada en películas ni en películas de anime"
}
404 Not Found
encontrado_en field indicates which section contained the movie.
player object contains all information needed to embed the video:
<iframe
src="{player_url}"
width="100%"
height="500"
frameborder="0"
allowfullscreen
></iframe>
<noscript> tags when needed