How get top products, top search terms, top categories

Hi, i need to present the 3 lists for client, first is the 6 top products, second is 6 top categories and top 6 search terms. I guess i need to make some API calls to Analytics, could you please give me some explanation how to do it or link to doc with description. Thanks