Web Fetch API
Public overview for fetching structured content from public web pages with Lexmount Web Fetch.
Lexmount Web Fetch is the public API for fetching web pages, rendering when needed, and returning structured output without building your own scraping pipeline.
What It Covers
POST /v1/extractfor all-in-one structured extractionPOST /v1/dom/dumpfor captured HTML and DOM snapshot reusedom_idreuse between fetch and extract flows- trace and raw DOM controls for debugging
- common HTTP and API error handling patterns
Authentication
- External requests must include both
X-API-KeyandX-Project-Id - Create or copy them from API key settings on the current site
- Use
https://api.lexmount.comfor COM projects andhttps://api.lexmount.cnfor CN projects; credentials must match the API region
Start Here
- Quick Start for the first request, response shape, and when to use
dump-dom - All-in-One Extract for the full
/v1/extractrequest and response contract - Dump DOM for engine selection, HTML capture, and
dom_idreuse - Common Errors for integration troubleshooting
Typical Workflow
- Call
POST /v1/extractwithextract.urlfor the normal production path. - If you need workflow diagnostics, explicitly enable
trace.include_steps. - If extraction fails or you need to inspect captured HTML, call
POST /v1/dom/dump. - Reuse the returned
dom_idin/v1/extractto separate fetch problems from extraction problems.
Common Output Fields
The most common result fields are:
titledescriptionmain_textfinal_urlauthorpublish_timelinksimagesenginedom_id
Integration Scope and Usage
The public API exposes the two POST endpoints above. Web Fetch targets public HTTP/HTTPS pages and does not inherit Cloud Browser session cookies, Contexts, or proxy settings. For login, clicks, or company-network access, use Cloud Browser; see SDK local proxy for private-network access.
Successful calls to either endpoint report Web Fetch usage. Dumping and then extracting are two calls; reusing dom_id does not make extraction free of usage. Reporting is asynchronous, so a client timeout alone does not prove that no usage was recorded. Included allowance is consumed before purchased balance. Check available requests in Plans & Usage and current offers on Pricing.
The Web Fetch playground runs both endpoints. Signed-in users use their own project. Environments with guest trials enabled display the applicable guest limits; a guest trial does not make the public API unauthenticated.
Free included Web Fetch allowance is shared across projects linked to the same account identity; replacing a key or deleting and recreating a project does not grant a fresh allowance. Purchased pack balance remains attached to the project it was bought for.
