Query parameters

Query parameters

What are Query Parameters?

Query parameters are a set of key-value pairs that are appended to the end of a URL. They are used to pass additional information to a web server, which can then use this information to generate a customized response. Query parameters are commonly used in web applications to filter, sort, and paginate data. They can also be used to pass authentication tokens, language preferences, and other user-specific information.

How are Query Parameters Used in Loom?

In Loom, query parameters are used to customize the behavior of the Loom API. For example, you can use query parameters to filter the list of videos returned by the API based on criteria such as creation date, duration, or title. You can also use query parameters to paginate the results, limiting the number of videos returned per page. Query parameters can be passed as part of the API request URL, or they can be included in the request body as JSON data.

Examples of Query Parameters in Loom

Here are some examples of query parameters that can be used in Loom:

  • per_page: Limits the number of videos returned per page. Default is 25.
  • page: Specifies the page number to return. Default is 1.
  • sort_by: Specifies the field to sort the videos by. Options include created_at, duration, and title.
  • direction: Specifies the sort order. Options include asc (ascending) and desc (descending).
  • title: Filters the videos by title.
  • created_after: Filters the videos created after a specified date and time.