For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
GuidesAPI Reference
GuidesAPI Reference
  • Overview
    • API reference
  • Search
    • POSTSearch
    • GETSearch Run List
    • GETSearch Run Get
    • GETSearch Run Events
    • POSTSearch Run Cancel
  • Extract
    • GETExtract a URL
    • POSTExtract
  • Monitors
    • GETList monitors
    • POSTCreate monitor
    • GETRetrieve monitor
    • DELDelete monitor
    • PATCHUpdate monitor
    • GETList monitor events
    • POSTMonitor Pause
    • POSTMonitor Resume
    • POSTRun monitor
  • Tasks
    • POSTTask
    • POSTCreate task run
    • GETRetrieve task run
    • GETStream task run events
    • GETTask List
    • GETTask Get
    • GETTask Events
    • POSTTask Cancel
  • Chat
    • POSTChat completion
  • Find All
    • POSTFindAll
    • GETFindall Run List
    • POSTCreate FindAll run
    • GETRetrieve FindAll run
    • GETStream FindAll run events
    • POSTCancel FindAll run
    • POSTExtend FindAll run
    • POSTEnrich FindAll run
LogoLogo
Extract

Extract a URL

||View as Markdown|
GET
https://core.usescout.sh/v1/extract
GET
/v1/extract
$curl -G https://core.usescout.sh/v1/extract \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> --data-urlencode url=https://www.anthropic.com/company \
> -d max_chars=1000
1{
2 "extract_id": "a1b2c3d4-e5f6-7890-ab12-cd34ef567890",
3 "session_id": "session-20240615-123456",
4 "results": [
5 {
6 "url": "https://www.anthropic.com/company",
7 "title": "Anthropic - Company",
8 "content": "# Anthropic\n\nAnthropic is an AI safety company based in San Francisco. We build reliable, interpretable, and steerable AI systems.\n\n## Our mission\n\nEnsure that humanity safely navigates the transition through transformative AI."
9 }
10 ],
11 "credits": 2
12}
Was this page helpful?
Previous

Search Run Cancel

Next

Extract

Built with

Authentication

AuthorizationBearer
Your API key, sent as a Bearer token.

Query parameters

urlstringRequired>=1 character
max_charsinteger or nullOptional>=1

Response

Successful Response
extract_idstring
Opaque id for this extract call.
session_idstring

Caller-supplied or generated.

resultslist of objects
One result per successfully extracted URL.
creditsinteger

Cost - 2 credits per URL successfully extracted, +1 per URL that hit the LLM (focused excerpts or summary).

errorslist of objects

Per-URL failures (not present in results).

statuseslist of objects

Per-URL status row (success or error; cached or live).

warningslist of strings or null
Reserved for future use.
subpages_discoveredintegerDefaults to 0

Total subpage candidates surfaced across all parent URLs before objective-aware ranking trimmed the list.

subpages_extractedintegerDefaults to 0
Total subpages actually fetched and returned across all parent URLs.
usagelist of objects or null

Parallel-style usage line items broken down by SKU (currently surfaces sku_subpage_rank when the objective-aware subpage ranker ran).

scratchpadmap from strings to any or null

Per-request scratchpad payload when SCRATCHPAD_FIRST=true and an objective was provided. Carries the single tool-use Claude answer plus retrieval stats.

Errors

422
Unprocessable Entity Error