API de películas
Películas conocidas con directores, géneros, reparto, valoraciones y taquilla. Datos fijos en memoria: los cambios duran hasta que se reinicia la app.
Tu cuenta desbloquea estos endpoints. Usa Try it en la página de cada endpoint para enviar peticiones.
Estos endpoints necesitan una cuenta gratuita. Crea una o inicia sesión para ver sus detalles y probarlos aquí.
- GET
https://api.testingapis.com/api/MoviesList movies with filtering, sorting, search and paginationList movies with filtering, sorting, search and pagination. - POST
https://api.testingapis.com/api/MoviesCreate a movieCreate a movie. - GETHEAD
https://api.testingapis.com/api/Movies/{id}Get a movie by IDGet a movie by ID (HEAD returns the headers only). - PUT
https://api.testingapis.com/api/Movies/{id}Replace a movieReplace a movie. - PATCH
https://api.testingapis.com/api/Movies/{id}Partially update a movie with a JSON merge patchPartially update a movie with a JSON merge patch. - DELETE
https://api.testingapis.com/api/Movies/{id}Delete a movieDelete a movie. - POST
https://api.testingapis.com/api/Movies/bulkCreate up to 100 movies in one requestCreate up to 100 movies in one request. - DELETE
https://api.testingapis.com/api/Movies/bulkDelete several movies by IDDelete several movies by ID. - GET
https://api.testingapis.com/api/Movies/countCount all moviesCount all movies. - GET
https://api.testingapis.com/api/Movies/genresList every genre used by any movie, sorted and without duplicatesList every genre used by any movie, sorted and without duplicates. - GET
https://api.testingapis.com/api/Movies/topList the highest-rated moviesList the highest-rated movies. - GET
https://api.testingapis.com/api/Movies/year/{year}List movies released in a given yearList movies released in a given year.
Petición de ejemplo
List movies with filtering, sorting, search and pagination. Referencia completa y botón Send (en inglés).
curl -X GET "https://api.testingapis.com/api/Movies?limit=2"[
{
"id": 1,
"title": "The Shawshank Redemption",
"director": "Frank Darabont",
"year": 1994,
"genres": ["Drama"],
"runtimeMinutes": 142,
"rating": 9.3,
"cast": ["Tim Robbins", "Morgan Freeman"],
"boxOffice": 58300000,
"poster": "https://picsum.photos/seed/movie1/300/450"
… (3 more lines)Inicia sesión para ver los detalles
Los parámetros, los ejemplos de petición y respuesta y el panel Try it en vivo de estos endpoints son para miembros con sesión iniciada. Las cuentas son gratuitas y se crean en unos segundos.
Filtros, ordenación y paginación
El endpoint de lista acepta limit, page, offset, sort, order y q, y cualquier nombre de campo como filtro exacto. Los totales vuelven en la cabecera X-Total-Count. Los cambios se guardan en memoria hasta que se reinicia el servidor, así que los tests pueden crear, cambiar y borrar registros con libertad. Referencia de parámetros de query.