TypeScript SDK
Typed web data access for JavaScript and TypeScript agents.
Turn web pages into Markdown with typed Python requests. Extract, batch, crawl, map and search from one client.
Use a virtual environment and install geonode-scraper-sdk.
Copy your Scraper API key from the dashboard.
Set the host to https://scraper.geonode.io.
Install geonode-scraper-sdk, set GEONODE_SCRAPER_API_KEY, then run this example.
import os
from geonode_scraper_sdk import (
ApiClient, Configuration, ExtractionApi,
ExtractRequest, OutputFormat, ProcessingMode,
)
config = Configuration(
host="https://scraper.geonode.io",
api_key={"ApiKeyAuth":
os.environ["GEONODE_SCRAPER_API_KEY"]},
)
with ApiClient(config) as client:
result = ExtractionApi(client).extract_v1_extract_post(
ExtractRequest(
url="https://example.com",
formats=[OutputFormat.MARKDOWN],
)
)
print(result.data.markdown)Choose the output and execution mode that fit your pipeline.
Use SDK models and enums to build requests.
ExtractRequest(
url="https://example.com",
formats=[OutputFormat.MARKDOWN]
)Extract one page now, or retrieve a job later.
processing_mode=ProcessingMode.ASYNCEnable rendering when content depends on JavaScript.
render_js=TrueGet 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.
# Reuse config from the quick start
from geonode_scraper_sdk import (
ApiClient, BatchApi, BatchRequest,
OutputFormat,
)
with ApiClient(config) as client:
job = BatchApi(client).create_batch_v1_batch_post(
BatchRequest(
urls=[
"https://example.com/a",
"https://example.com/b",
],
formats=[OutputFormat.MARKDOWN],
)
)
print(job.job_id)Python 3.10+
Keep API keys on the server or in your client’s credential store. Usage is charged to your Geonode plan.
pip install geonode-scraper-sdk==0.6.2Check that the host is the production URL, not localhost.
Check ApiKeyAuth and the key in your environment.
Request Markdown explicitly and inspect the returned data.
Keep the job ID and fetch its status before reading results.
Keep package dependencies scoped to your project.
Read credentials from environment variables.
Handle completed, failed and cancelled jobs.
Use the usage and statistics endpoints.
Typed web data access for JavaScript and TypeScript agents.
Search, crawl and extract web data from your terminal.
Web research and content collection for LangChain agents.
Get a Scraper API key and start with one page.