Submit a parse request (idempotent by canonical-JSON SHA-256)
POST
/api/v1/parse/requests
const url = 'http://localhost:8080/api/v1/parse/requests';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"title":"example","kinopoiskId":"example","imdbId":"example","shikimoriId":"example","decodeLinks":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” X-Created-By
string
Request Body required
Section titled “Request Body required ” 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}Responses
Section titled “ Responses ”OK
Media type */*
object
id
integer format: int64
requestHash
string
status
string
phase
string
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