KosmoKrator

other

Ipstack CLI for Shell Scripts

Use the Ipstack CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 7 read 0 write API key auth

Ipstack CLI for Shell Scripts

Call integration functions from shell scripts with stable JSON input and output.

Use shell scripts for small local automations that need one or more integration calls. The Ipstack CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Ipstack CLI for Shell Scripts
kosmokrator integrations:configure ipstack --set api_key="$IPSTACK_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call ipstack.ipstack_lookup_ip '{"ip":"example_ip","language":"example_language"}' --json

Discovery Before Execution

Agents and scripts can inspect Ipstack docs and schemas 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

Useful Ipstack CLI Functions

FunctionTypeParametersDescription
ipstack.ipstack_lookup_ip Read ip, language Look up geolocation data for a single IP address using IPstack. Returns country, region, city, coordinates, and more.
ipstack.ipstack_lookup_bulk Read ips, language Look up geolocation data for multiple IP addresses at once (up to 50). Returns an array of geolocation results.
ipstack.ipstack_check_location Read ip, country_code, region_code Check if an IP address is located in a specific country or region. Returns geolocation data with a location match indicator.
ipstack.ipstack_get_timezone Read ip Get timezone information for an IP address, including timezone ID, current time, and UTC offset.
ipstack.ipstack_get_currency Read ip Get local currency information for an IP address, including currency code, name, symbol, and exchange rates.
ipstack.ipstack_get_connection Read ip Get connection and ISP information for an IP address, including ASN, ISP name, and organization.
ipstack.ipstack_get_current_user Read none Detect and geolocate the current requesting IP address. Returns the caller's own IP geolocation data.

Automation Notes

Related Ipstack CLI Pages