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

# Migrate from Firecrawl

> Map Firecrawl requests and responses to Octen.

For AI agents: [docs.octen.ai/resources/migrate-from-firecrawl.md](https://docs.octen.ai/resources/migrate-from-firecrawl.md)

## Endpoint Map

| Firecrawl | Octen |
| :- | :- |
| Scrape (`POST /v2/scrape`) | [Extract](https://docs.octen.ai/api-reference/extract.md) |
| Batch Scrape (`POST /v2/batch/scrape`) | [Extract](https://docs.octen.ai/api-reference/extract.md) (up to 20 URLs per request, returned in the same response instead of an async job) |
| Search (`POST /v2/search`) | [Web Search](https://docs.octen.ai/api-reference/search.md) |
| Search with `sources: ["news"]` | [News Search](https://docs.octen.ai/api-reference/news-search.md) |
| Search with `sources: ["images"]` | [Image Search](https://docs.octen.ai/api-reference/image-search.md) |
| Agent (`POST /v2/agent`) | [Search Agent](https://docs.octen.ai/api-reference/post-search-agent.md) |
| Monitor (`POST /v2/monitor`) | [Monitor](https://docs.octen.ai/api-reference/post-monitor.md) (one topic or up to 10 pages per monitor) |

## Authentication

| | Firecrawl | Octen |
| :- | :- | :- |
| Base URL | `https://api.firecrawl.dev` | `https://api.octen.ai` |
| Auth header | `Authorization: Bearer <key>` | `x-api-key: <key>` or `Authorization: Bearer <key>` |
| Python SDK | `firecrawl` (`Firecrawl`) | `octen` (`Octen`) |

## Extract

### Request Parameters

| Firecrawl | Octen |
| :- | :- |
| `url` | `urls` (up to 20 URLs, each up to 2,048 characters) |
| `formats: ["markdown"]` | `format: "markdown"` (default) |
| `formats: ["links"]` | `include_links` (an object with `scope` and `max_links` up to 1,000) |
| `formats: ["images"]` | `include_images` |
| `formats` with `type: "highlights"` and `query` | `query` (returns `highlights` instead of `full_content`) |
| `maxAge` (milliseconds, default 172,800,000) | `max_age_seconds` (seconds, 300-31,536,000, default 86,400) |
| `timeout` (milliseconds, 1,000-300,000, default 60,000) | `timeout` (seconds per URL, 1-60, default 30) |
| `proxy` (`basic`, `enhanced`, or `auto`; default `auto`) | `mode` (`standard`, `advanced`, or `auto`; default `standard`). `advanced` prioritizes success rate on hard-to-reach pages. |

### Response Fields

| Firecrawl | Octen |
| :- | :- |
| `data.markdown` | `data.results[].full_content` (`data.results` is `response.items` in the Python SDK) |
| `data.links` (a list of URLs) | `data.results[].links[]` (`url`, `anchor_text`, `is_external`) |
| `data.highlights` (a string) | `data.results[].highlights` (a list of strings) |
| `data.metadata.title` | `data.results[].title` |
| `data.metadata.sourceURL` | `data.results[].url` (the requested URL) |
| `data.metadata.statusCode`, `data.metadata.error` | `data.results[].status` (`success` or `failed`), `data.results[].error_message` |
| `success` | `code` (`0` on success) |

### Code

```python Before (Firecrawl) theme={null}
import os

from firecrawl import Firecrawl

firecrawl = Firecrawl(api_key=os.environ["FIRECRAWL_API_KEY"])

doc = firecrawl.scrape("https://en.wikipedia.org/wiki/Web_scraping", formats=["markdown"])

print(doc.metadata.title)
print(doc.markdown)
```

```python After (Octen) theme={null}
import os

from octen import Octen

client = Octen(api_key=os.environ["OCTEN_API_KEY"])

response = client.extract.extract(urls=["https://en.wikipedia.org/wiki/Web_scraping"], format="markdown")

item = response.items[0]
if item.status == "success":
    print(item.title)
    print(item.full_content)
else:
    print(f"{item.url}: {item.error_message}")
```

## Web Search

### Request Parameters

| Firecrawl | Octen |
| :- | :- |
| `query` | `query` (up to 500 characters) |
| `limit` (1-100, default 10) | `count` (1-100, default 5) |
| `tbs: "qdr:d"`, `"qdr:w"`, `"qdr:m"`, or `"qdr:y"` | `time_range` (`day`, `week`, `month`, or `year`) |
| `tbs: "cdr:1,cd_min:MM/DD/YYYY,cd_max:MM/DD/YYYY"` | `start_time`, `end_time` (ISO 8601) |
| `includeDomains`, `excludeDomains` (one or the other) | `include_domains`, `exclude_domains` (up to 1,200 each) |
| `safe: true` | `safesearch: "strict"` (default) |
| `safe` omitted (no filter) | `safesearch: "off"` |
| `highlights` (default `true`) | `highlight.enable` (default `true`) |
| `scrapeOptions.formats: ["markdown"]` | `full_content.enable` (`full_content.max_tokens` caps the length) |

### Response Fields

| Firecrawl | Octen |
| :- | :- |
| `data.web[]` | `data.results[]` |
| `data.web[].title` | `data.results[].title` |
| `data.web[].url` | `data.results[].url` |
| `data.web[].description` (highlights by default) | `data.results[].highlight` |
| `data.web[].markdown` | `data.results[].full_content` |
| `id` | `request_id` |
| `creditsUsed` | `meta.usage` (`num_search_queries`, `full_content_extra_count`) |
| `warning` | `meta.warning` |

### Code

```python Before (Firecrawl) theme={null}
import os

from firecrawl import Firecrawl

firecrawl = Firecrawl(api_key=os.environ["FIRECRAWL_API_KEY"])

results = firecrawl.search(query="AI agent frameworks", limit=5, tbs="qdr:w")

for result in results.web or []:
    print(result.url, result.title)
    print(result.description)
```

```python After (Octen) theme={null}
import os

from octen import Octen

client = Octen(api_key=os.environ["OCTEN_API_KEY"])

response = client.search.search(query="AI agent frameworks", count=5, time_range="week")

for result in response.results:
    print(result["url"], result["title"])
    print(result.get("highlight"))
```

## Search Agent

### Request Parameters

| Firecrawl | Octen |
| :- | :- |
| `prompt` (up to 10,000 characters) | `messages` (the task as a `user` message) |
| `schema` | `response_format` with `type: "json_schema"` and `schema` (the top-level `type` must be `object`) |
| `model`, `effort` (`low`, `medium`, or `high`) | `tier` (`auto`, `low`, `medium`, or `high`; default `auto`) |
| `threadId` | `previous_task_id` |

### Response Fields

| Firecrawl | Octen |
| :- | :- |
| `id` (from `POST /v2/agent`) | `task_id` |
| `status` (`processing`, `completed`, or `failed`) | `status` (`queued`, `running`, `succeeded`, `failed`, or `cancelled`) |
| `data` (a JSON object) | `choices[0].message.content` (a JSON string when `response_format.type` is `json_schema`) |
| `error` | `error.message` (`error.code` is `AGENT_TIMEOUT` or `AGENT_FAILED`) |
| `creditsUsed` | `meta.cost` (amount charged, in USD) |

### Code

```python Before (Firecrawl) theme={null}
import os

from firecrawl import Firecrawl

firecrawl = Firecrawl(api_key=os.environ["FIRECRAWL_API_KEY"])

result = firecrawl.agent(
    prompt="Find the founders of Stripe and their roles",
    schema={
        "type": "object",
        "properties": {
            "founders": {
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "name": {"type": "string"},
                        "role": {"type": "string"},
                    },
                },
            },
        },
    },
)

print(result.data)
```

```python After (Octen) theme={null}
import json
import os
import time

import requests

BASE_URL = "https://api.octen.ai/v1/agent"
HEADERS = {"x-api-key": os.environ["OCTEN_API_KEY"]}

task = requests.post(
    BASE_URL,
    headers=HEADERS,
    json={
        "messages": [{"role": "user", "content": "Find the founders of Stripe and their roles"}],
        "response_format": {
            "type": "json_schema",
            "schema": {
                "type": "object",
                "properties": {
                    "founders": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {"type": "string"},
                                "role": {"type": "string"},
                            },
                        },
                    },
                },
            },
        },
    },
    timeout=30,
)
task.raise_for_status()
task_id = task.json()["task_id"]

while True:
    result = requests.get(f"{BASE_URL}/{task_id}", headers=HEADERS, timeout=30).json()
    if result["status"] in ("succeeded", "failed", "cancelled"):
        break
    time.sleep(5)

if result["status"] == "succeeded":
    print(json.loads(result["choices"][0]["message"]["content"]))
else:
    print(result["status"], result.get("error"))
```

## Monitor

### Request Parameters

| Firecrawl | Octen |
| :- | :- |
| `name` | `name` (up to 256 characters) |
| `targets` with `type: "scrape"` and `urls` | `type: "page"` with `page.urls` (1-10) |
| `targets` with `type: "search"` and `queries` (1-12) | `type: "topic"` with one `topic.query` (up to 500 characters) |
| Search target `includeDomains`, `excludeDomains` | `topic.include_domains`, `topic.exclude_domains` (up to 1,200 each) |
| `goal` | `condition` (when to notify, in natural language, up to 1,000 characters) |
| `judgeEnabled` | No parameter; events from [List monitor events](https://docs.octen.ai/api-reference/get-monitor-events.md) include a `judgment` |
| `schedule.text` (such as `hourly` or `daily`) | `schedule.interval` (`5m` to `59m`, `1h` to `100h`, or `1d` to `30d`) |
| `schedule.cron` (at least 5 minutes apart) | `schedule.cron` (at least 5 minutes apart) |
| `schedule.timezone` | `schedule.timezone` (for `cron` only) |
| `webhook.url` | `webhook.url` (a public HTTPS URL) |
| `webhook.metadata` | `metadata` (up to 8 pairs, returned in responses and webhooks) |
| `notification.email.recipients` (up to 25) | `email.to` (1-5 addresses) |

### Response Fields

| Firecrawl | Octen |
| :- | :- |
| `data.id` | `data.monitor_id` |
| `data.status` | `data.status` (`active` on creation) |
| `data.schedule` | `data.schedule` |
| `data.nextRunAt` | `data.next_run_at` |
| Checks from List monitor checks (`GET /v2/monitor/{monitorId}/checks`) | Runs from [List monitor runs](https://docs.octen.ai/api-reference/get-monitor-runs.md) |

### Code

```python Before (Firecrawl) theme={null}
import os

from firecrawl import Firecrawl

firecrawl = Firecrawl(api_key=os.environ["FIRECRAWL_API_KEY"])

monitor = firecrawl.create_monitor(
    name="Hacker News AI monitor",
    schedule={"text": "hourly", "timezone": "UTC"},
    goal="Alert when a new story related to AI enters the top 10.",
    targets=[{"type": "scrape", "urls": ["https://news.ycombinator.com"]}],
    webhook={"url": "https://example.com/webhook"},
)

print(monitor.id)
```

```python After (Octen) theme={null}
import os

import requests

response = requests.post(
    "https://api.octen.ai/monitors",
    headers={"x-api-key": os.environ["OCTEN_API_KEY"]},
    json={
        "type": "page",
        "name": "Hacker News AI monitor",
        "page": {"urls": ["https://news.ycombinator.com"]},
        "condition": "A new story related to AI enters the top 10",
        "schedule": {"interval": "1h"},
        "webhook": {"url": "https://example.com/webhook"},
    },
    timeout=30,
)
response.raise_for_status()
monitor = response.json()["data"]

print(monitor["monitor_id"])
```

***

Last modified on November 24, 2026


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