Skip to main content
The search() method allows you to search for content across the entire ČSFD database. It returns movies, TV series, creators, and users that match your search query.

Method Signature

csfd.search(query: string, options?: CSFDOptions): Promise<CSFDSearch>

Parameters

query
string
required
Search query string. Can be a movie title, person name, or username.
options
CSFDOptions
Optional configuration object

Return Type

Search results containing movies, TV series, creators, and users

Usage Examples

{
  "movies": [
    {
      "id": 19653,
      "title": "Black Bart",
      "year": "1975",
      "url": "https://www.csfd.cz/film/19653-black-bart/",
      "type": "tv-film",
      "colorRating": "bad",
      "poster": "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
      "origins": ["USA"],
      "creators": {
        "directors": [
          {
            "id": 87470,
            "name": "S. Craig Zahler",
            "url": "https://www.csfd.cz/tvurce/87470-s-craig-zahler/"
          }
        ],
        "actors": [
          {
            "id": 1,
            "name": "Mel Gibson",
            "url": "https://www.csfd.cz/tvurce/1-mel-gibson/"
          }
        ]
      }
    }
  ],
  "tvSeries": [
    {
      "id": 71924,
      "title": "Království",
      "year": 1994,
      "url": "https://www.csfd.cz/film/71924-kralovstvi/",
      "type": "series",
      "colorRating": "good",
      "poster": "https://image.pmgstatic.com/cache/resized/w60h85/files/images/film/posters/166/708/166708064_2da697.jpg",
      "origins": ["Dánsko"],
      "creators": []
    }
  ],
  "users": [
    {
      "id": 912,
      "user": "BART!",
      "userRealName": "Lukáš Barták",
      "avatar": "https://image.pmgstatic.com/cache/resized/w45h60/files/images/user/avatars/000/281/281554_1c0fef.jpg",
      "url": "https://www.csfd.cz/uzivatel/912-bart/"
    }
  ],
  "creators": []
}
Search results are limited to what ČSFD returns on the first page. For more specific results, try using more detailed search queries.
You can use the returned IDs to fetch detailed information using the movie() or creator() methods.

Build docs developers (and LLMs) love