Welcome to the Panopto Community

Please note: All new registrants to the Panopto Community Forum must be approved by a forum moderator or admin. As such, if you navigate to a feature that is members-only, you may receive an error page if your registration has not yet been approved. We apologize for any inconvenience and are approving new members as quickly as possible.

How to limit Search results via API

Hello,
We would like to limit the results to searching the title and description of the event, so that a keyword result will result in the most relevant result.
How could we limit the search results?

Answers

  • Kevin BaumKevin Baum Panopto Employee

    Hi Gino,

    We do not currently have a way to limit our search results using either the SOAP or REST API to only search title and description. All of the search endpoints in our APIs will search through all of the available indexed information (including speech and character recognition) when returning the search results for sessions.

    Please let me know if you have any other questions.

    Thanks,

    Kevin

  • edited May 28

    You can use the query parameter along with the field parameter in the API request. Here's an example of how you can achieve this:

    1. Make sure you have the necessary authentication and API access to perform the search requests in the Panopto Enterprise API.
    2. Use the GET /search endpoint of the Panopto API to perform the search. Include the query parameter to specify the search keyword and the field parameter to restrict the search to the title and description fields.

    Here's an example API request:

    GET /Panopto/api/v1/search?query=keyword&field=title,description
    

    In this example, replace keyword with the actual search keyword you want to use. The title,description value for the field parameter instructs the API to only search in the title and description fields of the events.

Sign In or Register to comment.