Evaluate releases against custom formats
const url = 'https://example.com/api/v1/entity-testing/evaluate';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"databaseId":1,"releases":[{"id":1,"title":"example","type":"movie"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/entity-testing/evaluate \ --header 'Content-Type: application/json' \ --data '{ "databaseId": 1, "releases": [ { "id": 1, "title": "example", "type": "movie" } ] }'Parses release titles and evaluates them against all custom formats in the specified database.
This endpoint:
- Parses each release title to extract metadata (resolution, source, languages, etc.)
- Matches regex patterns using .NET-compatible regex via the parser service
- Evaluates each release against all custom formats in the database
- Returns which custom formats match each release
Results are cached for performance - repeated requests with the same titles will be faster.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Database ID to use for custom format evaluation. If omitted, only parsing is performed (no CF matching).
Releases to evaluate
object
Release ID
Release title to parse and evaluate
Type of media
Responses
Section titled “Responses”Evaluation results
object
Whether the parser service is available
Evaluation results for each release
object
Release ID
Release title
Parsed release info (null if parsing failed)
object
Detected source (e.g., bluray, webdl, webrip)
Detected resolution (e.g., 1080p, 2160p)
Quality modifier (e.g., remux, none)
Detected languages
Detected release group
Detected year
Detected edition (e.g., Director’s Cut)
Release type for series (single_episode, season_pack, etc.)
Map of custom format ID to whether it matches
object
Examplegenerated
{ "parserAvailable": true, "evaluations": [ { "releaseId": 1, "title": "example", "parsed": { "source": "example", "resolution": "example", "modifier": "example", "languages": [ "example" ], "releaseGroup": "example", "year": 1, "edition": "example", "releaseType": "example" }, "cfMatches": { "additionalProperty": true } } ]}Invalid request (missing databaseId or releases)
Database cache not available