OmniScout Docs
Search & research

Extraction

Turn any URL or search query into clean Markdown or structured JSON.

extract fetches a page and returns readable content — no browser session needed. It works in three modes: single URL, search-query crawl, and whole-site export.

Single URL → Markdown

omniscout extract https://example.com
omniscout extract https://example.com --format text
omniscout extract https://example.com --out /tmp/page.md

Extracted Markdown keeps the page's content images (![alt](url)) with links pointing at the original site, so the saved file reads like the article. Tidy things up with:

omniscout extract https://example.com --no-images    # drop images, keep their captions as text
omniscout extract https://example.com --no-links     # drop link URLs, keep the link text
omniscout extract https://example.com --no-images --no-links
--format/-fReturns
markdown (default)Clean readable Markdown
textPlain text, no formatting
jsonStructured fields (requires --fields)
structuredAuto-extracted fields; add --fields to limit

Structured extraction

Pull specific fields instead of the whole page:

omniscout extract https://example.com --format structured --fields founder,pricing

For Exa-style schema-driven extraction, pass a JSON Schema from a file or inline:

omniscout extract https://stripe.com/pricing \
  --schema-inline '{"type":"object","properties":{"pricing":{"type":"string"}}}'
omniscout extract https://stripe.com/pricing --schema ./schema.json

Add --data to include full result metadata (cache status, timing, content stats) alongside the fields.

Query mode — extract across search hits

Omit the URL and pass --query to search the web, then extract from the top hits with a multi-level link crawl:

omniscout extract -q "SpaceX founder" --format structured --fields founder

Tune the crawl with:

FlagMeaningDefault
--results/-nSeed URLs taken from search5
--depthLink hops: 1 = page only, 2 = direct links, 3+ = deeper1 for URL mode, 3 for --query

Site export — crawl a whole site to one file

Pass --out together with --depth 2 (or deeper) for site-crawl mode: OmniScout crawls same-host links and writes combined Markdown to a file. Without --depth, --out simply saves the single page.

omniscout extract https://example.com --depth 2 --out /tmp/site.md
FlagMeaningDefault
--max-pagesMax pages to fetch40
--max-linksSame-host links followed per page20
--concurrencyParallel fetch limit4
--include / --excludeComma-separated path substrings to keep/skip—
omniscout extract https://example.com --depth 2 --out /tmp/site.md \
  --include blog,docs --exclude tag,author

Caching

Extracted pages are cached locally, so re-runs are instant unless the page changed. Bypass with --no-cache.

Agent tips

  • Start with plain Markdown; only reach for --fields/schemas when you need typed data.
  • extract output pipes cleanly to jq under --json: omniscout extract https://... | jq '{title, word_count}'.
  • For JavaScript-heavy pages that extract poorly, drive the browser instead: browser navigate → browser extract-visible (optionally with --schema) — see Browser automation.

On this page