Forum Discussion

heddend's avatar
14 years ago

Reducing amount of REST calls to improve performance

Hi,

I want to read metrics using the REST API. For catching the monthly pageviews for one year, I would need to call the REST API 12 times - one separate call for each month. This is insufficient.

 

Is there a way to post one call and get back all 12 results from this one call?

 

Cheers,

Dietmar

 

1 Reply

  • I have not found a way.  Even with the new Endpoints feature, you'd still need to make the individual date-bound calls somewhere.  Hopefully LI will chime in for sure, but I would recommend an idea submission.  Perhaps LI could add a new option that would allow granularity in one call (e.g. period={weekly,monthly,quarterly}) that could provide a break down within the REST results.