Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi All,
Im struggeling to set up connection to MarineTraffic. I have a key from MarineTracffic but im unable to get the source to work.
I have a request limit 1 pr hour.
When i paste the link in Edge browser i get a expexted result. But not in Power Bi.
https://services.marinetraffic.com/api/expectedarrivals/"APIKEY"?v=3&msgtype=extended&protocol=xml&portid=NOAES&fromdate=2021-11-05%2012%3A00%3A00&todate=2021-11-06%2012%3A00%3A00)
This is what i have in the query:
let
Source = Xml.Document(Web.Contents("https://services.marinetraffic.com/api/expectedarrivals/"APIKEY"?v=3&msgtype=extended&protocol=xml&portid=NOAES&fromdate=2021-11-07%2012%3A00%3A00&todate=2021-11-08%2012%3A00%3A00)"))
in
Source
Any ideas?
Hi @Wikolin ,
You may try:
Source = Xml.Document(Web.Contents("https://xxx&APIKey="))
Similar thread:
https://community.powerbi.com/t5/Power-Query/API-query-return-a-range-of-selection/m-p/1905051
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Please try this instead with 2 sets of quotation marks
let
Source = Xml.Document(Web.Contents("https://services.marinetraffic.com/api/expectedarrivals/""APIKEY""?v=3&msgtype=extended&protocol=xml&portid=NOAES&fromdate=2021-11-07%2012%3A00%3A00&todate=2021-11-08%2012%3A00%3A00)"))
in
Source
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 8 | |
| 7 | |
| 7 |