Available Endpoints
The CSFD REST API exposes the following endpoints:| Method | Endpoint | Description |
|---|---|---|
GET | / | API information and available endpoints |
GET | /movie/:id | Get detailed movie information |
GET | /search/:query | Search for movies, TV series, and users |
GET | /creator/:id | Get creator details and filmography |
GET | /user-ratings/:id | Get user ratings with pagination |
GET | /user-reviews/:id | Get user reviews with pagination |
GET | /cinemas | Get cinema listings for today |
Root Endpoint
Returns basic API information and available endpoints.
Response
Package name:
node-csfd-apiCurrent API version
Documentation URL
Array of available endpoint paths
Example
Get Movie Details
Retrieve comprehensive information about a movie or TV series.
Path Parameters
The CSFD movie ID (e.g.,
535121)Query Parameters
Language code for content. Supported values:
cs, en, skResponse
CSFD movie ID
Movie title
Release year
CSFD rating percentage (0-100)
Number of ratings
Rating category:
good, average, or badContent type:
film, series, tv-film, etc.Array of genre names
Array of country names
Array of plot descriptions
Object containing directors, actors, writers, music, producers arrays
URL to movie poster image
CSFD URL for the movie
Example
Movie IDs can be found in CSFD URLs:
https://www.csfd.cz/film/535121 → ID is 535121Search
Search for movies, TV series, and users across the CSFD database.
Path Parameters
Search query (URL-encoded)
Query Parameters
Language code for content. Supported values:
cs, en, skResponse
Array of movie results matching the query
Array of TV series results matching the query
Array of user profiles matching the query
Example
Get Creator Details
Get detailed information about a creator including biography and filmography.
Path Parameters
The CSFD creator ID (e.g.,
2120 for Quentin Tarantino)Query Parameters
Language code for content. Supported values:
cs, en, skResponse
CSFD creator ID
Creator’s full name
Birth date in DD.MM.YYYY format
Place of birth
Current age
URL to creator’s photo
Biography text
Array of films with id, title, year, and colorRating
Example
Get User Ratings
Retrieve user ratings from their CSFD profile with pagination and filtering.
Path Parameters
Username or user ID (e.g.,
912 or 912-bart)Query Parameters
Language code. Supported values:
cs, en, skPage number for pagination (default:
1)Fetch all pages of ratings. Use with caution. (default:
false)Delay in milliseconds between page requests when
allPages=trueComma-separated list of content types to include:
film, series, episode, seasonComma-separated list of content types to exclude
Response
Array of rating objects:Content title
Release year
Content type
CSFD URL
CSFD rating category
Date when user rated (DD.MM.YYYY)
User’s rating (1-5 stars)
Examples
Get User Reviews
Retrieve detailed user reviews from their CSFD profile.
Path Parameters
User ID (e.g.,
195357 or 195357-verbal)Query Parameters
Same as User Ratings endpoint.Response
Array of review objects (includes all rating fields plus):Review ID
Review text content
URL to movie poster
Example
Get Cinema Listings
Get cinema listings for today.
Query Parameters
Language code. Supported values:
cs, en, skResponse
Returns cinema showtimes and listings for the current day.Example
Error Responses
All endpoints return consistent error objects:Common Error Codes
| Code | Status | Description |
|---|---|---|
ID_MISSING | 404 | ID parameter is missing from the request |
MOVIE_FETCH_FAILED | 500 | Failed to fetch movie data |
CREATOR_FETCH_FAILED | 500 | Failed to fetch creator data |
SEARCH_FETCH_FAILED | 500 | Failed to fetch search results |
USER_RATINGS_FETCH_FAILED | 500 | Failed to fetch user ratings |
USER_REVIEWS_FETCH_FAILED | 500 | Failed to fetch user reviews |
CINEMAS_FETCH_FAILED | 500 | Failed to fetch cinema data |
PAGE_NOT_FOUND | 404 | Endpoint does not exist |
API_KEY_MISSING | 401 | API key required but not provided |
API_KEY_INVALID | 401 | Invalid API key |