0%
Muvi provides API endpoints that enable you to retrieve your analytics data and visualize it in Power BI. This guide walks you through connecting Muvi Analytics to Power BI using the Blank Query feature in the Power Query Editor.
Step 1: Open Power BI Desktop
Step 2: Create a Blank Query
Step 3: Enter API URL, Handle Headers, and Authentication (Optional)
If your API requires headers (like API keys or tokens), use the following structure:
let
TokenReq = Web.Contents("https://apigateway.muvi.com/get-user-token-details",[
Headers = [
#"Content-Type" = "application/json"
],
Content = Json.FromValue([
secret_key = secret_key,
app_id = app_id
])
]),
TokenJson = Json.Document(TokenReq),
response = TokenJson[response],
access_token = response[access_token],
AnalyticReq = Web.Contents("https://apigateway.muvi.com/analytics/custom-user-report",[
Headers = [
Authorization = "Bearer " & access_token,
#"Content-Type" = "application/json"
],
Content = Json.FromValue([
lifetime = lifetime
])
]),
AnalyticRes = Json.Document(AnalyticReq),
data = AnalyticRes[data]
in
data
Step 4: Transform Data
Step 6: Load the Data
Additional Tips:
Example with Pagination (Basic):
let
Page1 = Json.Document(Web.Contents("https://api.example.com/data?page=1")),
Page2 = Json.Document(Web.Contents("https://api.example.com/data?page=2")),
Combined = List.Combine({Page1, Page2})
in
Combined
Let us know so that we can improve.
Reach out to Muvi at: