# Een asynchrone crawl-job indienen.

**API:** Data API

**Endpoint:** `POST /v1/beta/firecrawl/crawl`

**Tags:** Firecrawl

Dient een asynchrone websitecrawl in. Geef url en limit op; optioneel de gedocumenteerde crawl- en scrape-opties. Idempotency-Key is vereist. HTTP 202 retourneert een job; gebruik het id ervan met het bijbehorende Felo-pollingendpoint tot deze completed, failed of cancelled is. Prijsvelden van de job zijn autorisatie- en afrekeningsmetadata van de provider, geen Felo-factureringsgegevens.

### Prijsreferentie

- Metering: Referentie per gemeten resultaat.
- Referentieschatting per verzoek niet beschikbaar.
- Referentieprijs per klanteenheid: USD 0.005.

Alleen referentiemetadata, geen accountofferte, geen gegarandeerde prijs en geen bestedingslimiet. Resourcecredits zijn geen Felo-tegoed. De uiteindelijke kosten volgen de factureringsgegevens van Felo.

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `Idempotency-Key` | header | yes | string | De getrimde UTF-8-lengte moet 1 tot en met 191 bytes zijn. |

## Request body

Required: **yes**

### application/json

Schema:

```json
{
  "additionalProperties": false,
  "properties": {
    "allowExternalLinks": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "allowSubdomains": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "crawlEntireDomain": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "delay": {
      "maximum": 30,
      "minimum": 0,
      "type": [
        "number",
        "null"
      ]
    },
    "excludePaths": {
      "items": {
        "description": "Niet leeg na trimmen; geen CR/LF; de UTF-8-bytelengte is begrensd. Maximale UTF-8-lengte: 256 bytes.",
        "pattern": "^[^\\r\\n]*\\S[^\\r\\n]*$(?![\\s\\S])",
        "type": "string"
      },
      "maxItems": 20,
      "type": [
        "array",
        "null"
      ]
    },
    "ignoreQueryParameters": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "includePaths": {
      "items": {
        "description": "Niet leeg na trimmen; geen CR/LF; de UTF-8-bytelengte is begrensd. Maximale UTF-8-lengte: 256 bytes.",
        "pattern": "^[^\\r\\n]*\\S[^\\r\\n]*$(?![\\s\\S])",
        "type": "string"
      },
      "maxItems": 20,
      "type": [
        "array",
        "null"
      ]
    },
    "limit": {
      "maximum": 1000,
      "minimum": 1,
      "type": "integer"
    },
    "maxConcurrency": {
      "maximum": 20,
      "minimum": 1,
      "type": [
        "integer",
        "null"
      ]
    },
    "maxDiscoveryDepth": {
      "maximum": 10,
      "minimum": 0,
      "type": [
        "integer",
        "null"
      ]
    },
    "scrapeOptions": {
      "additionalProperties": false,
      "properties": {
        "excludeTags": {
          "items": {
            "description": "Niet leeg na trimmen; geen CR/LF; de UTF-8-bytelengte is begrensd. Maximale UTF-8-lengte: 128 bytes.",
            "pattern": "^[^\\r\\n]*\\S[^\\r\\n]*$(?![\\s\\S])",
            "type": "string"
          },
          "maxItems": 50,
          "type": [
            "array",
            "null"
          ]
        },
        "includeTags": {
          "items": {
            "description": "Niet leeg na trimmen; geen CR/LF; de UTF-8-bytelengte is begrensd. Maximale UTF-8-lengte: 128 bytes.",
            "pattern": "^[^\\r\\n]*\\S[^\\r\\n]*$(?![\\s\\S])",
            "type": "string"
          },
          "maxItems": 50,
          "type": [
            "array",
            "null"
          ]
        },
        "maxAge": {
          "maximum": 31536000000,
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "minAge": {
          "maximum": 31536000000,
          "minimum": 0,
          "type": [
            "integer",
            "null"
          ]
        },
        "onlyMainContent": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "timeout": {
          "maximum": 300000,
          "minimum": 1000,
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    },
    "sitemap": {
      "enum": [
        null,
        "skip",
        "include",
        "only"
      ],
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "description": "HTTPS-URL met een hostnaam, zonder inloggegevens of fragment. Getrimde invoer die eindigt op .pdf (hoofdletterongevoelig) wordt niet ondersteund.",
      "pattern": "^\\s*[hH][tT][tT][pP][sS]://",
      "type": "string"
    }
  },
  "required": [
    "url",
    "limit"
  ],
  "type": "object"
}
```

Example:

```json
{
  "url": "https://example.com",
  "limit": 1
}
```

## Responses

### 202 — Geslaagd

Headers:
- `X-Request-Id` (string) — Verzoekidentificatie die je moet meesturen wanneer je contact opneemt met Felo-ondersteuning.

**application/json**

Schema: object

```json
{
  "properties": {
    "completedAt": {
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "endpoint": {
      "type": [
        "string",
        "null"
      ],
      "description": "Provider-operatie-identificatie; gebruik het gedocumenteerde Felo-jobpad voor polling."
    },
    "error": {
      "properties": {
        "code": {
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    },
    "id": {
      "type": [
        "string",
        "null"
      ]
    },
    "object": {
      "const": "integration_async_job",
      "type": "string"
    },
    "output": {},
    "outputExpired": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "pricing": {
      "properties": {
        "authorizedMicrosUSD": {
          "type": [
            "integer",
            "null"
          ]
        },
        "billingMode": {
          "type": [
            "string",
            "null"
          ]
        },
        "currency": {
          "type": [
            "string",
            "null"
          ]
        },
        "finalMicrosUSD": {
          "type": [
            "integer",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ],
      "description": "Autorisatie- en afwikkelingsmetadata van de provider in micro-USD; geen Felo-saldo, reservering of factureringsbewijs."
    },
    "status": {
      "enum": [
        "queued",
        "running",
        "completed",
        "failed",
        "cancelled"
      ],
      "type": "string"
    }
  },
  "required": [
    "completedAt",
    "createdAt",
    "endpoint",
    "error",
    "id",
    "object",
    "output",
    "pricing",
    "status"
  ],
  "type": "object"
}
```

### 400 — Het verzoek kon niet worden verwerkt. Controleer de verzoekparameters.

### 401 — Een geldige Felo-API-sleutel is vereist.

### 402 — Het verzoek kan niet doorgaan omdat niet aan een factureringsvoorwaarde is voldaan.

### 403 — Het account mag deze bewerking niet uitvoeren.

### 429 — Een verzoek- of bestedingslimiet is bereikt.

### 502 — De dienst kon het verzoek niet voltooien.

### 503 — De API of factureringsdienst is tijdelijk niet beschikbaar.

### 504 — Er is een time-out opgetreden bij het verwerken van het verzoek.

### default — De bewerking is mislukt. Bewaar de verzoek-ID uit de respons wanneer je contact opneemt met Felo-ondersteuning.
