Google Custom Search Engines (CSE): Retrieving just preferred number of results

When using searchers available in Search API, "four results are returned by default. Historically, it has been possible to request a large set of eight results (or ten for filter Custom Search Engines). For instance, with JavaScript API, you can use .setResultSetSize(1) or .setResultSetSize(6) in addition to using enum to request a SMALL_RESULTSET or LARGE_RESULTSET. […]

When using searchers available in Search API, "four results are returned by default. Historically, it has been possible to request a large set of eight results (or ten for filter Custom Search Engines).

For instance, with JavaScript API, you can use .setResultSetSize(1) or .setResultSetSize(6) in addition to using enum to request a SMALL_RESULTSET or LARGE_RESULTSET. When using RESTful interface, you can also use any integer from 1 to 8 with rsz parameter. With this addition, you can now request an arbitrary number of results, based on exact number you need. By requesting only results you're going to show to end-user, you can make your site or app more efficient," explains Google.

Also, this'll control the cursor values that can be used to retrieve subsequent pages of results (and impact paging in Custom Search element).

More Info: Documentation

[Source]