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

# Address Verification API

> Verify and standardize postal addresses, returning a verification status, the formatted address, place ID and street-level components for each address you send.

`POST /v1/data/address/verify/run`

**Pricing:** $0.001 per addresse ($1.00 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**addresses** `string[]` *required*

One or more addresses. One request reads them all.

**country** `string`

Only match addresses in this country, e.g. India. Leave blank to search every country.

249 allowed values, for example `AF` (Afghanistan), `AL` (Albania), `DZ` (Algeria), `AS` (American Samoa), `AD` (Andorra), `AO` (Angola), `AI` (Anguilla), `AQ` (Antarctica), `AG` (Antigua and Barbuda), `AR` (Argentina). Fetch the full list with `GET /v1/data/address/verify?expand=options`.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/address/verify/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "addresses": [
      "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
      "350 5th ave new york ny",
      "10 downing st london"
    ]
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/address/verify/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "addresses": [
        "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
        "350 5th ave new york ny",
        "10 downing st london"
    ]
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/address/verify/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "addresses": [
    "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
    "350 5th ave new york ny",
    "10 downing st london"
  ]
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one addresse, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `query` | Query | text |
| `status` | Status | text |
| `verified` | Verified | boolean |
| `address` | Address | text |
| `placeId` | Place ID | text |
| `streetNumber` | Street Number | text |
| `street` | Street | text |
| `sublocality` | Sublocality | text |
| `city` | City | text |
| `state` | State | text |
| `stateCode` | State Code | text |
| `postalCode` | Postal Code | text |
| `country` | Country | text |
| `countryCode` | Country Code | text |
| `latitude` | Latitude | number |
| `longitude` | Longitude | number |
| `locationType` | Location Type | text |
| `resultTypes` | Result Types | array |
| `partialMatch` | Partial Match | boolean |
| `addressComponents` | Address Components | object\_array |
| `candidateCount` | Candidate Count | number |
| `alternatives` | Alternatives | object\_array |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "address/verify",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "alternatives": null,
      "city": "Mountain View",
      "locationType": "ROOFTOP",
      "stateCode": "CA",
      "sublocality": null,
      "country": "United States",
      "placeId": "ChIJiSSC8QK6j4AR98Thup8mqTc",
      "streetNumber": "1600",
      "longitude": -122.0855962,
      "resultTypes": [
        "premise",
        "street_address"
      ],
      "status": "OK",
      "candidateCount": 1,
      "state": "California",
      "query": "1600 Amphitheatre Pkwy, Mountain View, CA 94043",
      "addressComponents": [
        {
          "longName": "Google Building 41",
          "shortName": "Google Building 41",
          "types": [
            "premise"
          ]
        },
        {
          "longName": "1600",
          "shortName": "1600",
          "types": [
            "street_number"
          ]
        }
      ],
      "postalCode": "94043",
      "street": "Amphitheatre Parkway",
      "latitude": 37.4224864,
      "verified": true,
      "countryCode": "US",
      "partialMatch": false,
      "address": "Google Building 41, 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA"
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.