Getting different results in Custom Search API and search engine

I am trying to get search engine results using the custom search API.
This is the issue I am facing-

API and CSE search are returning different results. I am not getting all the results in API.  On API I get 18 results, while on CSE (search engine search, using - https://cse.google.com/cse?cx=... I get 64 results.

I have matched the cx parameter and my API uses API key(which is not the free one),  q and cx parameter.

I read in a community thread that the result count may differ on first page, but at least I should get same results in API and CSE search, when I call API for next 10 records.

On subsequent API calls, I don't get the results. Sequence doesn't matter, if results are same.

https://support.google.com/programmable-search/thread/147852884/google-custom-search-json-api-return...

NaliniDadhichDS_0-1680099595284.png

 

0 1 2,344
1 REPLY 1

I am having the same issue. Did you manage to find any solution to this?