Skip to content

Submit a parse request (idempotent by canonical-JSON SHA-256)

POST
/api/v1/parse/requests
curl --request POST \
--url http://localhost:8080/api/v1/parse/requests \
--header 'Content-Type: application/json' \
--data '{ "title": "example", "kinopoiskId": "example", "imdbId": "example", "shikimoriId": "example", "decodeLinks": true }'

Returns 201 for newly-created requests and 200 for an existing active (PENDING/RUNNING) request with the same hash.

X-Created-By
string
Media type application/json
object
title
string
kinopoiskId
string
imdbId
string
shikimoriId
string
decodeLinks
boolean
Example generated
{
"title": "example",
"kinopoiskId": "example",
"imdbId": "example",
"shikimoriId": "example",
"decodeLinks": true
}

OK

Media type */*
object
id
integer format: int64
requestHash
string
status
string
Allowed values: PENDING RUNNING DONE FAILED
phase
string
Allowed values: QUEUED SEARCHING DECODING DONE FAILED
progressDecoded
integer format: int32
progressTotal
integer format: int32
resultContentIds
Array<integer>
errorMessage
string
retryCount
integer format: int32
createdAt
string format: date-time
startedAt
string format: date-time
finishedAt
string format: date-time
lastHeartbeatAt
string format: date-time