Home / Integrations / Google Sheets
Google Sheets
Pull the latest run’s rows into a sheet with a short Apps Script. The example uses YouTube Transcript & Subtitles Scraper; swap in any actor ID below.
An Apps Script that loads the rows of the actor’s last successful run into the active sheet. The token stays in the script properties, not in a cell. Add a time-driven trigger to refresh it.
// Extensions > Apps Script. Store your token once: Project Settings > Script properties > APIFY_TOKEN.
function importLastRun() {
const token = PropertiesService.getScriptProperties().getProperty('APIFY_TOKEN');
const url = 'https://api.apify.com/v2/acts/arcadium~youtube-transcripts/runs/last/dataset/items?status=SUCCEEDED&clean=true&format=json';
const res = UrlFetchApp.fetch(url, { headers: { Authorization: 'Bearer ' + token } });
const rows = JSON.parse(res.getContentText());
if (!rows.length) return;
const keys = Object.keys(rows[0]);
const values = rows.map((r) => keys.map((k) => (typeof r[k] === 'object' ? JSON.stringify(r[k]) : r[k])));
const sheet = SpreadsheetApp.getActiveSheet();
sheet.clearContents();
sheet.getRange(1, 1, 1, keys.length).setValues([keys]);
sheet.getRange(2, 1, values.length, keys.length).setValues(values);
}Actor IDs
| Actor | Actor ID |
|---|---|
| Agoda and Trip.com Reviews Scraper | arcadium/agoda-tripcom-reviews |
| ATS Lookup | arcadium/ats-lookup |
| Booking.com Reviews Scraper | arcadium/booking-reviews |
| Capterra Products Scraper | arcadium/capterra-products |
| Capterra Reviews Scraper | arcadium/capterra-reviews |
| Career Site Jobs Scraper | arcadium/career-site-jobs |
| AutoScout24 Scraper | arcadium/eu-car-listings |
| Google Hotel Reviews Scraper | arcadium/google-hotel-reviews |
| Google Hotels Scraper | arcadium/google-hotels |
| Google News Scraper | arcadium/google-news |
| Google Trends Scraper | arcadium/google-trends |
| Hotel Reviews Scraper | arcadium/hotel-reputation |
| Review Monitor | arcadium/reputation-monitor |
| Seek Jobs Scraper | arcadium/seek-jobs |
| Software Reviews Scraper | arcadium/software-reviews |
| Tripadvisor Reviews Scraper | arcadium/tripadvisor-reviews |
| TrustRadius Reviews Scraper | arcadium/trustradius-reviews |
| YouTube Transcript & Subtitles Scraper | arcadium/youtube-transcripts |
| YouTube Scraper | arcadium/youtube-videos |