# Quickstart

Get your first dataset in a few steps - with the **Wizard** (no code) or the **API**.

## Before you start

- A Webz.io account with an **API token**.
- **Archive credits** on your account (1 post = 1 credit). No credits yet? Start with a free sample below.

## Option A - Archive Wizard

1. Open Archive in the console and **define your query**. Click **RUN** to preview live results.
2. *(Optional)* **Download a free sample** - 100 posts from the last 30 days, no credits used.
3. **Set a timeframe** (From / Until month) and review the estimate.
4. **Submit the order**. You get an email with a download link when it's ready.

Full walkthrough: [Using the Archive Wizard](archive-wizard).

## Option B - Archive API

Three calls: set the query, confirm, then poll for the link.

```bash
# 1. Set query + timeframe -> returns confirmationToken
https://app.webz.io/setArchiveQuery?token=YOUR_TOKEN&q=YOUR_QUERY&sm=05&sy=2021&em=09&ey=2022

# 2. Confirm the order
https://app.webz.io/confirmArchiveQuery?confirmationToken=CONFIRMATION_TOKEN

# 3. Check status -> downloadLink when statusCode=2
https://app.webz.io/getArchiveOrderStatus?confirmationToken=CONFIRMATION_TOKEN
```

Full details: [Archive API](archive-api).

> [!TIP]
> Validate your query with a free sample before ordering history. It keeps datasets clean and saves credits.

