Google Custom Search REST number of results (num field)

I’m trying to figure out how to get Google to customize my search to return 20 results per page. I tried to send this REST request by setting up my new custom search engine so that: Standard version: free, ads on results pages.

https://www.googleapis.com/customsearch/v1?key=AIzaSyCgGuZie_Xo-hOECNXOTKp5Yk7deryqro8&cx=015864032944730029962Pointipe0q27hgy&q=test&alt=json&num=20

THIS DOES NOT WORK!

but

https://www.googleapis.com/customsearch/v1?key=AIzaSyCgGuZie_Xo-hOECNXOTKp5Yk7deryqro8&cx=015864032944730029962Pointipe0q27hgy&q=test&alt=json&num=10

IT WORKS!

But reading the documentation on

https://developers.google.com/custom-search/docs/xml_results#numsp

states that:

Additionally. The num parameter specifies the number of search results to return.

The default value of num is 10, and the maximum value is 20. If you request more than 20 results, only 20 results are returned.

Note. If the total number of search results is less than the requested number of results, all available search results will be returned.

Has anyone experienced this problem?

PS: I also tried to send this REST request, setting up my new custom search engine, so that: Site Search: starts at $ 100 per year, ads are optional on the results pages.

But nothing has changed to get 20 results in the request / page

+4
source share
1 answer

This document contains a description of each parameter. He also says that the number is limited to integers from 1 to 10 inclusive.

https://developers.google.com/custom-search/v1/using_rest#query-params

+3
source

All Articles