0
Answered

Can I export a Smart View through the API?

mark 2 years ago in API updated by Łukasz Kaleta (Senior Customer Success Manager) 2 years ago 3

I'm struggling with this and would love some thoughts. 


I would like to connect through the API a smart view and dump it into a Google Sheet or Google BigQuery. I know that you can connect a smart view in Google DataStudio via the beta connector, and I thought I read on this forum (but can't find it now) that someone said you can export a smart view via the API. However, I can't find that in the API documentation.


Does anyone have any thoughts or ideas on this?


Thanks!!

+1

You can. In the selection box choose Browser

+1

Yep, like Viktor said. You essentially send the view ID and the filter criteria in the API call:

GET http://localhost/home-api/browser/?viewId=123456&q.startDate=fromTo(1428616800000,1429307999999)&q.projectManager=anyOf(signedInUser) HTTP/1.1