Python SDK
Typed Python clients for web research and data pipelines.
Build server-side JavaScript and TypeScript agents with Geonode’s typed clients. Extract pages, crawl sites, discover URLs, search the web and run batches. Feed results into your AI features and data workflows, with webhook subscriptions and usage statistics available from your code.
Build server-side JavaScript or TypeScript workflows with the Geonode Scraper API. The SDK uses Node's built-in fetch and provides typed API clients and request models.
Set GEONODE_SCRAPER_API_KEY in your server environment. This ES module example uses top-level await: run it as an .mjs file, or use a TypeScript runtime configured for ES modules. Keep the key in server code.
import {
Configuration, ExtractionApi, OutputFormat,
} from "@geonode_scraper/scraper-sdk";
const apiKey = process.env.GEONODE_SCRAPER_API_KEY;
if (!apiKey) throw new Error("Set GEONODE_SCRAPER_API_KEY");
const configuration = new Configuration({ apiKey });
const response = await new ExtractionApi(configuration).extractV1ExtractPost({
extractRequest: {
url: "https://example.com",
formats: [OutputFormat.Markdown],
},
});
if ("data" in response) {
console.log(response.data.markdown);
console.log(response.tokensCharged);
}On success, data.markdown contains the extracted page and tokensCharged reports the request cost. The data check narrows the response type; background requests return a job instead.
Use the full scoped package name in imports. The SDK can run in a browser, but embedding your Geonode API key there exposes it to visitors. Call it from a backend route, worker or other server process, then return only the data your frontend needs.
Get the full setup guide, authentication details and technical reference.
Extract page content as Markdown or HTML, with optional JavaScript rendering.
Run batch extraction and bounded website crawls as background jobs.
Discover website URLs before choosing which pages to extract.
Search the web, receive job notifications through webhooks and inspect API usage.
Accept a URL on your server, extract its content, and return the result to your application.
Submit a batch or crawl, retain the job ID, and process results after completion.
Node.js 18+
Keep API keys on the server or in your client’s credential store. Usage is charged to your Geonode plan.
npm install @geonode_scraper/scraper-sdk@0.6.2Check the key in the Geonode dashboard and send it using X-Api-Key. Keep it out of browser bundles, URLs and version control.
Respect the Retry-After response and your plan’s concurrency limits. Avoid automatically retrying a job submission when its outcome is unknown.
Typed Python clients for web research and data pipelines.
Extract pages, crawl sites and search the web over HTTP.
Web search and content collection for self-hosted n8n.
Typed web data access for JavaScript and TypeScript agents.