Extract content from a web page (GET)

Extract structured content from any web page. Supports 6 extraction types: markdown (readable content via Readability), text (plain text), html (raw HTML), article (structured with title/author/excerpt), links (all page links), metadata (OG tags, title, description). Uses query parameters for GET requests.

get/v1/extract

Request

  • Base URL: https://app.snap-render.com
  • URL: https://app.snap-render.com/v1/extract
  • Auth: API key in header X-API-Key

Query parameters

urlstring required

URL to extract content from

type'markdown' | 'text' | 'html' | 'article' | 'links' | 'metadata'

Extraction type (default: markdown)

selectorstring

CSS selector to scope extraction

block_ads'true' | 'false'

Block ads (default: true)

block_cookie_banners'true' | 'false'

Remove cookie banners (default: true)

delayinteger

Wait after load in ms

max_lengthinteger

Max content length in chars

cache'true' | 'false'

Use cached result (default: false)

cache_ttlinteger

Cache TTL in seconds

Response

Content extracted

urlstring

The URL that was extracted

type'markdown' | 'text' | 'html' | 'article' | 'links' | 'metadata'

Extraction type used

contentunknown
wordCountinteger

Word count (for text, markdown, article types)

processingTimeMsinteger

Processing time in milliseconds

Changes

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