Your cookie choices
Necessary cookies keep Lexmount working. Choose separately whether to enable analytics, marketing/affiliate, and support tools. Cookie Policy
Choose your path to your first cloud browser experience.
Cloud Browser lets you browse and interact with webpages through clicks and typing. Try it in the Cloud Browser playground. Web Fetch fetches webpage content. Enter a URL in the Web Fetch playground to see what it returns.
Open Playground from the navigation bar, then select Cloud Browser.
Create a key in API Keys, then return to the playground. You can reuse an existing key.
Choose a target website or sample task from Script.
Click Run to start the task and watch the browser and execution results.
Open Playground from the navigation bar, then select Web Fetch.
Create a key in API Keys, then return to the playground. You can reuse an existing key.
Replace Target URL with the webpage you want to fetch.
Click Run Request and view the fetched content in the response panel.
Connect Cloud Browser and Web Fetch to your preferred agent or app.
Let your website, backend, or script interact with webpages or read their content for further processing. Start with credentials and make your first call using the Node.js examples below.
Create a key on the API keys page and copy its API Key and Project ID. Save the following as .env in your project directory, replacing the placeholders on the first two lines.
LEXMOUNT_API_KEY=your_api_key
LEXMOUNT_PROJECT_ID=your_project_id
LEXMOUNT_BASE_URL=https://api.lexmount.cnChoose CloudBrowser for clicks, typing, and other page interactions, or WebFetch to read public webpage content.
npm install lexmount playwright dotenvimport 'dotenv/config';
import { Lexmount } from 'lexmount';
import { chromium } from 'playwright';
const client = new Lexmount();
let session;
let browser;
try {
session = await client.sessions.create({ browserMode: 'normal' });
browser = await chromium.connectOverCDP(session.connectUrl);
const context = browser.contexts()[0] ?? await browser.newContext();
const page = context.pages()[0] ?? await context.newPage();
await page.goto('https://example.com', {
waitUntil: 'domcontentloaded',
});
console.log('title:', await page.title());
} finally {
try {
await browser?.close();
} finally {
try {
await session?.close();
} finally {
client.close();
}
}
}Run this command in the same project directory. The program reads your .env credentials and sends the request.
node cloudbrowser.mjstitle: Example DomainFollow the complete integration guide and run your first webpage task.