Web Content

CUSTOM EXTRACTION — POST {content, schema} and get structured JSON back

CUSTOM EXTRACTION — POST {content, schema} and get structured JSON back. Define fields as {"company":"string","total":"number","due_date":"date"} (types or plain-language descriptions) and the engine pulls them from any unstructured text: emails, invoices, job posts, resumes, chat logs. Missing fields return null — never invented. Content up to 16,000 chars, 40 fields max. Parsing a PDF/DOCX/CSV by URL first? GET /api/extract ($0.02).

Price: $0.01 per call, paid in USDC via the x402 protocol (see the x402 security scheme).

post/api/extract/custom

Request

  • Base URL: https://api.webbersites.com
  • URL: https://api.webbersites.com/api/extract/custom
  • Auth: API key in header X-PAYMENT

Request body

contentstring required

The unstructured text to extract from, up to 16,000 characters

schemaobject required

Fields to extract: {name: type-or-description}. Types: string, number, boolean, date, string[], number[] — or a plain-language description ('the total in USD')

instructionsstring

Optional extra guidance, e.g. 'dates are DD/MM/YYYY in this document'

Response

Success

dataobject

one key per schema field; null where the content had no answer

modelstring
usageobject

Changes

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