Web Scraping API for Node.js
Integrate AlterLab's web scraping API into any Node.js project. Works with native fetch, axios, and got. The official npm SDK provides TypeScript-first helpers with full type coverage and promise-based async support.
Quick Start
import fetch from "node-fetch"; // or native fetch in Node 18+
const response = await fetch("https://alterlab.io/api/v1/scrape", {
method: "POST",
headers: {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({ url: "https://example.com" }),
});
const data = await response.json();
console.log(data.content);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 Node.js 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