XMDb REST API Documentation
Complete API for accessing XMDb movie, TV show, and people data
Introduction
Welcome to the XMDb REST API documentation. This API provides access to comprehensive movie, TV show, and people data from XMDb.
Features
- Get detailed movie and TV show information
- Access cast, crew, and person details
- Browse seasons and episodes
- Search for content
- Get trending movies and shows
- Multi-language support
🔐 Authentication Required
This API requires an API key for all requests. Please enter your API key below to test the endpoints.
How to get an API Key?
Contact the API administrator to get your API key. Once you have it, enter it above to start testing the endpoints.
Method 1: Query Parameter
https://xmdbapi.com/api/v1/movies/tt0111161?apiKey=YOUR_API_KEY
Method 2: Header
curl -H "X-API-Key: YOUR_API_KEY" https://xmdbapi.com/api/v1/movies/tt0111161
Base URL
All API requests should be made to this base URL.
Movies - Get Movie Details
Get comprehensive information about a movie or TV show including cast, crew, ratings, and more.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| movie_id | string | Yes | XMDb ID (e.g., tt0111161) |
| lang | string | No | Language code (e.g., en, tr, de) |
https://xmdbapi.com/api/v1/movies/tt0111161
https://xmdbapi.com/api/v1/movies/tt0111161?lang=tr
Try it out!
Enter a movie ID and click 'Send Request' to see the response
People - Get Person Details
Get detailed information about actors, directors, and other film industry professionals including biography, filmography, awards, and personal information.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| person_id | string | Yes | XMDb person ID (e.g., nm0000209) |
| lang | string | No | Language code (e.g., en, tr) |
Response Fields
- id: XMDb person ID
- name: Full name
- birth_date: Date of birth
- biography: Main biography
- filmography: Known works with details
- awards: Award wins and nominations
- professions: List of professions
https://xmdbapi.com/api/v1/people/nm0000209 - Tim Robbins
https://xmdbapi.com/api/v1/people/nm0000138 - Leonardo DiCaprio
Try it out!
Enter a person ID and click 'Send Request' to see the response
Search - Search Movies & People
Search for movies, TV shows, and people by name. Returns a list of matching results with basic information and images.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | Search query (movie, show, or person name) |
| limit | integer | No | Maximum number of results (default: 10, max: 50) |
| lang | string | No | Language code for results |
Response Fields
- query: Search query used
- total: Number of results
- results: Array of matching items
- type: "title" or "person"
- id: XMDb ID
- name: Title or person name
- year: Release year (for titles)
- image: Image URL
https://xmdbapi.com/api/v1/search?q=inception&limit=5
https://xmdbapi.com/api/v1/search?q=leonardo+dicaprio&limit=10
Try it out!
Enter a search query and click 'Send Request' to see the results
Trending - Get Trending Content
Get currently trending movies and TV shows based on XMDb traffic. Includes detailed information about each trending title including cast, ratings, and genres.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| count | integer | No | Number of trending items (default: 10, max: 50) |
| after | string | No | Cursor for pagination (use next_cursor from previous response) |
| lang | string | No | Language code |
Response Fields
- count: Number of results in this response
- has_next_page: Whether more results available
- next_cursor: Cursor for next page (only if has_next_page is true)
- results: Array of trending titles (ordered by
rank)
- rank: Trending rank
- weight_rank: Weighted ranking score
- id: XMDb ID
- title: Movie/show title
- title_type: Type (Movie, TV Series)
- release_year: Release year
- runtime_minutes: Duration in minutes
- rating: XMDb rating
- vote_count: Number of votes
- genres: Array of genres
- plot: Plot summary
- poster_url: Poster image URL
- poster_width/height: Image dimensions
- credits: Cast and crew
https://xmdbapi.com/api/v1/trending - Default (10 items)
https://xmdbapi.com/api/v1/trending?count=20 - Get 20 trending items
https://xmdbapi.com/api/v1/trending?count=10&after=CURSOR_VALUE - Next page (use next_cursor from
response)
Try it out!
Enter the number of trending items you want to retrieve
TV Series - Get Seasons & Episodes
Get comprehensive season and episode information for TV series. Supports filtering by season number, year, or top rated episodes.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| series_id | string | Yes | XMDb series ID (e.g., tt0944947) |
| season | integer | No | Specific season number to get episodes |
| year | integer | No | Filter episodes by release year |
| top_rated | integer | No | Get top N rated episodes |
| lang | string | No | Language code |
Response Fields
- series_id: XMDb series ID
- series_title: Series name
- season_count: Total number of seasons
- episodes: Array of episode objects
- id: Episode XMDb ID
- title: Episode title
- episode_number: Episode number
- season_number: Season number
- rating: XMDb rating
- release_date: Air date
https://xmdbapi.com/api/v1/seasons/tt0944947 - All seasons info
https://xmdbapi.com/api/v1/seasons/tt0944947?season=1 - Season 1
episodes
https://xmdbapi.com/api/v1/seasons/tt0944947?top_rated=10 - Top 10
episodes
Try it out!
Enter series ID and optionally a season number
Videos - Get Movie Videos
Get trailers, clips, behind-the-scenes, and other video content for a movie or TV show. Includes multiple quality options and video metadata.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| movie_id | string | Yes | XMDb ID |
| limit | integer | No | Maximum videos (default: 20) |
| type | string | No | Set to 'grouped' for videos by type |
Response Fields
- latest_trailer: Featured trailer
- videos: Array of video objects
- id: Video ID
- name: Video title
- type: Video type (Trailer, Clip, etc.)
- runtime_seconds: Duration
- url: Best quality URL
- all_urls: All quality options
https://xmdbapi.com/api/v1/videos/tt0111161
https://xmdbapi.com/api/v1/videos/tt0111161?type=grouped
Try it out!
Enter a movie ID to get available videos
Reviews - Get Movie Reviews
Get user reviews for a movie or TV show with ratings, helpfulness votes, and full review text. Supports pagination and sorting options.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| movie_id | string | Yes | XMDb ID |
| max_pages | integer | No | Max pages (25 reviews per page, default: 1) |
| sort_by | string | No | HELPFULNESS_SCORE, SUBMIT_DATE, or RATING |
Response Fields
- total: Number of reviews
- reviews: Array of review objects
- author: Username
- rating: User rating (1-10)
- upvotes: Helpful votes
- summary: Review title
- text: Full review text
https://xmdbapi.com/api/v1/reviews/tt0111161
https://xmdbapi.com/api/v1/reviews/tt0111161?max_pages=2
Try it out!
Enter a movie ID to get user reviews
Images - Get Movie Images
Get poster and still images for a movie or TV show. Includes image dimensions and captions.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| movie_id | string | Yes | XMDb ID |
| limit | integer | No | Maximum images (default: 20) |
Response Fields
- total: Total images available
- images: Array of image objects
- url: Image URL
- width: Image width
- height: Image height
- caption: Image description
https://xmdbapi.com/api/v1/images/tt0111161
https://xmdbapi.com/api/v1/images/tt0111161?limit=10
Try it out!
Enter a movie ID to get available images
Poster - Get Movie Poster
Get high-quality poster for a movie or TV show with optional custom width and quality settings.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| movie_id | string | Yes | XMDb ID |
| width | integer | No | Poster width in pixels |
| quality | integer | No | Quality percentage 1-100 |
https://xmdbapi.com/api/v1/poster/tt0111161
(Original high quality)
https://xmdbapi.com/api/v1/poster/tt0111161?width=500&quality=85
(Medium size, good quality)
https://xmdbapi.com/api/v1/poster/tt0111161?width=300
(Small size, original quality)
https://xmdbapi.com/api/v1/poster/tt0111161?quality=75
(Original size, compressed)
https://xmdbapi.com/api/v1/poster/tt0111161?width=1000&quality=90
(Large size, high quality)
Try it out!
Enter a movie ID and optional width/quality
Posters - Get Multiple Posters
Get posters for multiple titles at once.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | string | Yes | Comma-separated XMDb IDs |
| width | integer | No | Poster width (applies to all) |
| quality | integer | No | Quality 1-100 (applies to all) |
https://xmdbapi.com/api/v1/posters?ids=tt0111161,tt0468569,tt0108052
(3 posters, original quality)
https://xmdbapi.com/api/v1/posters?ids=tt0111161,tt0468569&width=500&quality=85
(2 posters, medium size)
https://xmdbapi.com/api/v1/posters?ids=tt0111161,tt0468569,tt0108052,tt0167260&width=300
(4 posters, small thumbnails)
Try it out!
Enter comma-separated movie IDs
Poster Sizes - Get Poster in Multiple Sizes
Get poster in multiple predefined sizes.
Predefined Sizes
| Size Name | Width | Quality | Use Case |
|---|---|---|---|
| thumbnail | 150px | 70% | Small previews, lists |
| small | 300px | 75% | Mobile devices, cards |
| medium | 500px | 85% | Tablets, detail pages |
| large | 1000px | 90% | Desktop, high-res displays |
| original | Full size | Maximum | Print, archival |
https://xmdbapi.com/api/v1/poster/tt0111161/sizes
Try it out!
Enter a movie ID to get poster in all sizes
Connections - Sequels, Prequels, Remakes & References
Get title relationships such as sequels, prequels, remakes, spin-offs, references and more. Filter by one or more category, or omit the filter to receive every connection type with its category label.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| movie_id | string | Yes | XMDb title ID (e.g. tt0232500) |
| category | string | No | Single category or comma-separated list. Empty = all categories. |
| first | integer | No | Page size (default: 50, max: 100) |
| after | string | No | Pagination cursor — pass end_cursor from a previous response |
| lang | string | No | Localized title preference (default: en) |
Available Categories
| Category | Meaning |
|---|---|
followed_by | Sequels — titles that come after this one |
follows | Prequels — titles this one continues from |
remake_of | This title is a remake of … |
remade_as | Remakes of this title |
spin_off | Spin-offs from this title |
spin_off_from | This title is a spin-off of … |
references | Titles this one references |
referenced_in | Titles that reference this one |
features | Titles featured inside this one |
featured_in | Titles that feature this one |
spoofs | Titles this one parodies |
spoofed_in | Titles that parody this one |
edited_into | Footage from this title used in … |
edited_from | This title uses footage from … |
version_of | Alternate version of … |
alternate_language_version_of | Translated/dubbed version of … |
Response Fields
- movie_id: Source title ID
- title / original_title: Source title text
- categories_filter: Active filter (or null when none)
- total: Total connections matching the filter
- count: Items returned in this page
- has_more / end_cursor: Pagination state — pass end_cursor as 'after' for the next page
- connections: Array of connection items
- category / category_name: Connection type id and human-readable label
- description: Optional editorial note from XMDb
- associated_title: Linked title with id, title, year, type, poster, rating, vote_count, imdb_url
https://xmdbapi.com/api/v1/connections/tt0232500?category=followed_by
- Sequels of The Fast and the Furious
https://xmdbapi.com/api/v1/connections/tt0232500
- Every connection (no filter)
https://xmdbapi.com/api/v1/connections/tt0232500?category=followed_by,follows
- Multiple categories at once
https://xmdbapi.com/api/v1/connections/tt0076759?category=references&first=20
- What Star Wars references
https://xmdbapi.com/api/v1/connections/tt0076759?category=referenced_in&first=50&after=NzkzMg==
- Pagination — fetch the next page
Try it out!
Enter a title ID and (optionally) a category — leave category empty to receive all connection types.
Upcoming Releases - Calendar / Coming Soon
Get upcoming movies, TV series and episodes — the same data that backs the XMDb calendar page. Supports date-range filtering, region override, and pagination.
Path Parameter
| Value | Description |
|---|---|
movie | Theatrical / streaming movies |
tv | TV series premieres |
episode | Individual upcoming episodes |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| start | string | No | Inclusive lower bound, YYYY-MM-DD (default: today) |
| end | string | No | Inclusive upper bound, YYYY-MM-DD |
| region | string | No | 2-letter country code (TR, US, UK …) — discovery filter |
| first | integer | No | Page size (default: 50, max: 100) |
| after | string | No | Pagination cursor — pass end_cursor from a previous response |
Response Fields
- type / start_date / end_date / region: Echo of request filters
- count: Items returned in this page
- has_more / end_cursor: Pagination state
- results: Array of upcoming title objects
- id, title, original_title, type, year
- release_date, release_country, release_country_code: Primary release date (often US)
- runtime_minutes, rating, vote_count, genres, plot
- poster_url / poster_width / poster_height
- credits: Grouped by Director / Writers / Stars
- trailer: latestTrailer (id, name, thumbnail, url)
- imdb_url
https://xmdbapi.com/api/v1/upcoming/movie
- Movies releasing from today onwards
https://xmdbapi.com/api/v1/upcoming/movie?start=2026-05-01&end=2026-05-31
- Date range — May 2026
https://xmdbapi.com/api/v1/upcoming/movie?region=TR&first=20
- Region-filtered discovery for Turkey
https://xmdbapi.com/api/v1/upcoming/tv?first=10
- Upcoming TV series
https://xmdbapi.com/api/v1/upcoming/episode?first=10
- Upcoming individual episodes
https://xmdbapi.com/api/v1/upcoming/movie?first=50&after=END_CURSOR
- Pagination — fetch the next page
Try it out!
Pick a release type and (optionally) narrow with date range or region.
Made with ❤️ for XMDb API enthusiasts