Skip to content

Search Movies

Heavstal Movie Search API allows developers to build full-scale movie catalogues. It retrieves rich metadata, cover images, torrent distributions and more.

*Note: This endpoint utilizes a 12-hour edge cache for blistering speeds, in some cases torrents may not be available.

POST /api/v1/movies/search

FieldTypeRequiredDescriptionExample
querystringNoSearch query / Movie title."Inception"
pageintegerNoPage number for pagination.1
limitintegerNoResults per page (Max 50, Default 10).10
genrestringNoGenre filter (e.g., Action, Drama, Sci-Fi)."Action"
sort_bystringNoSort by: title, year, rating, peers, seeds, download_count, like_count, date_added."rating"
min_ratingnumberNoMinimum IMDb rating (0-9).7.5
const res = await fetch('https://heavstal.com.ng/api/v1/movies/search', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-api-key': 'YOUR_API_KEY'
},
body: JSON.stringify({
query: "Inception",
limit: 1
})
});
{
"status": "success",
"creator": "HEAVSTAL TECH",
"provider": "yts.gg",
"cached": true,
"cache_ttl": 43190,
"data": {
"count": 1,
"total": 1,
"page": 1,
"movies": [
{
"id": 1,
"title": "Inception",
"description": "A thief who steals corporate secrets through the use of dream-sharing technology...",
"year": 2010,
"rating": 8.8,
"genres": ["Action", "Adventure", "Sci-Fi"],
"poster": "https://yts.gg/assets/images/movies/inception_2010/large-cover.jpg",
"torrents": [
{
"quality": "1080p",
"type": "web",
"size": "2.1 GB",
"seeds": 1250,
"peers": 340,
"url": "https://yts.gg/torrent/download/..."
}
] // Note: Torrents array may be empty in some cases
}
]
}
}