x402

Web Page Data Extraction (x402)

Extract structured data from any web page with full JavaScript rendering. Handles SPAs, dynamic content, and pages that require JS to load.

post/x402/v2/web-extract

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/web-extract
  • Auth: none required

Request body

urlstring required

URL to extract data from

extractstring

What data to extract (natural language)

Response

Success

dataobject
page_titlestring

Example response

{
  "data": {
    "url": "https://example.com",
    "links": [
      {
        "url": null,
        "text": "Learn more"
      }
    ],
    "title": "Example Domain",
    "headings": [
      {
        "text": "Example Domain",
        "level": 1
      }
    ],
    "paragraphs": [
      {
        "text": "This domain is for use in documentation examples without needing permission. Avoid use in operations."
      }
    ],
    "main_content": "This domain is for use in documentation examples without needing permission. Avoid use in operations."
  },
  "page_title": "Example Domain",
  "source_url": "https://example.com"
}

Changes

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