Skip to content

Trending Movies

This API provides a pre-sorted feed of the most popular and highly-downloaded movies right now. Perfect for populating the “Featured” or “Hot” sections of your streaming app.

POST /api/v1/movies/trending

The following parameters are accepted in the request body:

FieldTypeRequiredDescriptionExample
limitintegerOptionalResults per page (Max 50, Default 20).10
pageintegerOptionalPage number for pagination.1
Terminal window
curl -X POST https://heavstal.com.ng/api/v1/movies/trending \
-H "Content-Type: application/json" \
-H "x-api-key: <YOUR_API_KEY>" \
-d '{"limit": 5}'
{
"status": "success",
"creator": "HEAVSTAL TECH",
"cached": false,
"cache_ttl": 21600,
"data": {
"count": 5,
"page": 1,
"movies": [
{
"id": 2934,
"title": "Superbad",
"year": 2007,
"rating": 7.6,
"genres": ["Action", "Comedy"],
"poster": "https://yts.gg/assets/images/movies/Superbad_2007/large-cover.jpg"
},
{
"id": 8462,
"title": "Avengers: Infinity War",
"year": 2018,
"rating": 8.4,
"genres": ["Action", "Adventure", "Drama", "Fantasy", "Sci-Fi"],
"poster": "https://yts.gg/assets/images/movies/avengers_infinity_war_2018/large-cover.jpg"
}
]
}
}