5. Web Data, APIs and Google Sheets
5.1 The Web Connector
Start with a problem
Amir's team publishes a CSV at a web address every morning. He wants Power BI to read it directly, without downloading it each day.
Explain simply
Get data › Web reads a file or page from a URL. For a CSV URL, Power BI shows the table preview; for an HTML page it lists the tables found.
Show the data
| Order ID | Order Date | City | Store | Platform | Category | Amount (₹) | Delivery mins | Status |
|---|---|---|---|---|---|---|---|---|
| 301 | 06-Apr-2026 | Pune | Kothrud | Blinkit | Dairy | 400 | 8 | Delivered |
| 302 | 06-Apr-2026 | Pune | Baner | Amazon Now | Snacks | 200 | 12 | Delivered |
| 303 | 07-Apr-2026 | Nashik | Gangapur | Blinkit | Dairy | 300 | 14 | Delivered |
| 304 | 04-May-2026 | Nashik | College Road | Blinkit | Fruits | 150 | 9 | Delivered |
| 305 | 04-May-2026 | Kolhapur | Rajarampuri | Amazon Now | Snacks | 450 | 7 | Delivered |
| 306 | 05-May-2026 | Pune | Kothrud | Blinkit | Fruits | 250 | 16 | Delivered |
| 307 | 05-May-2026 | Nashik | College Road | Amazon Now | Dairy | 350 | 11 | Delivered |
| 308 | 05-May-2026 | Kolhapur | Rajarampuri | Blinkit | Dairy | 0 | Cancelled |
About this data: This table uses columns: Order ID, Order Date, City, Store, Platform, Category, Amount (₹), Delivery mins, Status. This table uses columns: Check, Value. This table uses columns: Mode, Use it for, Fields. Values shown are the lesson examples already on this page (not a new dataset).
Fictional sample data. Practice file: visuals_orders_apr_may_2026.csv (source: src/practice/).
Demonstrate
- On this course site, right-click the practice file link below › Copy link address.
- Desktop › Get data › Web.
- Choose Basic, paste the URL › OK.
- Choose Anonymous access for a public file › Connect.
- Transform data; check 8 rows.
Show the result
Your result should look like this (fictional sample):
| Check | Value |
|---|---|
| Rows | 8 |
| Total Amount | ₹2,100 |
Explain what happened
The Web connector downloaded the file at refresh time and parsed it as CSV.
Explore further
- Company URLs often need Organizational account authentication.
Detailed reference for this lesson:
Home › Get data › Web opens the From Web dialog. It has two modes:
| Mode | Use it for | Fields |
|---|---|---|
| Basic | A single full URL | URL |
| Advanced | URLs built from parts, extra HTTP headers, timeouts | URL parts (add several parts that are joined), Command timeout in minutes, HTTP request header parameters (e.g. Accept: application/json) |
The same connector can read:
- HTML pages → tables detected on the page
- Files at a URL → CSV, Excel, JSON, XML (for example a published Google Sheet CSV, 5.6)
- REST APIs → JSON responses (5.4)
Ravindra Bagale's Tip
A common mistake is building a URL with the parameter value glued into the base address. It works in Desktop but can block Service refresh. Keep a static base URL and put the changing parts in the RelativePath and Query options of Web.Contents. Never forget this.
Ravindra Bagale's Tip – मराठी
एक common चूक म्हणजे base address मध्येच parameter value चिकटवून URL बनवणं. Desktop मध्ये चालतं पण Service refresh अडवू शकतं. Base URL static ठेवा आणि बदलणारे भाग Web.Contents च्या RelativePath आणि Query options मध्ये टाका. हे अजिबात विसरू नका.
Ravindra Bagale's Tip – हिंदी
एक common गलती है base address में ही parameter value चिपकाकर URL बनाना. Desktop में चलता है पर Service refresh को रोक सकता है. Base URL static रखो और बदलने वाले हिस्से Web.Contents के RelativePath और Query options में डालो. यह बिल्कुल मत भूलना.
Fix common mistakes
| Wrong result | Reason | Correction |
|---|---|---|
| HTML instead of data | Copied a page link, not the file | Copy the direct file link |
| Access denied | Wrong authentication | Choose correct method in Data source settings |
| Refresh fails in Service | Dynamic URL | Use RelativePath (5.3) |
Practise independently
Practice task
After loading from Web, what is Pune's total?
Hints
- 301, 302, 306.
Solution
₹850.
Think like a professional
Check terms of use before reading any website data.
Revision card