# Invia un job di crawl asincrono.

**API:** Data API

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

**Tags:** Firecrawl

Invia un crawl di sito asincrono. Fornisci url e limit; facoltativamente le opzioni di crawl e scrape documentate. Idempotency-Key è obbligatorio. HTTP 202 restituisce un job; usa il suo id con il corrispondente endpoint di polling Felo finché non è completed, failed o cancelled. I campi di prezzo del job sono metadati di autorizzazione e regolamento del provider, non registrazioni di fatturazione Felo.

### Riferimento prezzi

- Misurazione: riferimento per risultato misurato.
- Stima di riferimento per richiesta non disponibile.
- Prezzo di riferimento per unità cliente: USD 0.005.

Solo metadati di riferimento, non un preventivo dell'account né un prezzo o un limite di spesa garantito. I crediti delle risorse non sono crediti Felo. Gli addebiti finali seguono le registrazioni di fatturazione 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 | La lunghezza UTF-8 dopo il trim deve essere compresa tra 1 e 191 byte. |

## 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": "Non vuoto dopo il trim; nessun CR/LF; la lunghezza in byte UTF-8 è limitata. Lunghezza UTF-8 massima: 256 byte.",
        "pattern": "^[^\\r\\n]*\\S[^\\r\\n]*$(?![\\s\\S])",
        "type": "string"
      },
      "maxItems": 20,
      "type": [
        "array",
        "null"
      ]
    },
    "ignoreQueryParameters": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "includePaths": {
      "items": {
        "description": "Non vuoto dopo il trim; nessun CR/LF; la lunghezza in byte UTF-8 è limitata. Lunghezza UTF-8 massima: 256 byte.",
        "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": "Non vuoto dopo il trim; nessun CR/LF; la lunghezza in byte UTF-8 è limitata. Lunghezza UTF-8 massima: 128 byte.",
            "pattern": "^[^\\r\\n]*\\S[^\\r\\n]*$(?![\\s\\S])",
            "type": "string"
          },
          "maxItems": 50,
          "type": [
            "array",
            "null"
          ]
        },
        "includeTags": {
          "items": {
            "description": "Non vuoto dopo il trim; nessun CR/LF; la lunghezza in byte UTF-8 è limitata. Lunghezza UTF-8 massima: 128 byte.",
            "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": "URL HTTPS con un nome host, senza credenziali o frammento. L'input trimmato che termina con .pdf (senza distinzione tra maiuscole e minuscole) non è supportato.",
      "pattern": "^\\s*[hH][tT][tT][pP][sS]://",
      "type": "string"
    }
  },
  "required": [
    "url",
    "limit"
  ],
  "type": "object"
}
```

Example:

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

## Responses

### 202 — Riuscito

Headers:
- `X-Request-Id` (string) — Identificatore della richiesta da includere quando contatti l'assistenza Felo.

**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": "Identificatore dell'operazione del provider; usa il percorso del job Felo documentato per il 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": "Metadati di autorizzazione e regolamento del provider in micro-USD; non sono un saldo, un blocco o una ricevuta di fatturazione Felo."
    },
    "status": {
      "enum": [
        "queued",
        "running",
        "completed",
        "failed",
        "cancelled"
      ],
      "type": "string"
    }
  },
  "required": [
    "completedAt",
    "createdAt",
    "endpoint",
    "error",
    "id",
    "object",
    "output",
    "pricing",
    "status"
  ],
  "type": "object"
}
```

### 400 — Impossibile elaborare la richiesta. Controlla i parametri della richiesta.

### 401 — È richiesta una chiave API Felo valida.

### 402 — Impossibile procedere con la richiesta perché non è soddisfatto un requisito di fatturazione.

### 403 — L'account non è autorizzato a eseguire questa operazione.

### 429 — È stato raggiunto un limite di richieste o di spesa.

### 502 — Il servizio non è riuscito a completare la richiesta.

### 503 — L'API o il servizio di fatturazione è temporaneamente non disponibile.

### 504 — Si è verificato un timeout durante l'elaborazione della richiesta.

### default — L'operazione non è riuscita. Conserva l'ID richiesta della risposta quando contatti il supporto Felo.
