# 업로드한 HTML 파일을 markdown으로 파싱합니다.

**API:** Data API

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

**Tags:** Firecrawl

업로드한 HTML 파일을 Markdown으로 파싱합니다. file과 options을 포함한 multipart/form-data로 전송하세요. 파일은 text/html 콘텐츠 유형이거나 .html/.htm 파일 이름이어야 합니다. options는 proxy를 basic으로 설정해야 하고 선택적으로 formats를 ["markdown"]으로 설정할 수 있는 JSON 문자열입니다. options 필드는 64KB로 제한됩니다. 응답에는 success와 data.markdown이 포함됩니다.

### 가격 참고

- 과금 기준: 플랜 리소스 단위.
- 참고 요청 추정치: USD 0.001071.
- 단위 원가 기준: USD 0.001071.
- 리소스 단위: `firecrawl_credit`.
- 참고 고객 배수: 1.0. 정산된 고객 금액에 다시 적용하지 마세요.
- 원가 기준은 0인 경우를 포함해 최종 고객 가격을 확정하지 않습니다.

참고용 메타데이터일 뿐이며, 계정 견적이나 보장된 가격 또는 지출 한도가 아닙니다. 리소스 크레딧은 Felo 크레딧이 아닙니다. 최종 청구는 Felo 청구 기록을 따릅니다.

## Base URL

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

## Authentication

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

## Request body

Required: **yes**

### application/json

Schema:

```json
{
  "additionalProperties": false,
  "properties": {
    "file": {
      "type": "string",
      "description": "허용되는 파일 이름 접미사: .htm, .html."
    },
    "options": {
      "enum": [
        "{\"formats\":[\"markdown\"],\"proxy\":\"basic\"}"
      ],
      "type": "string"
    }
  },
  "required": [
    "file",
    "options"
  ],
  "type": "object"
}
```

Example:

```json
{
  "file": "example.htm",
  "options": "{\"formats\":[\"markdown\"],\"proxy\":\"basic\"}"
}
```

### application/x-www-form-urlencoded

Schema:

```json
{
  "additionalProperties": false,
  "properties": {
    "file": {
      "type": "string",
      "description": "허용되는 파일 이름 접미사: .htm, .html."
    },
    "options": {
      "enum": [
        "{\"formats\":[\"markdown\"],\"proxy\":\"basic\"}"
      ],
      "type": "string"
    }
  },
  "required": [
    "file",
    "options"
  ],
  "type": "object"
}
```

### multipart/form-data

Schema:

```json
{
  "additionalProperties": false,
  "description": "각 필드는 단일 text/plain 파트입니다. 반복되는 필드와 JSON 객체/배열 파트는 지원되지 않습니다.",
  "properties": {
    "file": {
      "type": "string",
      "description": "허용되는 파일 이름 접미사: .htm, .html."
    },
    "options": {
      "enum": [
        "{\"formats\":[\"markdown\"],\"proxy\":\"basic\"}"
      ],
      "type": "string"
    }
  },
  "required": [
    "file",
    "options"
  ],
  "type": "object"
}
```

## Responses

### 200 — 구문 분석이 완료되었습니다.

Headers:
- `X-Request-Id` (string) — Felo 지원팀에 문의할 때 포함할 요청 식별자입니다.

**application/json**

Schema: object

```json
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "파싱이 성공하면 true입니다."
    },
    "data": {
      "type": "object",
      "properties": {
        "markdown": {
          "type": "string",
          "description": "markdown으로 파싱된 콘텐츠입니다."
        }
      }
    },
    "creditsUsed": {
      "type": "integer",
      "description": "소비된 Firecrawl 크레딧입니다(1)."
    }
  }
}
```

### 400 — 요청을 처리할 수 없습니다. 요청 매개변수를 확인하세요.

### 401 — 유효한 Felo API 키가 필요합니다.

### 402 — 청구 요건이 충족되지 않아 요청을 진행할 수 없습니다.

### 403 — 이 계정에는 이 작업을 수행할 권한이 없습니다.

### 429 — 요청 또는 지출 한도에 도달했습니다.

### 502 — 서비스가 요청을 완료할 수 없습니다.

### 503 — API 또는 청구 서비스를 일시적으로 사용할 수 없습니다.

### 504 — 요청을 처리하는 동안 서비스 시간이 초과되었습니다.

### default — 오류 응답. 업스트림 패스스루 응답은 공급자 형식을 사용할 수 있습니다.

**application/json**

Schema:

```json
{}
```
