Latest Movies
This API provides provides real-time feed of the newest movies added to the internet. This endpoint has a shorter 1-hour cache to ensure your app always displays the newest releases.
Endpoint
Section titled “Endpoint” POST
/api/v1/movies/latest Request Parameters
Section titled “Request Parameters”The following parameters are accepted in the request body:
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
limit | integer | Optional | Results per page (Max 50, Default 20). | 10 |
page | integer | Optional | Page number for pagination. | 1 |
Request Examples
Section titled “Request Examples”curl -X POST https://heavstal.com.ng/api/v1/movies/latest \-H "Content-Type: application/json" \-H "x-api-key: <YOUR_API_KEY>" \-d '{"limit": 5}'const response = await fetch('https://heavstal.com.ng/api/v1/movies/latest', { method: 'POST', headers: { 'Content-Type': 'application/json', 'x-api-key': '<YOUR_API_KEY>' }, body: JSON.stringify({ limit: 5 })});
const res = await response.json();console.log(res.data.movies);import { movies } from '@heavstal/api';
// Number = results per page (Max 50, Default 20)const newMovies = await movies.latest(5);console.log(`Latest movie: ${newMovies.movies[0].title}`);import requests
url = "https://heavstal.com.ng/api/v1/movies/latest"headers = { "Content-Type": "application/json", "x-api-key": "<YOUR_API_KEY>"}payload = { "limit": 5}
response = requests.post(url, headers=headers, json=payload)print(response.json()["data"]["movies"])Response Examples
Section titled “Response Examples”{ "status": "success", "creator": "HEAVSTAL TECH", "cached": false, "cache_ttl": 3600, "data": { "count": 5, "page": 1, "movies": [ { "id": 77104, "title": "40 Dates and 40 Nights", "year": 2026, "rating": 0, "genres": ["Comedy", "Romance"], "poster": "https://yts.gg/assets/images/movies/40_dates_and_40_nights_2026/large-cover.jpg" }, { "id": 77103, "title": "Lupi nostri", "year": 2025, "rating": 0, "genres": ["Documentary"], "poster": "https://yts.gg/assets/images/movies/lupi_nostri_2025/large-cover.jpg" } ] }}{ "status": "error", "error": "Failed to fetch latest movies."}