Skip to main content
The ČSFD API library includes powerful CLI tools that allow you to interact with ČSFD.cz directly from your terminal. These tools are perfect for automation, data export, and running standalone servers.

Installation

You can use the CLI tools in two ways:

NPX (No Installation)

Run commands instantly without installing anything:
npx node-csfd-api <command>

Homebrew (Global Install)

Install globally on macOS/Linux:
brew install bartholomej/tap/csfd
csfd <command>
All examples below use npx node-csfd-api, but if you installed via Homebrew, simply replace it with csfd (e.g., csfd export ratings 912).

Available Commands

Export Ratings

Backup your ČSFD ratings to CSV, JSON, or Letterboxd format

REST Server

Run a standalone REST API server for the ČSFD API

MCP Server

Run a Model Context Protocol server for AI integrations

Help

Display help information:
npx node-csfd-api help

Quick Start Examples

# Export to CSV (default)
npx node-csfd-api export ratings 912

# Export to JSON
npx node-csfd-api export ratings 912 --json

# Export to Letterboxd format
npx node-csfd-api export ratings 912 --letterboxd

When to Use Each Tool

Export Ratings

Use this when you want to:
  • Create a backup of your ČSFD ratings
  • Migrate your ratings to Letterboxd
  • Analyze your viewing history with custom tools
  • Generate reports from your rating data

REST Server

Use this when you want to:
  • Build a web application using ČSFD data
  • Create a public API service
  • Integrate ČSFD data into existing systems
  • Cache and optimize ČSFD requests

MCP Server

Use this when you want to:
  • Query ČSFD data through AI assistants like Claude
  • Build AI-powered movie recommendation systems
  • Enable natural language queries to ČSFD
  • Integrate ČSFD into LLM workflows

Command Reference

CommandDescription
server, apiStart the REST API server
mcpStart the MCP server for AI agents
export ratings <userId>Export user ratings
help, --help, -hShow help message

Next Steps

Export Ratings

Learn about all export formats and options

REST Server

Set up and configure the REST API server

MCP Server

Integrate ČSFD with AI tools

Build docs developers (and LLMs) love