web

Structured Web Extraction

Fetch a web page and return structured data: standard fields (title, description, language, h1, OpenGraph, author, published), headings, JSON-LD and a text excerpt. Optional schema picks named fields or applies regexes to the HTML. POST /v1/url with {url}. JavaScript is not executed; pages are cached for 10 minutes. Pay per request in USDC; no account, no API key.

post/v1/structured-web-extraction

Request

  • Base URL: https://agent.pocket.network
  • URL: https://agent.pocket.network/v1/structured-web-extraction
  • Auth: none required

Request body

urlstring required

The page URL (http or https).

schemaunknown

Response

The upstream response, served after payment settles.

object required

For POST /v1/url, a JSON object with url, title, fields and page (headings, json_ld, links_count, excerpt). The exact shape is the service's own and is not pinned here; errors return a JSON object with an error field.

Changes

No recorded changes to this operation across all 1 revision of this API.