
What an address autocomplete API does
The head of product at a lending startup wants one address box that never sends a typo to a paid lookup. An address autocomplete API does that job. It takes a partial string, such as a street number and half a street name, and returns full addresses that match it.
The person picks a suggestion instead of typing the rest. Four jobs share these search terms.
- Autocomplete: suggests complete addresses while the address is still being typed.
- Validation: checks a finished address against a reference list and puts it in a standard format.
- Delivery checks: confirm that mail can reach the address. USPS scores this kind of software under CASS, with a 100 percent pass mark on DPV.
- Property match: ties the address to one property record, with its listing status, estimated value and features. Our 2 calls do this job.
What our address match covers
We match a typed US street address to one property record. Suggestions are street-level only. A city name, a state code or a ZIP code on its own returns an empty data array, according to our API docs.
Commercial addresses are not returned either. Our API does not standardize mailing addresses, add ZIP+4 codes or confirm delivery. For a mailing list, use software that holds USPS CASS certification.
What you get instead is a guard against paying for the wrong property. The info call answers partial input, such as a bare street number, with a 404 instead of a guess.
How the 2 calls fit together
The first call is GET /api/properties/auto-complete/ with one parameter, input. It needs at least 2 characters, costs 0 credits per call and returns up to 5 suggestions ranked by relevance.
curl -G 'https://api.homesage.ai/api/properties/auto-complete/' \ -H "Authorization: Bearer $HOMESAGE_API_KEY" \ --data-urlencode 'input=<part of a US property address>' Our docs call it safe to fire on every keystroke. Debounce it in your front end anyway, which saves network round trips. The second call is GET /api/properties/info/, with the chosen address sent as property_address. It costs 2 credits per successful call.
| Field in the API docs | Call | What it holds |
|---|---|---|
| data | auto-complete | 0 to 5 address suggestions, ranked by relevance |
| text, address | auto-complete | The full address of each suggestion, with a USA suffix |
| city, state_code, postal_code | auto-complete | The parts of each suggested address |
| results_count | auto-complete | The number of suggestions returned |
| status | info | The listing status, such as for_sale, sold or off_market |
| listing_price | info | The list price, null unless the status is for_sale |
| estimated_value | info | Our estimated value, null when it is not computed |
| property_features, building_info, lot | info | The physical details of the property |
| property_history | info | Listing, sold and price-change events, most recent first |
A real example from a Homesage.ai API call
We ran both calls on 2026-11-07 for one property in Raleigh, North Carolina. We typed its street number and street name 3 ways, sent the top match to the info call, then sent a copy with 3 typos.
| What we sent | Call | What came back | Credits |
|---|---|---|---|
| Street number and name only | auto-complete | 5 suggestions, in New York, Louisiana, Texas, Maryland and Georgia | 0 |
| The same, plus the city | auto-complete | 1 suggestion, in North Carolina | 0 |
| The same, plus city and state | auto-complete | 4 suggestions in North Carolina, our property first | 0 |
| The top suggestion | info | HTTP 200 with 25 field groups, status Sold, property type Single Family | 2 |
| The same address with 3 typos | info | HTTP 404 with an empty did_you_mean array | 0 |

The street number and name alone matched 5 addresses in 5 other states. Suggestions span the whole country, so the city and state do the narrowing. With both added, our Raleigh property came back first.

The info call returned 74 fields in 25 groups for 2 credits. The status was Sold, so listing_price came back empty while estimated_value was filled. Every call answered in 410 to 549 milliseconds.
The 3-typo copy got a 404 with nothing in did_you_mean. Plan for that case. Your form has to ask for the address again when the array is empty.
In Raleigh, a street number and name alone returned 5 suggestions, and none of them were in North Carolina.
How to match a typed address

- Wait for 2 characters. Below that, the auto-complete call returns a 400.
- Show up to 5 suggestions. Each row carries a text field for display and an address field for the next call.
- Send the pick to the info call. Pass the full address of the chosen suggestion as property_address.
- Read the fields you need. Check status first, because listing_price stays null unless the property is for sale.
- Handle a miss. On a 404, offer any did_you_mean addresses. If the array is empty, ask for the address again.
What happens when the address misses
The info call returns HTTP 404 when it cannot match the address to a single property with confidence. The body carries 3 fields: error, requested_address and a did_you_mean array.
{ "error": "We couldn't find an exact match for the address you provided.", "requested_address": "<the address you sent>", "did_you_mean": [ { "address": "<a suggested address>", "mpr_id": "<property id>" } ] } The error text is the example in our API spec, with placeholders for the address and id. An empty did_you_mean array means no close match was found.
| Response | When it happens | Credits |
|---|---|---|
| auto-complete 200 | 0 to 5 suggestions came back | 0 |
| auto-complete 400 | input is missing or under 2 characters | 0 |
| auto-complete 503 | the address service is down, so retry with backoff | 0 |
| info 200 | one property matched | 2, even when some fields are null |
| info 404 | no confident match, with did_you_mean | 0 |
| info 402 | no subscription or not enough credits | 0 |
A 200 does not promise that every field is filled. Our docs say a null return from missing source data still costs 2 credits, because the lookup still ran.
Common address lookup mistakes to avoid
- Calling info on every keystroke: Each successful info call costs 2 credits. Keep the typing on auto-complete and send one info call per chosen address.
- Leaving out the city: In Raleigh, the street number and name alone returned 5 suggestions in 5 other states. Ask for the city and state before you trust the first suggestion.
- Treating a 404 as a dead end: Show any did_you_mean addresses as the retry path. Our Raleigh miss came back empty, so keep a way to retype the address.
- Treating a property match as a mailing check: Our match does not test delivery. CASS-certified software has to score at least 98.5 percent on ZIP+4 coding, so run mailing lists through it.
Estimated values. Not investment advice. Data as of 2026-11-07.
Frequently asked questions
What is an address autocomplete API?
How is address validation different from autocomplete?
Does an address autocomplete API check mail delivery?
What happens when an address does not match?
Can I autocomplete a ZIP code or city?
Keep reading: Is there a real estate listings API?, Where can I get housing market data through an API?.
Try the auto-complete call
Our API docs list both calls with their parameters, error codes and credit costs.
- Homesage.ai API calls for one property in Raleigh, North Carolina, pulled 2026-11-07.
- Homesage.ai API docs, auto-complete and info, read 2026-11-07.
- USPS PostalPro, CASS certification, read 2026-11-07.