1. Create an account
Sign up at www.webglean.com/dashboard — free tier includes 500 credits, no credit card required.
2. Get an API key
Go to Dashboard → API Keys and click Create key. Copy the key — it's shown only once.
Keys look like: wg_f48f5a05c03383cfe8ecc880108f6f042eb1903b1d20a3cb
3. Make your first request
curl -X POST https://www.webglean.com/v1/scrape \
-H "Authorization: Bearer wg_your_key" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'
Response:
{
"success": true,
"data": {
"markdown": "# Example Domain\n\nThis domain is for use in illustrative examples...",
"html": "<h1>Example Domain</h1>...",
"text": "Example Domain\n\nThis domain is for use...",
"metadata": {
"title": "Example Domain",
"description": null,
"statusCode": 200,
"url": "https://example.com"
}
}
}
Use with the Playground
You can test all 7 endpoints interactively at Dashboard → Playground — no curl needed.
SDKs, CLI, and MCP server
Prefer not to hand-roll HTTP calls? Use the official Node.js and Python SDKs, run scrapes straight from your terminal with the CLI, or give an AI agent live web access with the MCP server.
Node.js example
import { WebGlean } from "webglean";
const client = new WebGlean({ apiKey: process.env.WEBGLEAN_API_KEY });
const { markdown } = await client.scrape({ url: "https://example.com" });
console.log(markdown);
Python example
from webglean import WebGlean
client = WebGlean(api_key="wg_your_key")
result = client.scrape("https://example.com")
print(result["markdown"])
Or skip the SDK entirely and call the REST API directly with your preferred HTTP client:
const res = await fetch("https://www.webglean.com/v1/scrape", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.WEBGLEAN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ url: "https://example.com" }),
});
const { data } = await res.json();
console.log(data.markdown);
WebGlean