I've retrieved search statistics of my website using Google Analytics API, and the results look quite strange. Groups named "(not set)" and "(not provided)" make up more than 99% of all search hits, and useful search keywords groups are far below 1%.
However, when I view my search stats on the GA website, it shows the "(not set)" group making up about 20% of all search hits, and no "(not provided)" group at all - i.e. totally different data.
Is search stats retrieval via Google API just broken, or there are some ways to make it work properly?