# Migrate from LlamaParse to Webcite

Canonical URL: https://webcite.co/migrate/llamaparse | Last updated: 2026-11-25

To move from LlamaParse, replace the upload-and-poll pair with two Webcite calls: upload the file, then extract it. Extract returns the finished document in one response, with the whole Markdown in `markdown` and each page in `units`. The key moves from the Authorization header to `x-api-key`.

## Who wrote this

Webcite wrote this guide. Each LlamaParse term links the LlamaParse documentation it comes from, checked on 25 November 2026; the Webcite calls follow the [API reference](https://webcite.co/api-docs). Corrections: [support@webcite.co](mailto:support@webcite.co).

## What maps to what

| LlamaParse | Webcite |
| --- | --- |
| [POST /api/v2/parse/upload](https://developers.llamaindex.ai/python/cloud/llamaparse/api-v2-guide/) | `POST /api/v1/upload` with the `file` field, then `POST /api/v1/extract` with `data.asset_id` |
| [GET /api/v2/parse/{job_id}](https://developers.llamaindex.ai/python/cloud/llamaparse/api-v2-guide/) | Extract returns the finished document in the same request. Check `state` before reading `markdown` |
| [Authorization: Bearer](https://developers.llamaindex.ai/python/cloud/llamaparse/api-v2-guide/) | `x-api-key` header |
| [expand=markdown_full](https://developers.llamaindex.ai/python/cloud/llamaparse/api-v2-guide/) | `markdown` |
| [expand=items](https://developers.llamaindex.ai/python/cloud/llamaparse/api-v2-guide/) | `units[].elements`: typed blocks in reading order, each with `markdown` and a `bbox` |

## The replacement calls

Upload is free and returns `data.asset_id`. Extract returns when every page is read, so allow a long timeout.

```bash
curl --fail-with-body -X POST https://api.webcite.co/api/v1/upload \
  -H "x-api-key: $WEBCITE_API_KEY" \
  -F "file=@./report.pdf"

curl --fail-with-body --max-time 900 -X POST https://api.webcite.co/api/v1/extract \
  -H "x-api-key: $WEBCITE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"asset_id":"YOUR_ASSET_ID","mode":"standard"}'
```

## With the TypeScript SDK

```bash
npm install webcite
```

```typescript
import { readFile } from "node:fs/promises";
import { Webcite } from "webcite";

const client = new Webcite();
const bytes = new Uint8Array(await readFile("irs-form-w9-page-1.pdf"));
const { data } = await client.upload(bytes, { filename: "irs-form-w9-page-1.pdf" });
const doc = await client.extract({ asset_id: data.asset_id, mode: "standard" });
console.log(doc.state, doc.usage?.credits);
console.log(doc.markdown?.split("\n")[0]);
```

```text
complete 0.4966
Form **W-9**
```

The output above is recorded from the API for the [sample W-9](https://webcite.co/samples/irs-form-w9-page-1.pdf). The Free plan includes 100 credits.

[Create a free account](https://webcite.co/signup)

## Before you switch

[Webcite vs LlamaParse API](https://webcite.co/compare/llamaparse) shows where LlamaParse is the better choice.
