Resources
How to download a report from a website every day when there’s no API
Ask the system to send the file first; if it can’t, a scheduled job signs in and downloads it. Then check each file before anyone uses it.
To get a report from a website every day without anyone signing in, first ask the system to send it to you: a scheduled email, or a fixed link to the file.
If it can't, a scheduled job can sign in with an account of its own, click Export and save the file. Either way, check every file before anything uses it, because a download that failed often looks like one that worked.
This is the hardest route in our guide to automating a weekly report: a system with no export feed and no API, where a person signs in each morning, picks a date range and clicks Download.
We checked each tool's behavior below against its own documentation on 16 November 2026. Tools change, so check again if you're reading this much later.
Before you start
- Check you're allowed. Read the site's terms of use. Some forbid automated access, and we won't automate a site whose terms forbid it. Our guide to website data in a spreadsheet covers the other checks.
- Ask about an API anyway. "No API" sometimes means none on your plan, or one that support can switch on. One email to the vendor can save the whole build.
- Write down the clicks. Note the page, the filters, the date range, the button, and the file that comes out. That list is the spec, whichever route you take.
Route 1: have the system send it
Many systems with no API can still email a report on a schedule.
The option is often under Reports, Exports or Notifications, and support can tell you if it exists. It's the sturdiest route, because the site's owner runs it.
Then the only job is to save the attachment somewhere a spreadsheet or script can read it.
Gmail and Google Drive
In Apps Script, a script can find the report's email, take its attachments with getAttachments, and save each one to Drive with createFile.
A time-driven trigger runs it every day.
Google picks a time within the hour you choose, and the script runs under the account of whoever created the trigger. Each run can last up to six minutes (quotas), which is plenty for saving a file.
Outlook and OneDrive
In Power Automate, the Office 365 Outlook trigger When a new email arrives (V3) can watch for one sender and subject, and fire only for emails with attachments. A OneDrive for Business Create file step then saves the attachment to a folder.
Microsoft notes that this trigger may run twice for one email when a mail-scanning feature called Dynamic Delivery is on. Name each file by its report date, so a second save replaces the first instead of adding a copy.
- Works when: the system can email the report as an attachment.
- Stops working when: the email lands in spam, its subject changes, or it sends a link that needs signing in instead of the file. A link behind a sign-in puts you on Route 3.
Route 2: a fixed link to the file
Some systems give an export a fixed web address, such as a share or feed link that works without signing in. If yours does, a spreadsheet can read it directly.
In Google Sheets, IMPORTDATA reads a .csv or .tsv file from a web address, and Google re-fetches it every hour. In Excel, the same address works as a web source for Power Query, refreshed as our website data guide describes.
Treat a link like that as a password. Anyone who has it can download the report, so keep it out of shared sheets and emails, and find out how to replace it if it leaks.
Route 3: a job that signs in and clicks Export
When the only way out is a person clicking a button, a program can click it instead. There are two common ways to build one.
A recorded desktop flow
Power Automate for desktop has a recorder that turns your clicks in Edge, Chrome or Firefox into steps you can replay. Two details catch people out:
- Its Click download link on web page action only works in Internet Explorer, which has reached the end of its life. With a current browser, the flow clicks the button and then has to find the file in the downloads folder.
- To run with nobody at the computer, Microsoft requires the Power Automate Process plan and, on Windows 10 or 11, a machine with nobody signed in. Even a locked session stops an unattended run.
A script that drives a browser
Code that drives a real browser does the same on a server. In Playwright, for example, the script waits for the download that a click starts, then saves it under a name you choose.
Save it straight away, because Playwright deletes downloaded files when the browser session that made them closes. Check that it finished, too: Playwright's download object reports an error for a download that failed or was canceled.
To avoid signing in on every run, Playwright can save the signed-in state, such as cookies and local storage, and reuse it. Its docs warn that this file could be used to impersonate the account, so keep it with your passwords, never in a code repository.
The saved state stops working when the site's session expires, so the job has to notice and sign in again. Run it on a schedule from a server or an always-on computer, not from someone's laptop.
- Works when: the steps are the same every day, and the account can sign in without a person.
- Stops working when: the site changes its layout, adds a sign-in step, or shows a CAPTCHA. Our guide to why automations break covers keeping a job like this healthy.
Plan the sign-in first
The download is the easy part. Signing in is the step most likely to change under you.
- Use an account made for the job, not a person's. A password change or a leaver then doesn't stop it, and the site's logs show what the job did. If the system has roles, give it one that can only view and export.
- Two-step sign-in needs a plan. If a code goes to a person's phone every time, the job can't finish alone. Ask the vendor what they offer for an automated account, such as an API key or a scheduled report.
- Expect the session to end. Saved sign-ins expire. The job should spot that it landed on a sign-in page, sign in again, and alert someone if that fails.
- Stop at a CAPTCHA. It means the site doesn't want automated access. Take that as the answer, and ask the vendor for another route.
Check every file before anything uses it
A failed download often looks like a good one: the job ran, a file exists, and nothing was flagged. Check each file before it feeds anything:
- It's today's file. Compare its date with the run, so yesterday's file in the same folder doesn't pass as today's.
- It's really the report. When a session has expired, a job can save the sign-in page under the report's name. Check that the file is the type you expect, such as a spreadsheet or CSV, and not a web page.
- The columns are the ones you expect. A renamed or missing column should stop the load, not fill the wrong field.
- The dates are right. A report screen can default to a different range, or to the account's time zone. Check that the dates inside the file cover the day you asked for.
- The size is plausible. Compare the row count with recent days. A file with no rows goes to a person, not into the report as a zero.
Keep every original file, named by its date, and never edit it. When someone asks why a number changed, you can open the file the system gave you that day.
Load each file so that a re-run replaces that day's rows rather than adding them again. Our guide to duplicate records covers how.
What you see, and what to do
| What you see | Likely cause | Fix |
|---|---|---|
| No new file today | The email went to spam, or the job never ran | Alert when a day passes with no file |
| The "report" is a web page | The session expired, and the sign-in page was saved | Check the file type; sign in again, then alert |
| Yesterday's numbers in today's report | The job picked up the newest file it found | Check each file's date before loading |
| The job stops at sign-in | A new two-step check, or a changed password | Use an account made for the job; ask the vendor for an automated route |
| A column is empty or shifted | The export's layout changed | Check the headers before every load |
| A day's figures are doubled | A re-run loaded the same file twice | Replace the day's rows instead of adding them |
| It fails after a site redesign | Buttons or pages moved | Fix the steps, and add a check that runs before the download |
When it stops being a small job
A saved attachment or a short script carries one report a long way. It stops being enough when:
- There are several portals, each with its own sign-in and quirks.
- The files feed something that matters, such as invoices, stock, pay or a client report.
- The site keeps changing, and someone fixes the script by hand each time.
- The person who wrote the script is the only one who can fix it.
At that point the job needs what any automation people rely on needs: an account set up for it, a check on every file, an alert when something is missing, and someone who fixes it when the site changes. That's how we move data between systems, and how we build the reports and reconciliations these files feed.
You can see what each step of a build includes.
Written by Pyzen. Drafted with AI help, then checked against each tool's own documentation before publishing.
Next step
Bring us one process.
A free 30‑minute call. An honest answer, even if it isn’t us.