Extract content from a web page (POST)

Extract structured content from any web page using a JSON body. Supports the same 6 extraction types as GET. POST is recommended for programmatic use as it accepts native JSON types.

post/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

Request body

urlstring required

URL to extract content from

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

Extraction type

selectorstring

CSS selector to scope extraction

block_adsboolean

Block ads

block_cookie_bannersboolean

Remove cookie banners

delayinteger

Wait after load in ms

max_lengthinteger

Max content length

cacheboolean

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.