Forum Discussion
Integrate Google Search Console API into Power BI
- Anonymous3 years ago
Hi Anonymous ,
There is a similar thread here, please check Pat's reply if it helps:
Solved: Error getting token for external web API (RingCent... - Microsoft Power BI Community
Best Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Thank you for the help. Really the link you suggested managed to unlock the problem. Here's my code, hoping it might help someone else.
let
// Basic auth
authKey = "Bearer xxxxxx",
url = "https://www.googleapis.com/webmasters/v3/sites/mywebsite.com/searchAnalytics/query?startDate=2022-11-01&endDate=2022-11-03",
// bearer token
GetJson = Json.Document(Web.Contents(url, [Headers=[Authorization=authKey, #"Content-Type"="application/x-www-form-urlencoded;charset=UTF-8"], Content=Text.ToBinary("grant_type=client_credentials")])),
#"Convertido em Tabela" = Record.ToTable(GetJson)
in
#"Convertido em Tabela"
Thanks!
Hi Anonymous , I am trying to do the same but haven't been succsessful, two questions
1) is the bearer auth key the onhe to get from API centre called developer token
2) what type of "access web content" is to be selected (Annonymous, Basic, Web API, etc)
Thanks,
Moiz