?page=2&sort=name&q=salt%20pepper carries options as key=value pairs joined by &. Values must be percent-encoded (spaces → %20, & → %26) so special characters don't break the structure. In JS, URLSearchParams builds and parses them correctly. Queries suit filtering, paging, and sorting — not sensitive data (URLs get logged).