# Street Address Parser API

> Street Address Parser is an address parsing API that breaks raw US street addresses into structured location components. Pass any single-line address string to extract the building number, directional, street name, street type, unit, city, state abbreviation, and postal code. Set standardize=true to get the address type (street, PO box or intersection) free, and on paid plans the mailing-format delivery line, last line and ZIP+4.

**Endpoint:** `GET https://api.apiverve.com/v1/streetaddressparser`  
**Category:** Parsers  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/streetaddressparser

## Overview

Street Address Parser works by analyzing the US street address provided and splitting it into its components: street number, directional prefix and suffix, street name, street type, secondary unit, city, state and ZIP code. Intersections such as "Main St and 5th Ave" come back as two streets. PO boxes, written as PO Box, P.O. Box, POB or Post Office Box, come back as sec_unit_type "PO Box" with the box number, city, state and ZIP code. With standardize=true the response adds a standardized block: the address type is free, while the delivery line, last line and ZIP+4 extension require a paid plan. The parser formats what you send; it does not check the address against postal records.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/streetaddressparser?address=1600%20Amphitheatre%20Parkway%2C%20Mountain%20View%2C%20CA%2090210&standardize=true" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `address` | string | Yes | The street address to parse |
| `standardize` | boolean | No | Add a standardized block: the address type, plus on paid plans the delivery line, last line and ZIP+4. default false |

## Response fields

- `address` — string · The original street address provided for parsing
- `parsed` — object
  - `parsed.streetNumber` — string · House or building number from the address
  - `parsed.streetType` — string · Abbreviated street type like Pkwy, St, Ave; absent for a PO box
  - `parsed.streetAddress` — string · The name of the street parsed from address; absent for a PO box
  - `parsed.cityName` — string · City name extracted from the address
  - `parsed.stateName` — string · State abbreviation parsed from address
  - `parsed.zipCode` — string · Postal code extracted from the address
- `standardized` — object · Standardized form of the address, returned when standardize=true
  - `standardized.addressType` — string · street, poBox, ruralRoute or intersection
  - `standardized.deliveryLine1` — string · Street line in mailing-label order, e.g. 123 N Main St Apt 4B, PO Box 55, or Main St & 5th Ave · (premium)
  - `standardized.lastLine` — string · City, state and ZIP (with ZIP+4 when given) as one line, e.g. Springfield, IL 62701-1234; null when the city or state could not be read · (premium)
  - `standardized.zipPlus4` — object · The four-digit ZIP+4 extension when the input carries one, else null · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "address": "1600 Amphitheatre Parkway, Mountain View, CA 90210",
    "parsed": {
      "streetNumber": "1600",
      "streetType": "Pkwy",
      "streetAddress": "Amphitheatre",
      "cityName": "Mountain View",
      "stateName": "CA",
      "zipCode": "90210"
    },
    "standardized": {
      "addressType": "street",
      "deliveryLine1": "1600 Amphitheatre Pkwy",
      "lastLine": "Mountain View, CA 90210",
      "zipPlus4": null
    }
  }
}
```

## Use cases

- **Mailing Label Printing** — To prepare bulk shipping labels, fulfillment software isolates street numbers, street types, and ZIP codes from freeform buyer text.
- **Real Estate Ingestion** — When property portals ingest raw MLS remarks, backend pipelines extract city and state abbreviations to index homes into regional search databases.
- **Voter Registration Intake** — Separate unformatted residential entries into discrete building numbers and street names to match voter registrations against county records.
- **Tax Jurisdiction Lookup** — Accounting platforms assign municipal sales tax rates by breaking customer billing strings into standardized city names and state codes.

## SDKs

- **npm** — `npm install @apiverve/streetaddressparser` (https://www.npmjs.com/package/@apiverve/streetaddressparser)
- **PyPI** — `pip install apiverve-streetaddressparser` (https://pypi.org/project/apiverve-streetaddressparser/)
- **NuGet** — `dotnet add package APIVerve.API.StreetAddressParser` (https://www.nuget.org/packages/APIVerve.API.StreetAddressParser)
- **Source** — https://github.com/apiverve/streetaddressparser-api

## More

- Full reference: https://docs.apiverve.com/ref/streetaddressparser
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
