Overview
StreamVault uses The Movie Database (TMDB) API to fetch:- Movie and TV show metadata (titles, overviews, ratings)
- High-quality posters and backdrops
- Episode thumbnails and descriptions
- Streaming search results
You can use either the built-in shared API key (free, subject to rate limits) or your own API key (recommended for unlimited requests).
API Key vs Access Token
TMDB provides two authentication methods:| Method | Use Case | Format |
|---|---|---|
| API Key (v3) | Basic authentication | a1b2c3d4e5f6... (32 chars) |
| Access Token (v4) | Bearer token authentication | eyJhbGc... (JWT format) |
Getting Your TMDB API Key
Create a TMDB Account
Go to themoviedb.org and sign up for a free account
Navigate to API Settings
After logging in, go to:Settings → API → https://www.themoviedb.org/settings/api
Request API Access
Click Request an API Key and fill out the form:
- Type of Use: Personal / Educational
- Application Name: StreamVault (or your preferred name)
- Application URL: You can use
http://localhostfor personal use - Application Summary: Briefly describe you’re using it for a personal media library
Entering API Key in StreamVault
Settings UI Implementation
FromSettingsModal.tsx:862-969:
Default Token Fallback
When no custom API key is configured, StreamVault uses a built-in token via the backend proxy (from.env.example:104-106):
The built-in token is routed through the backend server to protect the shared API key from client-side exposure.
Testing Metadata Fetch
After configuring your API key:Monitor Metadata Fetching
You should see:
- Movie/TV show titles populating
- Posters downloading to
%APPDATA%/StreamVault/image_cache/ - Episode metadata appearing in the UI
Check for Errors
If metadata fails to load:
- Open Developer Console (
Ctrl+Shift+Iin dev mode) - Look for TMDB API errors
- Verify your API key is correct
- Check TMDB API status at status.themoviedb.org
Rate Limits
Built-in Shared Key
- 40 requests per 10 seconds (shared across all users)
- May cause delays during large library scans
Personal API Key
- 40 requests per 10 seconds (per account)
- Sufficient for most personal libraries
- No concurrent user sharing
Configuration Storage
Your API key is stored inmedia_config.json (from config.rs:183):
Auto-Detection Logic
FromSettingsModal.tsx:226-228:
API Usage in Code
StreamVault’s TMDB client (tmdb.rs) handles both authentication methods:
Troubleshooting
Posters Not Loading
Posters Not Loading
- Verify your API key is entered correctly
- Check TMDB API status
- Ensure you have internet connectivity
- Look for errors in
%APPDATA%/StreamVault/logs/
Rate Limit Errors
Rate Limit Errors
- Switch to using your own API key (unlimited personal use)
- Reduce concurrent library scans
- Wait 10 seconds before retrying
Invalid API Key
Invalid API Key
- Ensure you copied the full key (no truncation)
- Try using the Access Token instead of API Key
- Regenerate your API key from TMDB settings
Metadata Not Updating
Metadata Not Updating
- Use Fix Match to manually correct misidentified titles
- Clear image cache: Settings → Advanced → Clean Up Missing Titles
- Force refresh by removing and re-adding media
Next Steps
Google Drive Setup
Connect cloud storage for streaming
Player Setup
Install MPV for video playback
Library Management
Start organizing your media
Metadata Fetching
Learn about automatic metadata