Filtering

Parameter Type Default Description
excluded_tags array/string [] HTML tag names to remove (e.g., ["script", "form"])
excluded_selectors array/string [] CSS selectors to remove (e.g., [".tracker", "#ads"])

These parameters are only available when content=markdown, content=html, or ai_source=markdown.

Note: content=, ai_source=, & extraction= are affected by the exclusions. When content=markdown, some HTML tags are automatically excluded.

ℹ️
JSON delivery omits content by default. Set include_content=true to include it, or use delivery=raw for direct content.

Request Mode with Filtering (2 credits)

{
  "url": "https://spa-website.com",
  "mode": "request",
  "excluded_tags": ["aside", "form"],
  "excluded_selectors": [".ads"],
  "proxy_type": "residential",
  "proxy_country": "US"
}

Parameter Validation

The API validates all parameters before processing. Common validation errors:

  • Invalid filter: excluded_tags | excluded_selectors require content=markdown | content=html

Validation errors return 422 Unprocessable Entity with details in the response.