HushSearchDocs

Contents

Clean text, highlights and summaries for up to 50 URLs in one call.

Scrape & extract

POST/v1/contents/2 credits / URL

Request
curl -X POST https://api.hushsearch.io/v1/contents/ \
  -H "X-API-Key: hs_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "urls": [
    "https://example.com/"
  ],
  "text": true,
  "summary": true
}'

Fetch many pages at once. Each URL returns its text, and optionally query-ranked highlights and a short extractive summary. Pages are also added to your private index unless you turn ingest off.

Parameters

FieldTypeDefaultNotes
urlsstring[]—Required. 1–50 URLs.
textbooleantrueReturn page text.
max_charsinteger16000Per page, 500–80,000.
highlightsbooleanfalseReturn the most relevant sentences.
querystring—Ranks highlights.
highlight_sentencesinteger31–8.
summarybooleanfalseShort extractive summary per page.
ingestbooleantrueAdd pages to your private index.
max_age_hoursinteger—Accept cached copies up to this age.

Response

{
  "results": [
    {
      "id": "…",
      "url": "https://example.com/",
      "title": "Example Domain",
      "text": "This domain is for use in illustrative examples…",
      "status_code": 200,
      "error": null,
      "highlights": null,
      "summary": null
    }
  ],
  "credits_used": 2,
  "credits_remaining": 498,
  "response_time_ms": 900
}

Costs 2 credits per URL.

On this page