# Tavily URL Content Extraction API

> Extracts clean text content from specified web pages using their URLs. Supports basic or advanced extraction depth and optional image inclusion.

Source: https://www.sandbase.ai/apis/tavily/extract
API reference: https://www.sandbase.ai/apis/tavily/extract/docs

## Facts

- Provider: Tavily
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/tavily/extract`
- Price: $0.01 per call
- Free allowance: 100 calls per organization per UTC day, shared across eligible APIs
- Capabilities: content extraction, web scraping
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/tavily/extract` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `urls` | array | yes |  |
| `extract_depth` | string | no | basic, advanced |
| `include_images` | boolean | no |  |

## FAQ

### How do I use the Tavily URL Content Extraction API?

Send a POST request to https://api.sandbase.ai/v1/api/tavily/extract with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Tavily URL Content Extraction API cost?

$0.01 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

### What parameters does the Tavily URL Content Extraction API accept?

Required: urls (array). Optional: extract_depth (one of basic, advanced) and include_images (boolean). The Parameters table and the Playground on this page list every field.

### What does the Tavily URL Content Extraction API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Tavily developer account or API key?

No. Tavily URL Content Extraction runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Tavily API access separately.

## README

### Tavily URL Content Extraction API

Retrieves clean web page content for a list of target addresses supplied via `urls`. Set `extract_depth` to adjust extraction detail or toggle `include_images` to return page images.

#### Use cases

- Extract readable web page text for downstream analysis.
- Retrieve article text and images from specific web addresses.
- Gather clean webpage data using basic or advanced extraction depths.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/tavily/extract" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls": "<urls>"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `urls` | array | Yes | URLs to extract content from. |
| `extract_depth` | string | No | Depth of content extraction. |
| `include_images` | boolean | No | Include images found on the pages. |

#### Notes

- Set `extract_depth` to either basic or advanced to control parsing depth.
- Toggle `include_images` to true to return images identified on the pages.
