KosmoKrator

other

Ipstack CLI for AI Agents

Use the Ipstack CLI from KosmoKrator to call Ipstack tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

7 functions 7 read 0 write API key auth

Ipstack CLI Setup

Ipstack can be configured headlessly with `kosmokrator integrations:configure ipstack`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure ipstack --set api_key="$IPSTACK_API_KEY" --enable --read allow --write ask --json
kosmokrator integrations:doctor ipstack --json
kosmokrator integrations:status --json

Credentials

Authentication type: API key api_key. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
api_key IPSTACK_API_KEY Secret secret yes API Key
url IPSTACK_URL URL url no API Base URL

Call Ipstack Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call ipstack.ipstack_lookup_ip '{
  "ip": "example_ip",
  "language": "example_language"
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:ipstack ipstack_lookup_ip '{
  "ip": "example_ip",
  "language": "example_language"
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs ipstack --json
kosmo integrations:docs ipstack.ipstack_lookup_ip --json
kosmo integrations:schema ipstack.ipstack_lookup_ip --json
kosmo integrations:search "Ipstack" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Ipstack.

ipstack.ipstack_lookup_ip

Read read

Look up geolocation data for a single IP address using IPstack. Returns country, region, city, coordinates, and more.

Parameters
ip, language

Generic CLI call

kosmo integrations:call ipstack.ipstack_lookup_ip '{"ip":"example_ip","language":"example_language"}' --json

Provider shortcut

kosmo integrations:ipstack ipstack_lookup_ip '{"ip":"example_ip","language":"example_language"}' --json

ipstack.ipstack_lookup_bulk

Read read

Look up geolocation data for multiple IP addresses at once (up to 50). Returns an array of geolocation results.

Parameters
ips, language

Generic CLI call

kosmo integrations:call ipstack.ipstack_lookup_bulk '{"ips":"example_ips","language":"example_language"}' --json

Provider shortcut

kosmo integrations:ipstack ipstack_lookup_bulk '{"ips":"example_ips","language":"example_language"}' --json

ipstack.ipstack_check_location

Read read

Check if an IP address is located in a specific country or region. Returns geolocation data with a location match indicator.

Parameters
ip, country_code, region_code

Generic CLI call

kosmo integrations:call ipstack.ipstack_check_location '{"ip":"example_ip","country_code":"example_country_code","region_code":"example_region_code"}' --json

Provider shortcut

kosmo integrations:ipstack ipstack_check_location '{"ip":"example_ip","country_code":"example_country_code","region_code":"example_region_code"}' --json

ipstack.ipstack_get_timezone

Read read

Get timezone information for an IP address, including timezone ID, current time, and UTC offset.

Parameters
ip

Generic CLI call

kosmo integrations:call ipstack.ipstack_get_timezone '{"ip":"example_ip"}' --json

Provider shortcut

kosmo integrations:ipstack ipstack_get_timezone '{"ip":"example_ip"}' --json

ipstack.ipstack_get_currency

Read read

Get local currency information for an IP address, including currency code, name, symbol, and exchange rates.

Parameters
ip

Generic CLI call

kosmo integrations:call ipstack.ipstack_get_currency '{"ip":"example_ip"}' --json

Provider shortcut

kosmo integrations:ipstack ipstack_get_currency '{"ip":"example_ip"}' --json

ipstack.ipstack_get_connection

Read read

Get connection and ISP information for an IP address, including ASN, ISP name, and organization.

Parameters
ip

Generic CLI call

kosmo integrations:call ipstack.ipstack_get_connection '{"ip":"example_ip"}' --json

Provider shortcut

kosmo integrations:ipstack ipstack_get_connection '{"ip":"example_ip"}' --json

ipstack.ipstack_get_current_user

Read read

Detect and geolocate the current requesting IP address. Returns the caller's own IP geolocation data.

Parameters
none

Generic CLI call

kosmo integrations:call ipstack.ipstack_get_current_user '{}' --json

Provider shortcut

kosmo integrations:ipstack ipstack_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

ipstack.ipstack_lookup_ip

Look up geolocation data for a single IP address using IPstack. Returns country, region, city, coordinates, and more.

Operation
Read read
Schema command
kosmo integrations:schema ipstack.ipstack_lookup_ip --json
ParameterTypeRequiredDescription
ip string yes The IPv4 or IPv6 address to look up (e.g., "134.201.250.155").
language string no Response language code (e.g., "en", "de", "fr"). Defaults to English.

ipstack.ipstack_lookup_bulk

Look up geolocation data for multiple IP addresses at once (up to 50). Returns an array of geolocation results.

Operation
Read read
Schema command
kosmo integrations:schema ipstack.ipstack_lookup_bulk --json
ParameterTypeRequiredDescription
ips array yes Array of IPv4 or IPv6 addresses to look up (max 50, e.g., ["134.201.250.155", "72.229.28.185"]).
language string no Response language code (e.g., "en", "de", "fr"). Defaults to English.

ipstack.ipstack_check_location

Check if an IP address is located in a specific country or region. Returns geolocation data with a location match indicator.

Operation
Read read
Schema command
kosmo integrations:schema ipstack.ipstack_check_location --json
ParameterTypeRequiredDescription
ip string yes The IP address to check (e.g., "134.201.250.155").
country_code string no ISO 3166-1 alpha-2 country code to match (e.g., "US", "DE", "JP").
region_code string no Region or state code to match (e.g., "CA", "TX").

ipstack.ipstack_get_timezone

Get timezone information for an IP address, including timezone ID, current time, and UTC offset.

Operation
Read read
Schema command
kosmo integrations:schema ipstack.ipstack_get_timezone --json
ParameterTypeRequiredDescription
ip string yes The IP address to look up timezone for (e.g., "134.201.250.155").

ipstack.ipstack_get_currency

Get local currency information for an IP address, including currency code, name, symbol, and exchange rates.

Operation
Read read
Schema command
kosmo integrations:schema ipstack.ipstack_get_currency --json
ParameterTypeRequiredDescription
ip string yes The IP address to look up currency for (e.g., "134.201.250.155").

ipstack.ipstack_get_connection

Get connection and ISP information for an IP address, including ASN, ISP name, and organization.

Operation
Read read
Schema command
kosmo integrations:schema ipstack.ipstack_get_connection --json
ParameterTypeRequiredDescription
ip string yes The IP address to look up connection info for (e.g., "134.201.250.155").

ipstack.ipstack_get_current_user

Detect and geolocate the current requesting IP address. Returns the caller's own IP geolocation data.

Operation
Read read
Schema command
kosmo integrations:schema ipstack.ipstack_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.