Using GET, all query parameters can be directly specified within the URL.
The following example prints the first five city names from the <b>factbook</b> database:
:<code><nowiki>[http://admin:admin@localhost:8984/rest/factbook?query=(//city/name)[position()<http://admin:admin@localhost:8984/rest/factbook?query=5//city/name]</nowiki></code>
The next request chooses <code>US-ASCII</code> as output encoding and opens the database within the XQuery expression: