TestingAPIs is still being built. If something breaks, email support@testingapis.com.

List the highest-rated movies

GEThttps://api.testingapis.com/api/Movies/topSign in to see this endpoint's URL

Parameters 1

NameTypeDescription
limitquery · integer (int32)How many to return, clamped to 1-100 (default 10). Default: 10.

Responses

200
Movies sorted by rating, highest first.
400
limit is not an integer.

Example

Request
curl -X GET "https://api.testingapis.com/api/Movies/top?limit=3" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
[
  {
    "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"
  },
  {
… (24 more lines)

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.