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

# Firecrawl: Extract

> Extract structured data from web page URLs or websites with an AI prompt and a JSON schema, as an asynchronous job. Includes SDK V2 examples, schemas, and cost.

Extract structured data from web page URLs or websites with an AI prompt and a JSON schema, as an asynchronous job.

> [!NOTE]
>
> Tool ID: `firecrawl_extract`

## Run this action

Use the TypeScript SDK for one call. Use `ctx.tools.execute(...)` inside a Play for durable calls, scheduled calls, or CSV processing.

```ts theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'firecrawl_extract',
  {
    "urls": [
      "https://example.com"
    ]
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline tools execute firecrawl_extract --input '{
  "urls": [
    "https://example.com"
  ]
}' --json
```

## Example response

The SDK returns this shape at `result.toolResponse.raw`. The example values illustrate the response.

```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
{
  "data": {
    "status": "example"
  }
}
```

Use `deepline describe firecrawl_extract --json` for the latest machine-readable contract.

## Input reference

Start an extraction job and return its ID for status polling.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.urls` | `array` | Yes | — | URLs to extract data from |
| `payload.prompt` | `string` | No | — | Natural language extraction instructions |
| `payload.schema` | `record` | No | — | JSON schema for structured output |
| `payload.enableWebSearch` | `boolean` | No | — | Enable web search to augment extraction |
| `payload.ignoreSitemap` | `boolean` | No | — | Ignore sitemap when discovering pages (default false) |
| `payload.includeSubdomains` | `boolean` | No | — | Include subdomains in extraction (default true) |
| `payload.showSources` | `boolean` | No | — | Include source URLs in response (default false) |
| `payload.ignoreInvalidURLs` | `boolean` | No | — | Skip invalid URLs instead of failing (default true) |
| `payload.scrapeOptions` | `object` | No | — | Scrape options for each URL |
| `payload.timeoutMs` | `integer` | No | — | Deprecated compatibility field. Start actions now return immediately. Use the matching status action to poll. |

> [!NOTE]
>
> This input schema is too large for an inline display. Read the complete live contract with `deepline describe firecrawl_extract --json`.

## Output reference

Structured extraction result.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.data.id` | `string` | No | — | — |
| `result.data.status` | `string` | Yes | — | — |
| `result.data.data` | `unknown` | No | — | — |
| `result.data.tokensUsed` | `number` | No | — | — |
| `result.data.expiresAt` | `string` | No | — | — |
| `result.meta` | `record` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
  {
    "type": "object",
    "description": "Structured extraction result.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "data": {},
          "tokensUsed": {
            "type": "number"
          },
          "expiresAt": {
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "additionalProperties": false
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": {}
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `provider_usage` (provider usage).
* Estimated Deepline credits: `0` per pricing unit.

## Related documentation

* [Firecrawl provider guide](https://deepline.com/docs/providers/firecrawl/guide.md)
* [SDK V2 quickstart](https://deepline.com/docs/sdk-v2/quickstart.md)
* [SDK reference](https://deepline.com/docs/sdk-v2/sdk-reference.md)
* [Run tools across a CSV](https://deepline.com/docs/sdk-v2/batch-csv.md)


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