Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Capture Webpage Screenshots from a Coda Table with Make

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide shows you how to automatically capture webpage screenshots for every row in a Coda table using Make (formerly Integromat). You’ll set up a scenario that watches for new or updated rows, sends the URL to a screenshot service, and saves the image back to your table. No coding is required, but you’ll need a Make account and basic familiarity with Coda.

What You'll Need

  • A Coda doc with a table that contains a column for URLs (e.g., “Website URL”).
  • A Make account (free or paid).
  • An API key from a screenshot service like ScreenshotOne, Urlbox, or Microlink. (Most offer a free tier.)
  • Optional: A Coda API token if you want to update rows via API (Make’s Coda module can also handle this).

Step-by-Step

  1. Create a new scenario in Make. Log in to Make, click “Create a new scenario,” and give it a name like “Coda Screenshot Capture.”
  2. Add the Coda module as the trigger. Search for “Coda” and choose “Watch Rows” (or “Search Rows” for a manual run). Connect your Coda account by clicking “Add” and following the OAuth flow. Select your document and table.
  3. Set the trigger to watch for new or updated rows. In the module settings, choose “Created Time” or “Updated Time” as the watch field. This ensures the scenario runs only when a row is added or changed, not on every edit.
  4. Add an HTTP request module to call the screenshot service. Click the “+” between the Coda module and the end of the scenario. Search for “HTTP” and choose “Make a Request.” Configure it as a GET request to the screenshot service’s API endpoint. For example, with ScreenshotOne: (replace with the URL from your Coda row).
  5. Set the response to be a binary file. In the HTTP module’s settings, under “Response,” choose “Binary” so Make saves the image data. Also, set “File name” to something like to avoid overwriting.
  6. Add a Coda module to upload the image. Click “+” again and search for Coda. Choose “Upload File” or “Add Row” (depending on your table structure). Connect the same Coda account. Map the file from the HTTP module (e.g., Data and Filename) to an attachment column in your table. If you don’t have an attachment column, create one in Coda first.
  7. Map the URL and file to the correct fields. In the Coda module, select the row ID from the trigger (e.g., ID) and map the file object. If you’re using “Add Row,” you’ll need to specify the table and map the URL column and the attachment column.
  8. Run the scenario once to test. Click “Run once” in Make. Check your Coda table – you should see a new attachment in the row. If it fails, check the error message (see Troubleshooting).
  9. Schedule the scenario. Set the schedule in the trigger module (e.g., every 15 minutes). For real-time updates, you can use Coda’s webhook, but that requires a paid plan; the scheduled polling is sufficient for most use cases.

Common Mistakes

  • Using the wrong trigger type. “Watch Rows” with “Created Time” will only fire for new rows. If you want updates, choose “Updated Time” or use “Watch Rows” with a custom filter.
  • Not mapping the URL correctly. The HTTP module needs the actual URL string. If you map the whole row object, it may send a JSON array instead of a plain URL. Use the “Website URL” field directly.
  • Forgetting to set response as binary. If you leave it as “Text,” Make will try to parse the image as text and fail.
  • Not handling rate limits. Free screenshot APIs often limit requests per month. If you have many rows, you may hit the limit. Add a “Sleep” module (e.g., 1 second) between runs or use a queue.
  • Overwriting files. If you use a static filename like “screenshot.png,” every row will overwrite the same file in Coda. Always include a unique identifier (row ID or URL hash) in the filename.

Tips

  • Use a dedicated screenshot service that allows CORS and has a simple API. ScreenshotOne, Urlbox, and Microlink are popular. Check their documentation for the exact endpoint and parameters.
  • Add a delay between requests. If you process many rows at once, insert a “Sleep” module (e.g., 1 second) to avoid hitting rate limits.
  • Store the API key as a Make variable. Go to “Settings” > “Variables” to store the key once and reference it in the HTTP module as .
  • Use Coda’s “Button” column to trigger a manual run. You can add a button that runs a Make webhook, but that’s more advanced. For simplicity, schedule the scenario.
  • Test with a single row first. Create a test row with a known URL, run the scenario, and verify the screenshot appears before processing your whole table.

Troubleshooting

  • “Error: Invalid URL” or HTTP 400. Check that the URL in your Coda row includes the protocol (http:// or https://). Some services require it. Also, ensure the URL is properly encoded – use the “encodeURIComponent” function in Make if needed.
  • “Error: Unauthorized” or HTTP 401. Your API key is wrong or missing. Double-check the key in the HTTP module URL. Also, ensure the key is active and has not expired.
  • “Error: Rate limit exceeded.” You’ve hit the service’s limit. Wait until the next month or upgrade your plan. Add a sleep module to slow down requests.
  • Image appears broken or empty in Coda. The screenshot service may have failed to capture the page (e.g., the site is down). Check the HTTP module’s response status. Also, verify that the file is actually uploaded – open the attachment in Coda to see if it’s a valid image.
  • Scenario runs but no new rows are processed. The trigger may be set to “Created Time” and you’re editing existing rows. Change the watch field to “Updated Time” or use a filter.
  • Make says “Cannot read property ‘url’ of undefined.” The Coda module didn’t return the expected fields. Re-map the URL field by clicking the “Map” button and selecting the correct column from the trigger’s output.

Frequently Asked Questions

Can I use a free screenshot service?

Yes, most services offer a free tier with limited credits (e.g., 100 screenshots per month). For light use, that’s often enough. If you need more, consider a paid plan or self-hosting a tool like Puppeteer.

Do I need a Coda API token?

No, Make’s Coda modules use OAuth, so you just log in to your Coda account. An API token is only needed if you’re using raw HTTP modules, which is not necessary here.

Can I capture screenshots of pages that require login?

Most screenshot services do not support authenticated sessions. If you need to capture a page behind a login, you may need a service that allows custom cookies or use a headless browser like Puppeteer, which is beyond the scope of this guide.

How do I capture a full-page screenshot instead of just the viewport?

Check your screenshot service’s API parameters. Many allow you to set full_page=true or viewport_width and full_page options. Add these as query parameters in the HTTP module.

What if I want to capture screenshots on a schedule, not on row changes?

You can change the trigger to “Schedule” (e.g., every day) and use a “Search Rows” module to get all rows, then loop through them. This is more complex but doable with Make’s iterator.

Can I store the screenshot in Google Drive instead of Coda?

Yes, replace the Coda upload module with a Google Drive module to upload the file. Then, you can link the Drive file back to Coda using a URL column.