ballerinax/interzoid.statedata Ballerina library

2.0.0

Overview

The Interzoid State Data connector lets Ballerina applications standardize state and province names and obtain their two-letter abbreviations using Interzoid's AI-driven algorithms and knowledge bases. It supports version 1.0.0 of the Interzoid State/Province Standardization API.

Key features

  • Standardize state and province names from free-form input
  • Retrieve two-letter state and province abbreviations
  • Choose the AI model used for standardization
  • Track the remaining API credits on your license

Setup guide

  1. Register for an Interzoid API account at the Interzoid registration page.

  2. Copy the API license key issued for your account.

  3. Provide the license key when creating the client, for example through a Config.toml file.

Quickstart

To use the interzoid.statedata connector in your Ballerina application, update the .bal file as follows:

Step 1: Import the module

Copy
import ballerinax/interzoid.statedata;

Step 2: Instantiate a new connector

Create a Config.toml file with your license key:

Copy
licenseKey = "<your-license-key>"
Copy
configurable string licenseKey = ?;

final statedata:Client stateClient = check new ({license: licenseKey});

Step 3: Invoke the connector operation

Copy
public function main() returns error? {
    statedata:StateAbbreviationResponse _ = check stateClient->getStateAbbreviation(state = "Ohio", algorithm = "ai-medium");
}

Step 4: Run the Ballerina application

Copy
bal run

Examples

The Interzoid State Data connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering the following use cases:

  1. Standardize customer states - Standardize raw state names and print their two-letter abbreviations.
  2. Validate state inputs - Report state inputs that differ from their standardized names.

Import

import ballerinax/interzoid.statedata;Copy

Other versions

See more...

Metadata

Released date: about 14 hours ago

Version: 2.0.0

License: Apache-2.0


Security

Direct vulnerabilities: No known direct vulnerabilities

Indirect vulnerabilities: 

Checked on 2026-11-20 via OSV.dev


Compatibility

Platform: any

Ballerina version: 2201.12.0

GraalVM compatible: Yes


Pull count

Total: 43

Current verison: 1


Weekly downloads


Source repository


Keywords

Vendor/Interzoid

Area/CRM & Sales

Type/Connector


Contributors