Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to IPinfo

Scalekit connector
Open markdown

The IPinfo connector lets your AI agent act in each user's IPinfo account. Each user connects their own IPinfo access token once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 13 tools.

Tools
13
What they doRead · write · destructive
12 · 1 · 012 read1 write0 destructive
Users sign in with

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the IPinfo connection

    In AgentKit > Connections, create an IPinfo connection. The name you give it is the connection_name your code passes. See Configure connections.

  4. Authorize a user and make your first call

    quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'ipinfo'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize IPinfo:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'ipinfo_get_token_info',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user opens the link once and enters their IPinfo credentials there. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • ipinfo_get_abuse_contactGet the abuse contact registered for the network that holds an IP address.Read-only

    Get Abuse Contact

    Get the abuse contact registered for the network that holds an IP address. Returns the contact's name, email, phone, address, country and the network (CIDR) it covers. Use this to find where to report malicious traffic from an address. Needs an IPinfo plan with Abuse Contact API access.

    Inputs

    ipstringrequired
    The IPv4 or IPv6 address to look up. Always pass the address you want details for. Never pass "me" or an empty value: IPinfo would then describe the caller's own address, which is the Scalekit server, not your user. Example: 1.1.1.1
  • ipinfo_get_asnGet details of an autonomous system (ASN) from IPinfo.Read-only

    Get ASN Details

    Get details of an autonomous system (ASN) from IPinfo. Returns the ASN, organization name, country, allocation date, registry, domain, number of IPs, type (isp, hosting, business, education), announced IPv4 and IPv6 prefixes, and peer, upstream and downstream ASNs. Use this to see who operates a network and which ranges it announces. Use ipinfo_get_ip_ranges to find the ranges of a company by domain, and ipinfo_lookup_ip to find the ASN of an address. Needs an IPinfo plan with ASN API access.

    Inputs

    asnstringrequired
    The autonomous system number, digits only, without the AS prefix. Example: 15169
  • ipinfo_get_carrierGet the mobile carrier that an IP address belongs to, if it is on a mobile network.Read-only

    Get Mobile Carrier

    Get the mobile carrier that an IP address belongs to, if it is on a mobile network. Returns the carrier name, mobile country code (mcc) and mobile network code (mnc); an address that is not on a mobile carrier network returns no carrier data. Use this to tell mobile users apart from fixed-line ones. Use ipinfo_lookup_ip on a Plus or Max token to get carrier data together with geolocation. Needs an IPinfo plan with Carrier API access.

    Inputs

    ipstringrequired
    The IPv4 or IPv6 address to look up. Always pass the address you want details for. Never pass "me" or an empty value: IPinfo would then describe the caller's own address, which is the Scalekit server, not your user. Example: 66.87.125.72
  • ipinfo_get_companyGet the company that operates or is assigned an IP address.Read-only

    Get Company for IP

    Get the company that operates or is assigned an IP address. Returns the company name, domain and type (isp, business, education, government or hosting). Use this to identify the organization behind traffic, for example for B2B lead enrichment. Use ipinfo_get_asn for the network operator of a whole ASN. Needs an IPinfo plan with IP to Company API access.

    Inputs

    ipstringrequired
    The IPv4 or IPv6 address to look up. Always pass the address you want details for. Never pass "me" or an empty value: IPinfo would then describe the caller's own address, which is the Scalekit server, not your user. Example: 8.8.8.8
  • ipinfo_get_ip_rangesList the IP address ranges assigned to or operated by the company behind a domain.Read-only

    Get IP Ranges for Domain

    List the IP address ranges assigned to or operated by the company behind a domain. Returns the domain, redirects_to (the company domain it resolved to, or null), num_ranges and the IPv4 and IPv6 ranges in CIDR notation. Use this to map a company's network from its domain. Use ipinfo_get_asn for the prefixes one ASN announces. Needs an IPinfo plan with IP Ranges API access.

    Inputs

    domainstringrequired
    The company's domain name, without protocol or path. A domain that redirects resolves to the company domain, reported in redirects_to. Example: nytimes.com
  • ipinfo_get_placeGet the physical venue, such as a hotel, airport, museum or stadium, whose Wi-Fi network uses an IP address.Read-only

    Get Place for IP

    Get the physical venue, such as a hotel, airport, museum or stadium, whose Wi-Fi network uses an IP address. Returns ip, name (venue name), category (one of 58 place types such as hotel or airport), ssid (the venue Wi-Fi network name), latitude and longitude. Use this for building-level location of venue Wi-Fi traffic. Use ipinfo_lookup_ip for ordinary city-level geolocation. Needs an IPinfo plan with Places API access.

    Inputs

    ipstringrequired
    The IPv4 or IPv6 address to look up. Always pass the address you want details for. Never pass "me" or an empty value: IPinfo would then describe the caller's own address, which is the Scalekit server, not your user. Example: 65.144.40.106
  • ipinfo_get_privacyCheck whether an IP address is a VPN, proxy, Tor exit node, relay or hosting provider.Read-only

    Get Privacy Detection

    Check whether an IP address is a VPN, proxy, Tor exit node, relay or hosting provider. Returns vpn, proxy, tor, relay and hosting booleans and service (the VPN or proxy name, if known); a Privacy Extended plan adds confidence, coverage, first_seen, last_seen and detection-method fields. Use this for anonymous-traffic and fraud checks on one address. Use ipinfo_get_residential_proxy for residential proxy networks, and ipinfo_lookup_ip on a Plus or Max token to get these signals with geolocation in one call. Needs an IPinfo plan with Privacy Detection API access.

    Inputs

    ipstringrequired
    The IPv4 or IPv6 address to look up. Always pass the address you want details for. Never pass "me" or an empty value: IPinfo would then describe the caller's own address, which is the Scalekit server, not your user. Example: 193.42.96.221
  • ipinfo_get_residential_proxyCheck whether an IP address has been seen in a residential, mobile or datacenter proxy network.Read-only

    Get Residential Proxy Detection

    Check whether an IP address has been seen in a residential, mobile or datacenter proxy network. Returns ip, last_seen (date the address was last seen as a proxy), percent_days_seen (share of the last 7 days it was active) and service (proxy provider name, suffixed _mobile or _datacenter for those networks); an address never seen as a residential proxy returns no proxy data. Use this to catch residential proxy traffic that ordinary VPN checks miss. Use ipinfo_get_privacy for VPN, Tor, relay and hosting detection. Needs an IPinfo plan with Residential Proxy API access.

    Inputs

    ipstringrequired
    The IPv4 or IPv6 address to look up. Always pass the address you want details for. Never pass "me" or an empty value: IPinfo would then describe the caller's own address, which is the Scalekit server, not your user. Example: 175.107.211.204