Ruby SDK
addresszen is our Ruby SDK for the AddressZen API. It has one method for every API operation, has no runtime dependencies and runs on Ruby 3.3 or later.
Details
- Every operation: Address verification, autocomplete, place search, email and phone validation, plus key, licensee and configuration management
- No dependencies: Requests go through Net::HTTP and the standard library's JSON. Pass your own transport to use another HTTP client
- Typed responses: Every response is an object generated from the OpenAPI spec, with one reader per field. A verification returns
UsaVerifyMatchwhen the address is found, so oneis_a?check tells you whether it matched - RBS signatures: The gem ships a signature for every method and reader, for Steep, Ruby LSP and other tools that read RBS
- Clear errors: An HTTP error raises
AddressZen::ApiErrorwith the HTTP status and the API's error code and message. A failed connection raisesTransportError - No hidden retries: A billable lookup repeats only when your code repeats it
- Agent skill:
npx skills add addresszen/skillsgives coding agents theazn-ruby-sdkskill
Install with gem install addresszen, then start with the Ruby SDK documentation.