Restmancer API - Movies
This page documents the available REST endpoints for fetching movie data from the Restmancer API.
GET /api/movies
Returns a list of movies. If the limit is greater than the initial data length (10), more will be generated on the fly.
Optional Query Parameters:
limit– Number of movies to return.fields– Comma-separated list of fields (e.g.,title,rating).genre– Filter by movie genre (e.g.,Action).
Examples:
Fields Available
idtitlegenrerating(float 6.0–10.0)releaseYearcast(array of actor names)descriptionposter(movie poster image URL)
You can control the number of movies returned, filter by genre, and select which fields are included using query parameters like ?limit=3, ?genre=Comedy, or ?fields=title,rating.
Example: GET /api/movies?fields=title,rating&limit=3
import requests
url = "https://restmancer.vercel.app/api/movies"
response = requests.get(url)
print(response.json())
fetch("https://restmancer.vercel.app/api/movies")
.then(res => res.json())
.then(data => console.log(data));
const axios = require("axios");
axios.get("https://restmancer.vercel.app/api/movies")
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error(error);
});
curl "https://restmancer.vercel.app/api/movies"