search

Extract clean, LLM-ready content from up to 5 URLs in one call.

Extract clean, LLM-ready content from up to 5 URLs in one call. POST { urls[], depth? }. Returns the main text content of each page (JS-rendered, boilerplate stripped) plus a list of any URLs that failed. For feeding web pages to an agent without running your own headless browser. Billing: payment settles before this endpoint runs (paid upstream), so an error after settlement IS charged — the error response then carries the payment receipt (PAYMENT-RESPONSE) and X-2s-Charged: true.

post/api/search/extract

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/search/extract
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Request body

urlsstring[] required

1-5 URLs to extract.

depth'basic' | 'advanced'

Depth.

Response

(unresolved $ref)

Changes

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