๐ Available Endpoints
๐ Query Parameters
The following query parameters can be used to filter and sort the movie results:
title
โ Search for movie title (partial match). Example:?title=Inception
min_vote_average
โ Minimum average vote or rating given by viewers. Example:?min_vote_average=7.5
min_vote_count
โ Minimum total count of votes received for the movie. Example:?min_vote_count=1000
status
โ The status of the movie (e.g., Released, Rumored, Post Production). Example:?status=Released
release_date
โ Date when the movie was released (format: YYYY-MM-DD). Example:?release_date=2021-12-25
min_revenue
โ Minimum total revenue generated by the movie. Example:?min_revenue=1000000
min_runtime
โ Minimum duration of the movie in minutes. Example:?min_runtime=120
adult
โ Indicates if the movie is suitable only for adult audiences. Example:?adult=true
has_backdrop
โ Only return movies with a backdrop image. Example:?has_backdrop=true
sort_by
โ Sort bytitle
,vote_average
,vote_count
,release_date
,revenue
, orruntime
. Example:?sort_by=vote_average
sort_order
โ Sort order:asc
ordesc
(default: asc). Example:?sort_order=desc
limit
โ Limit the number of results (default: 20, max: 100). Example:?limit=10
๐ Example Requests
Fetch Movies with Title "Inception"
GET https://nathanspackman.com/movieAPI/get.php?title=Inception
Fetch Movies with Minimum Vote Average of 7.5
GET https://nathanspackman.com/movieAPI/get.php?min_vote_average=7.5
Fetch Movies Sorted by Vote Average in Descending Order
GET https://nathanspackman.com/movieAPI/get.php?sort_by=vote_average&sort_order=desc
Fetch 10 Random Movies
GET https://nathanspackman.com/movieAPI/get.php?limit=10
Fetch Movies with Backdrop Images Only
GET https://nathanspackman.com/movieAPI/get.php?limit=12&has_backdrop=true
๐ฆ Response Format
The API returns a JSON array of movie objects. Each movie object contains the following fields:
{
"id": 12345,
"title": "Inception",
"vote_average": 8.3,
"vote_count": 12345,
"status": "Released",
"release_date": "2010-07-16",
"revenue": 829895144,
"runtime": 148,
"adult": false,
"backdrop_path": "https://example.com/backdrop.jpg"
}
๐งช Live API Tester
๐ Privacy Policy
We value your privacy. Please read our Privacy Policy to understand how we collect, use, and protect your personal information.
๐ Terms of Service
By using our API, you agree to our Terms of Service. Please review them to understand your rights and responsibilities.