forked from FuzzyGrim/Yamtrack
-
Notifications
You must be signed in to change notification settings - Fork 0
API
URD0TH edited this page Jul 11, 2026
·
7 revisions
Yamtrack provides a REST API for programmatic access to media tracking. The API uses JWT authentication and returns JSON responses.
https://your-yamtrack-instance.com/api/
POST /api/token/
Request body:
{
"username": "username",
"password": "yourpassword"
}Response:
{
"access": "eyJhbGciOiJIUzI1NiIs...",
"refresh": "eyJhbGciOiJIUzI1NiIs..."
}POST /api/token/refresh/
Request body:
{
"refresh": "eyJhbGciOiJIUzI1NiIs..."
}GET /api/auth/me/
Headers: Authorization: Bearer <access_token>
GET /api/media/<media_type>/
media_type can be: movie, tv, anime, manga, game, book, comic, boardgame, season.
POST /api/media/<media_type>/create/
Request body:
{
"media_id": "12345",
"source": "tmdb"
}POST /api/media/manual/create/
{
"media_type": "movie",
"title": "My Movie",
"status": "Completed",
"progress": 1
}GET /api/details/<media_type>/<media_id>/
GET /api/details/<media_type>/<media_id>/<season_number>/
PUT /api/media/<media_type>/<id>/
{
"score": 8,
"status": "Completed"
}DELETE /api/media/<media_type>/<id>/delete/
GET /api/media/<media_type>/<id>/sync/
POST /api/media/<media_type>/<id>/progress/increase/
POST /api/media/<media_type>/<id>/progress/decrease/
GET /api/home/
Returns in-progress and planning sections for the authenticated user.
POST /api/episodes/
{
"media_id": "999",
"source": "tmdb",
"season_number": 1,
"episode_number": 1
}GET /api/search/?q=<query>&type=<media_type>
type can be: movie, tv, anime, manga, etc.
GET /api/history/<media_type>/<id>/
Returns change history for a media item.
GET /api/statistics/
Returns aggregated statistics for the authenticated user.
| Source | Media Types |
|---|---|
tmdb |
movie, tv |
mal |
anime, manga |
igdb |
game |
openlibrary |
book |
custom |
all |
PlanningIn ProgressCompletedDroppedPausedRepeating