Search for media entities using rule triplets
Changed onProvide operator plus one or more rule triplets. At minimum, rule_1, rule_1_operator, rule_1_input are required. Additional rules may be supplied as rule_2, rule_2_operator, rule_2_input, etc. A rule may also carry rule_<n>group (int) to combine it with other rules sharing that id under group<id>_operator (and/or), instead of the top-level operator -- exactly two levels, group ids are not nested.
Request
- Base URLhttps://develop.ampache.dev/rest/8/json
- URLhttps://develop.ampache.dev/rest/8/json/songs/search
- Auth
- HTTP bearer
- or API key in header auth
- or API key in query parameter auth
Query parameters
and, or (whether to match one rule or all)
0, 1 (random order of results; default to 0)
Return results starting from this index position
Maximum number of results to return
Rule field/key for rule 1
Operator for rule 1
Input value for rule 1
Rule field/key for rule 2
Operator for rule 2
Input value for rule 2
Rule field/key for rule 3
Operator for rule 3
Input value for rule 3
Group id for rule 1, to combine it under a group_<id>_operator
Group id for rule 2, to combine it under a group_<id>_operator
Group id for rule 3, to combine it under a group_<id>_operator
and, or (operator joining the rules assigned to group 1)
Response
Search results
Changes
- info
added the new optional
queryrequest parametergroup_1_operator - info
added the new optional
queryrequest parameterrule_1_group - info
added the new optional
queryrequest parameterrule_2_group - info
added the new optional
queryrequest parameterrule_3_group
- info
- info
added the required property
//to the response with the status
- info