Opencast

Search Service REST Documentation

/search
This service indexes and queries available (distributed) episodes.

General Notes

Table of Contents

Read methods

Method / Path: GET /series.json
Description: Search for series matching the query parameters.
Path params: NONE
Optional (query) params: id: The series ID. If the additional boolean parameter "episodes" is "true", the result set will include this series episodes.
q: Any series that matches this free-text query.
sort: The sort order. May include any of the following dublin core metadata: identifier, title, contributor, creator, modified. Add ' asc' or ' desc' to specify the sort order (e.g. 'title desc').
limit(Default value=20): The maximum number of items to return per page.
offset(Default value=0): The page number.
Response formats: application/json
Status codes: 200: OK, The request was processed successfully.
Notes:
  • Return value description: The search results, formatted as XML or JSON.
Testing:
Sample: /series.json?id={id}&q={q}&sort={sort}&limit=20&offset=0
Testing form (click to reveal)
Method / Path: GET /episode.json
Description: Search for episodes matching the query parameters.
Path params: NONE
Optional (query) params: id: The ID of the single episode to be returned, if it exists.
q: Any episode that matches this free-text query.
sid: Any episode that belongs to specified series id.
sname: Any episode that belongs to specified series name (note that the specified series name must be unique).
sort: The sort order. May include any of the following dublin core metadata: title, contributor, creator, modified. Add ' asc' or ' desc' to specify the sort order (e.g. 'title desc').
limit(Default value=20): The maximum number of items to return per page. Limited to 250 for non-admins.
offset(Default value=0): The page number.
Response formats: application/json
Status codes: 200: OK, The request was processed successfully.
Notes:
  • Return value description: The search results, formatted as xml or json.
Testing:
Sample: /episode.json?id={id}&q={q}&sid={sid}&sname={sname}&sort={sort}&limit=20&offset=0
Testing form (click to reveal)