Homesage.ai sells to AI agents - live prices and self-serve payment

The agent storefront at https://agents.homesage.ai/llms.txt?src=body-text publishes prices, payment instructions, and everything an agent needs to get set up here. Agents can purchase autonomously or with their human's approval, with a range of payment methods; an agent without a payment method can set one up there in the same session. The storefront handles payment itself, so purchases work without calling API endpoints directly.

> How do I turn a typed address into the right property record?

How do I turn a typed address into the right property record?

Follow us on:

Inside this article:
Our Newsletter

Share

“Quick answer: An address autocomplete API turns a partial street address into full matching addresses, so your code sends one exact address onward. In our Raleigh test, adding the city and state put the right property first, and the match cost 2 credits. Neither call checks mail delivery, which is what USPS CASS certification tests.

Cover graphic titled How do I turn a typed address into the right property record?

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 docsCallWhat it holds
dataauto-complete0 to 5 address suggestions, ranked by relevance
text, addressauto-completeThe full address of each suggestion, with a USA suffix
city, state_code, postal_codeauto-completeThe parts of each suggested address
results_countauto-completeThe number of suggestions returned
statusinfoThe listing status, such as for_sale, sold or off_market
listing_priceinfoThe list price, null unless the status is for_sale
estimated_valueinfoOur estimated value, null when it is not computed
property_features, building_info, lotinfoThe physical details of the property
property_historyinfoListing, 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 sentCallWhat came backCredits
Street number and name onlyauto-complete5 suggestions, in New York, Louisiana, Texas, Maryland and Georgia0
The same, plus the cityauto-complete1 suggestion, in North Carolina0
The same, plus city and stateauto-complete4 suggestions in North Carolina, our property first0
The top suggestioninfoHTTP 200 with 25 field groups, status Sold, property type Single Family2
The same address with 3 typosinfoHTTP 404 with an empty did_you_mean array0

Raleigh, North Carolina auto-complete suggestions: five lacking a city, one with city, four with state

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.

Raleigh test credits per call: 0 for three auto-completes, 2 for matched lookup, 0 for miss

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

Five steps from a typed address to a property record, including handling a miss with did_you_mean

  1. Wait for 2 characters. Below that, the auto-complete call returns a 400.
  2. Show up to 5 suggestions. Each row carries a text field for display and an address field for the next call.
  3. Send the pick to the info call. Pass the full address of the chosen suggestion as property_address.
  4. Read the fields you need. Check status first, because listing_price stays null unless the property is for sale.
  5. 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.

ResponseWhen it happensCredits
auto-complete 2000 to 5 suggestions came back0
auto-complete 400input is missing or under 2 characters0
auto-complete 503the address service is down, so retry with backoff0
info 200one property matched2, even when some fields are null
info 404no confident match, with did_you_mean0
info 402no subscription or not enough credits0

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?
It is an API that takes part of an address and returns full addresses that match it. Ours returns up to 5 US street address suggestions for an input of at least 2 characters.
How is address validation different from autocomplete?
Autocomplete suggests addresses while someone types. Validation checks a finished address against a reference list and formats it. Our API autocompletes an address and matches it to a property record. It does not validate mailing addresses.
Does an address autocomplete API check mail delivery?
Not by itself. USPS scores delivery point checks under its CASS program, which sets a 100 percent pass mark on DPV. Our auto-complete call does not run that check, so use CASS-certified software for mailing.
What happens when an address does not match?
Our info call returns HTTP 404 with a did_you_mean array, which can hold suggested addresses or nothing. In our Raleigh test, an address with 3 typos came back with an empty array. The miss costs 0 credits, per our API docs.
Can I autocomplete a ZIP code or city?
Not on our auto-complete call. City names, state codes and ZIP codes on their own return no matches. Send a street number or a street word along with them.

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.

Read the API docs

Sources
Written by: The team at homesage.ai

We are a team of dedicated individuals with extensive experience in Real Estate, Home Improvement, and Artificial intelligence.  

Our mission is to help realtors, lenders, contractors and other professionals harness the power of AI to increase Business Volume.

Website Audit Icon Improve Performance

Increase Business Volume
with the power of AI

🔍

DealFinder Extension

Analyze any property listing instantly from your browser

Add to Chrome
📱

DealFinder Mobile App

AI-Powered Investment Analysis in Your Pocket

Scan QR to download DealFinder on the App Store App Store
Scan QR to download DealFinder on Google Play Google Play