Observe the current page
Read page text or capture a screenshot using your browser client, then pass the required observation to your model. Keep the page URL with the result.
Browser for AI Agents
Connect your agent's tool layer to a real cloud browser. Your application chooses the model and action policy; AdsCrawl supplies the browser session.
01 / OVERVIEW
AdsCrawl provides a browser for AI agents through Remote CDP sessions and browser task endpoints. An AI agent browser API integration can use these tools to observe web pages and execute browser operations, while planning, model inference and approval rules remain in the agent application.
02 / USE CASES
Read page text or capture a screenshot using your browser client, then pass the required observation to your model. Keep the page URL with the result.
Map model-selected actions to explicit browser tools such as navigation or a known field interaction. Validate inputs and inspect the page after each action.
Use Markdown or structured extraction for read-only content tasks. Use a CDP session when a task needs multiple interactive steps.
03 / QUICKSTART
Requires Node.js and Playwright (npm install playwright). Set the ADSCRAWL_API_KEY environment variable on your server first.
Full request and response reference →import { chromium } from "playwright";
const base = "https://api.adscrawl.net";
const headers = {
"x-api-key": process.env.ADSCRAWL_API_KEY,
"content-type": "application/json",
};
const res = await fetch(base + "/cdp/sessions", {
method: "POST", headers,
body: JSON.stringify({ idleTimeoutMs: 600000 }),
});
if (!res.ok) throw new Error(await res.text());
const session = await res.json();
try {
const browser = await chromium.connectOverCDP(
session.cdpBaseUrl
);
const page = await browser.contexts()[0].newPage();
await page.goto("https://www.adscrawl.net");
console.log(await page.title());
} finally {
const stopped = await fetch(
base + "/cdp/sessions/" + session.sessionId,
{ method: "DELETE", headers }
);
if (!stopped.ok) throw new Error(await stopped.text());
}Keep API keys on the server. For HTTP 402 check your balance; for 429 reduce concurrency and retry with backoff.
05 / FAQ
The APIs shown here perform browser operations. Your application must implement planning, tool execution and completion checks.
No. For readable content, use the Markdown output of POST /html. Choose Remote CDP for interactive multi-step workflows.
It can perform multiple operations within an active session's lifetime. Delete the session after the task; use saved profiles separately when persistence is needed.