🧙‍♂️ Restmancer API – Movie Endpoints

🔙 Back to Homepage

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:
Examples:

Fields Available

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 ?field=title,rating.

Example: GET /api/movies?field=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"