Web Scraping API for Google Sheets
Pull live web data into Google Sheets using AlterLab's API. Use Apps Script to trigger scraping jobs, extract structured data, and write results directly to spreadsheet cells — no browser extensions or manual copy-paste required.
Quick Start
// Google Apps Script — Tools → Script Editor
function scrapeToSheet() {
const apiKey = "YOUR_API_KEY";
const url = "https://example.com/product";
const response = UrlFetchApp.fetch(
"https://alterlab.io/api/v1/scrape",
{
method: "POST",
headers: {
"X-API-Key": apiKey,
"Content-Type": "application/json",
},
payload: JSON.stringify({
url: url,
extract: { price: "number", title: "string" },
}),
}
);
const data = JSON.parse(response.getContentText());
const sheet = SpreadsheetApp.getActiveSheet();
sheet.appendRow([url, data.extracted.title, data.extracted.price]);
}Need an API key? Sign up free — no credit card required.
How It Works
Send a URL
POST any public URL to the AlterLab API with your API key. The API handles JavaScript rendering and access automatically.
Receive structured data
The API returns clean JSON with page content, metadata, and any structured fields you requested via an extraction schema.
Use in your project
Integrate the response into your Google Sheets application, database, or workflow. No scraper maintenance required.
Common Use Cases
Frequently Asked Questions
Explore All Integrations
View all SDK and tool integrations on the Integrations overview.
Responsible Use
AlterLab is designed for extracting publicly available data. Always review the terms of service for any website you access, respect robots.txt directives, and ensure your use case complies with applicable laws in your jurisdiction.
Your first scrape.
Sixty seconds.
$1 free balance. No credit card. No SDK.
Just a POST request.
No credit card required · Up to 5,000 free scrapes · Balance never expire