Search ranked address suggestions
Query Parameters
| Param | Req | Notes |
|---|---|---|
| country | Yes | Country to search. One of `US`, `JP`, or `SG` (case-insensitive). This is the only required parameter; omitting it returns a `400`. |
| line1 | No | First address line. Meaning varies by country: street address (US/JP) or block (SG). For Singapore you may use the `block` alias instead. |
| line2 | No | Second address line. Apartment/suite/unit (US), supplementary line (JP), or street (SG). Always optional. |
| city | No | City name. Required for US and JP validation; not part of the SG schema. |
| region | No | State (US) or prefecture (JP). Not used for SG. For Japan you may use the `ken` alias instead. |
| postalCode | No | ZIP / postal code. Required for validation in all supported countries. |
| ken | No | Japan-only alias for `region` (prefecture). Resolved to `region` before validation and search. Ignored for US and SG. |
| block | No | Singapore-only alias for `line1` (block). Resolved to `line1` before validation and search. Ignored for US and JP. |
Whitespace is trimmed from every value. Repeated params (?city=A&city=B) are rejected with 400.
US search by city (?country=US&city=Seattle)200 OK
{ "suggestions": [ { "recipient": "", "line1": "123 Main St", "city": "Seattle", "region": "WA", "postalCode": "98101", "country": "US", "score": 1 } ] }
SG search using the `block` alias (?country=SG&block=Blk%20123)200 OK
{ "suggestions": [ { "recipient": "", "line1": "Blk 123", "line2": "Ang Mo Kio Ave 6", "city": "Singapore", "postalCode": "560123", "country": "SG", "score": 1 } ] }
No matches200 OK
{ "suggestions": [] }