Film-API
Bekannte Filme mit Regie, Genres, Besetzung, Bewertungen und Einspielergebnis. Feste Daten im Speicher: Schreibzugriffe halten bis zum Neustart der App.
Dein Konto schaltet diese Endpunkte frei. Nutze Try it auf der Seite jedes Endpunkts, um Requests zu senden.
Diese Endpunkte brauchen ein kostenloses Konto. Leg eins an oder melde dich an, um ihre Details zu sehen und sie hier auszuprobieren.
- 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.
Beispiel-Request
List movies with filtering, sorting, search and pagination. Vollständige Referenz und Send-Button (auf Englisch).
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)Melde dich an, um die Details zu sehen
Die Parameter, die Beispiele für Request und Antwort und das Live-Panel Try it für diese Endpunkte sind für angemeldete Mitglieder. Konten sind kostenlos und in wenigen Sekunden angelegt.
Filtern, Sortieren und Paginierung
Der Listen-Endpunkt nimmt limit, page, offset, sort, order und q an, dazu jeden Feldnamen als exakten Filter. Die Gesamtzahl kommt im Header X-Total-Count zurück. Schreibzugriffe bleiben bis zum Neustart des Servers im Speicher, Tests können also frei Datensätze anlegen, ändern und löschen. Referenz der Query-Parameter.