> ## Documentation Index
> Fetch the complete documentation index at: https://docs.loqate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Parse Command

> Parse and standardize contact data using Claude Haiku — no Loqate credits consumed.

The `parse` command standardizes contact data using Claude Haiku. It splits unstructured addresses into components, normalizes phone numbers, and validates email format — without making Loqate API calls or consuming credits.

## Usage

```bash theme={null}
lqt parse [flags]
```

## Flags

| Flag | Description |
| :- | :- |
| `-a, --address` | Address to parse into components |
| `-e, --email` | Email to validate format |
| `-p, --phone` | Phone number to normalize |
| `-c, --country` | Country hint (ISO 2-letter code) |
| `-b, --batch` | Path to a CSV/TSV file for batch parsing |
| `-o, --output` | Output format: `json`, `jsonl`, or `table` |
| `--anthropic-key` | Override the Anthropic API key |

## Examples

### Parse an address

```bash theme={null}
lqt parse -a "221B Baker Street London NW1 6XE United Kingdom"
```

### Parse with a country hint

```bash theme={null}
lqt parse -a "125 Summer St Boston MA 02110" -c US -o json
```

### Batch parsing

```bash theme={null}
lqt parse -b addresses.csv -o jsonl
```

## Requirements

The `parse` command requires an **Anthropic API key** for Claude Haiku access:

> [tab] macOS / Linux
>
> ```bash theme={null}
> export ANTHROPIC_API_KEY=your-key-here
> ```

> [tab] Windows (PowerShell)
>
> ```powershell theme={null}
> $env:ANTHROPIC_API_KEY="your-key-here"
> ```

> [!NOTE]
>
> The `parse` command does not call Loqate APIs and does not consume any Loqate account credits. It uses Claude Haiku for address standardization only.

## When to use parse vs verify

| Use case | Command |
| :- | :- |
| Standardize address format before storage | `parse` |
| Split unstructured address into components | `parse` |
| Confirm an address is real and deliverable | `verify` |
| Get a confidence score and recommendation | `verify` |
| Pre-process data before batch verification | `parse`, then `verify` |
