milmilmilmil
API 參考

Watch Progress

Watch progress save/list/clear and history

POST
/api/v1/progress

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/api/v1/progress" \  -H "Content-Type: application/json" \  -d '{    "media_file_id": "string",    "position_seconds": 0,    "duration_seconds": 0  }'
Empty
DELETE
/api/v1/progress

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Response Body

application/json

curl -X DELETE "https://example.com/api/v1/progress"
{  "deleted": 0}
POST
/api/v1/progress/batch-delete

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/progress/batch-delete" \  -H "Content-Type: application/json" \  -d '{    "ids": [      "string"    ]  }'
{  "deleted": 0}
GET
/api/v1/progress/file/{fileId}

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Path Parameters

fileId*string

Response Body

application/json

curl -X GET "https://example.com/api/v1/progress/file/string"
{  "id": "string",  "media_file_id": "string",  "episode_id": 0,  "position_seconds": 0,  "duration_seconds": 0,  "completed": true,  "updated_at": "string"}
GET
/api/v1/progress/history

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Query Parameters

before?string

Cursor: last_watched_at of the last item from the previous page

Formatdate-time
limit?integer
Rangevalue <= 100
Default40
filter?string
Default"all"

Value in

  • "all"
  • "in_progress"
  • "completed"
q?string

Case-insensitive LIKE match against anime title or title_zh

Response Body

application/json

curl -X GET "https://example.com/api/v1/progress/history"
{  "items": [    {      "id": "string",      "media_file_id": "string",      "episode_id": 0,      "position_seconds": 0,      "duration_seconds": 0,      "completed": true,      "updated_at": "string"    }  ],  "next_before": "2019-08-24T14:15:22Z"}
GET
/api/v1/progress/recent

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Response Body

application/json

curl -X GET "https://example.com/api/v1/progress/recent"
[  {    "id": "string",    "media_file_id": "string",    "episode_id": 0,    "position_seconds": 0,    "duration_seconds": 0,    "completed": true,    "updated_at": "string"  }]
DELETE
/api/v1/progress/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

Pass an API token obtained from POST /api/v1/auth/login or POST /api/v1/api-tokens. Tokens have the prefix mlml_.

In: header

Path Parameters

id*string

Response Body

application/json

curl -X DELETE "https://example.com/api/v1/progress/string"
{  "deleted": 0}