Official SDKs
AdsCrawl for JavaScript / TypeScript
Fetch rendered pages, structured data and screenshots from your Node.js application. TypeScript types, ESM and CommonJS, and native fetch with no runtime dependencies.
What you can do
Rendered web content
Read JavaScript-rendered pages as Markdown, HTML or structured article JSON.
Page screenshots
Capture a viewport or full page through the screenshot API.
Browser workflows
Use Remote CDP for navigation, clicks and form input across multiple steps.
Before you start
- Node.js 20+
- An AdsCrawl account and API key.
- Set ADSCRAWL_API_KEY in the environment of the process running your client. Keep it out of browser code and source control.
SETUP METHOD 01
Official SDK
Call AdsCrawl directly from your JavaScript / TypeScript application.
Install the package
Run this command in your project. For Go, initialize a module first if the project does not have a go.mod file.
npm install adscrawlConfigure authentication
Set ADSCRAWL_API_KEY in the environment of the process running your client. Keep it out of browser code and source control.
Make your first request
Run this example on the server. It reads Example Domain as Markdown using your account key from the environment.
import AdsCrawl from 'adscrawl'; const client = new AdsCrawl(); const markdown = await client.markdown({ url: 'https://example.com', waitUntil: 'domcontentloaded', }); console.log(markdown);
Usage & limits
- API requests and browser sessions use your AdsCrawl account credits. Installing a client does not include a separate usage allowance.
- For interactive CDP sessions, install your browser automation library separately and close each remote session in a finally block. Avoid automatic retries of metered requests.