> ## Documentation Index
> Fetch the complete documentation index at: https://www.edenai.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Web Scraping API

> Fetch a single URL and return its clean content as markdown, text, or HTML, with optional JavaScript rendering.

**Web Scraping API**

Fetch a single URL and return its clean content as markdown, text, or HTML, with optional JavaScript rendering.

## Endpoint

`POST /v3/universal-ai` (sync)

Model string pattern: `web/scraping/{provider}[/{model}]`

## Input

| Field | Type | Required | Description |
| - | - | - | - |
| url | string | Yes | URL of the web page to scrape |

## Output

| Field | Type | Required | Description |
| - | - | - | - |
| url | string | Yes | |
| content | string | No | |
| title | string | No | |
| description | string | No | |
| status\_code | int | No | |
| links | array\[string] | No | |
| **images** | array\[object] | No | |
|     url | string | Yes | |
|     description | string | No | |
|     width | int | No | |
|     height | int | No | |
| raw\_html | string | No | |
| summary | string | No | |
| published\_date | string | No | |
| author | string | No | |
| favicon | string | No | |
| usage | dict | No | |

## Available Providers

| Provider | Model String | Price |
| - | - | - |
| firecrawl | `web/scraping/firecrawl` | \$0.0038 per token |
| linkup | `web/scraping/linkup` | \$0.001 per token |

## Provider Parameters

This subfeature accepts only the [`provider_params`](https://www.edenai.co/docs/v3/expert-models/provider-parameters#parameter-validation-and-allowlisting) listed for each provider, and rejects any other with `400 Bad Request`. Each entry is a path in the provider's own request format, lowercased, with nested keys joined by dots: send it as nested objects, in the casing the provider documents.

| Provider | Accepted parameters |
| - | - |
| firecrawl | `actions.direction`, `actions.fullpage`, `actions.key`, `actions.milliseconds`, `actions.selector`, `actions.text`, `actions.type`, `blockads`, `excludetags`, `formats`, `includetags`, `location.country`, `location.languages`, `maxage`, `mobile`, `onlymaincontent`, `parsers`, `removebase64images`, `storeincache`, `timeout`, `waitfor` |
| linkup | `extractimages`, `includerawhtml`, `renderjs` |
| tavily | `chunks_per_source`, `extract_depth`, `include_favicon`, `include_images`, `query` |

## Quick Start

```python Python theme={null}
import requests

url = "https://api.edenai.run/v3/universal-ai"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}

payload = {
    "model": "web/scraping/firecrawl",
    "input": {
        "url": "example"
    }
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
```

```bash cURL theme={null}
curl -X POST https://api.edenai.run/v3/universal-ai \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "web/scraping/firecrawl",
    "input": {"url": "example"}
  }'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.