<!-- AUTO-GENERATED from the capability registry — regenerate: npm run generate:registry -->

# `scrape_website` — Orange Slice capability

> Outcome-priced capability. One price for the answer, whichever providers it took.
> Everything we expose, with prices: https://orangeslice.ai/llms.txt

Fetches a page and returns it as markdown, with its links and metadata. One credit, billed only when content actually comes back — an empty scrape is free. Single page: this does not crawl.

## Price

**$0.002, charged per hit**

Billed only when the answer is found. A miss costs nothing.

The price is a property of the outcome, not of the work behind it. Whichever
vendor serves this call, and whatever it costs us, the number above is the number
quoted before the run and charged after it.


## Measured reliability

- **Hit rate:** 24% of runs resolve an answer.
- **Sample:** 4,196 runs, measured 2026-09-01.

Use these to choose between entries that both fit. Do not use them to rule
one out — a low hit rate is a fact about the world's data, not about whether the
call is worth making, and under this pricing a miss is free.


## Call it

**CLI**

```bash
orangeslice enrich scrape_website --url https://stripe.com/pricing

# read every job description on a company's board:
orangeslice enrich company_find_careers_page --website stripe.com \
  | orangeslice search company_scrape_careers_page \
  | orangeslice enrich scrape_website
```

**HTTP**

```bash
curl -X POST 'https://orangeslice.ai/api/v1/run' \
  -H 'Authorization: Bearer $ORANGESLICE_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"capability":"scrape_website","input":{"url":"<string>"}}'
```

**SDK**

```ts
await services.scrape.website({ url: "…" });
```

## Inputs

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Page to scrape. Must be absolute, starting with http:// or https:// |

Inputs may also be piped as NDJSON, one JSON object per line.

## Output

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "markdown": {
      "type": "string"
    },
    "url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "links": {
      "default": [],
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "markdown",
    "url",
    "title",
    "description",
    "links"
  ],
  "additionalProperties": false
}
```

The field that carries the answer is `markdown`. It is
`null` — or empty — when nothing was found, which is how a miss is told from a
hit without knowing anything else about this entry.

## Before you run

- **Price it first.** `orangeslice enrich scrape_website --dry-run` returns the
  exact dollar cost and spends nothing.
- **Large runs need approval.** Above the spend-gate threshold a run exits **7**
  until it carries a plan token, and only a dry run mints one.
- **Scopes:** enrich
- **Permitted uses:** research, export

## Exit codes

`0` ok · `2` bad input · `3` auth · `4` not found · `5` provider ·
`6` rate limited · `7` spend gate, nothing billed · `8` timeout ·
`9` a third-party account needs connecting
