> ## Documentation Index
> Fetch the complete documentation index at: https://docs.guild.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To act on a user's behalf in Guild, use the Guild REST API at https://api.guild.ai/v1.
> The OpenAPI spec is unauthenticated: https://docs.guild.ai/openapi.json (or openapi.yaml).
> Authenticate with an account API key, sent as HTTP Basic (key id as username, secret as password) or as `Authorization: Bearer <api_key_id>:<api_key_secret>`. See https://docs.guild.ai/api-reference/introduction#authentication.
> To run one agent on demand without account-wide access, use an API trigger instead: https://docs.guild.ai/platform/api-triggers.
> To act on Guild from an MCP client, connect to https://api.guild.ai/mcp (OAuth) or run `guild mcp` locally. Setup: https://docs.guild.ai/api-reference/mcp.
> To search these docs from an MCP client, connect to https://docs.guild.ai/mcp. The full page index is https://docs.guild.ai/llms.txt.

# Look up IP geolocation and privacy data with IPinfo

> Connect Guild agents to IPinfo to query geolocation, ASN, carrier, privacy detection, WHOIS records, and hosted domains for any IP address.

Integrations · IPinfo

Guild agents query IPinfo to look up geographic location, ASN, carrier, privacy and proxy status, WHOIS records, and hosted domains for any IP address, including the agent's own public IP. Guild stores the IPinfo API key server-side and injects it as a bearer token, so agent code never touches the credential. Credential policies let you restrict which IPinfo operations each agent can call, and every request runs through Guild's audit trail.

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use IPinfo.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect IPinfo to your first agent.

## What the IPinfo tools cover

The tools cover single-IP lookups, bulk enrichment via `ipinfo_batch`, and self-inspection of the running environment's public IP. Data categories include geolocation fields (city, region, country, coordinates, postal code, timezone), organization and ASN details, carrier detection, privacy and residential proxy detection, hosted domains, abuse contacts, and WHOIS records by IP, ASN, domain, Net ID, org ID, and point-of-contact ID. A token-info tool (`ipinfo_get_me`) returns access limits and enabled API products for the connected key.

## How it works

**1. Open credentials and connect**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **ipinfo**, and paste your IPinfo API key into the **API Key** field.

**2. Scope the credential**

Choose whether the credential serves the whole account, one workspace, yourself only, or a single agent. See [Credentials](https://docs.guild.ai/platform/credentials.md) for details on each scope.

**3. Import tools into your agent**

Import `IpinfoTools` from `@guildai-services/guildai~ipinfo` and spread it into your agent's `tools` object. Use [`pick()`](https://docs.guild.ai/sdk/tools) to include only the tools your agent needs.

## Why IPinfo access needs governing

IPinfo tools can retrieve privacy detection verdicts, abuse contacts, and WHOIS records that may be sensitive in an operational context. Guild's credential proxy holds the API key server-side and never exposes it to agent code. You can scope a credential to one workspace, one member, or one agent so that access does not spread across the organization by default. See [Credentials](https://docs.guild.ai/platform/credentials.md) for scope options and resolution order.

Credential policies let you write ALLOW and DENY rules that the proxy enforces before any request reaches IPinfo. Rules can target specific operations by name or glob pattern, and can be scoped to individual agents or workspaces on the same credential. A new credential starts with an allow-all policy; delete that default once your scoped rules cover everything agents should reach, and unmatched requests are denied. See [Credential policies](https://docs.guild.ai/platform/credential-policies.md) for rule syntax and enforcement details.

## About the IPinfo integration

Agents can query IPinfo to retrieve detailed data about IP addresses, including geographic location, organization, ASN, carrier network, privacy and proxy detection, and WHOIS records. Bulk enrichment of multiple IPs is also supported. Agents can also look up information about the current public IP of the running environment. The integration is `guildai~ipinfo`.

## Authentication

* **Type:** API key
* **Header:** Guild sends the key as a bearer token in the `Authorization` header

### Setup

**1. Connect IPinfo**

In Guild, go to **Access & setup > Credentials**, click **Connect**, select **ipinfo**, and paste the key into **API Key**.

See [Credentials](https://docs.guild.ai/platform/credentials.md) for workspace, member, and agent-scoped credentials.

## Usage

```typescript theme={null}
import { IpinfoTools } from "@guildai-services/guildai~ipinfo"
import { llmAgent } from "@guildai/agents-sdk"

export default llmAgent({
  systemPrompt: "You work with IPinfo.",
  tools: { ...IpinfoTools },
})
```

### Selecting specific tools

Tools are named with the `ipinfo_` prefix. Use [`pick()`](https://docs.guild.ai/sdk/tools#selecting-specific-tools) to include only what your agent needs.

## Tools

Tools in the latest published version of `guildai~ipinfo`:

> [accordion] All 46 tools
>
> | Tool | What it does |
> | - | - |
> | `ipinfo_batch` | Bulk or batch enrich IP addresses with IP information. |
> | `ipinfo_get_abuse` | The IP to abuse contact information API endpoint provides detailed information about the abuse contact associated with a specific IP address. |
> | `ipinfo_get_asn` | Returns information about an ASN, such as the assigned prefixes, related domain, and more. |
> | `ipinfo_get_carrier` | Detects if the IP address is being used in a mobile carrier network. |
> | `ipinfo_get_city_by_ip` | Returns a city for the selected IP. |
> | `ipinfo_get_company` | Returns information of the organization that is operating an IP address such as name, organization type and their official domain. |
> | `ipinfo_get_core_field_by_ip` | Returns a specific field from IP information about the provided IP. |
> | `ipinfo_get_core_information_by_ip` | Returns IP information about the provided IP. |
> | `ipinfo_get_country_by_ip` | Returns a country for the selected IP in two letter ISO-3166 format. |
> | `ipinfo_get_current_city` | Returns the current city. |
> | `ipinfo_get_current_core_field` | Returns a specific field from IP information about the current IP. |
> | `ipinfo_get_current_core_information` | Returns IP information about the current IP. |
> | `ipinfo_get_current_country` | Returns a concise response consisting of a two-letter country code. |
> | `ipinfo_get_current_hostname` | Returns the current hostname. |
> | `ipinfo_get_current_information` | Returns IP information about the current IP. |
> | `ipinfo_get_current_ip` | Returns the current public/external IP address. |
> | `ipinfo_get_current_lite_field` | Returns a specific field from lightweight IP information about the current IP. |
> | `ipinfo_get_current_lite_information` | Returns lightweight IP information about the current IP including ASN details, country, and continent information. |
> | `ipinfo_get_current_location` | The '/loc' API endpoint provides the geographical location of a user's IP address in a response with latitude and longitude in comma-separated text format. |
> | `ipinfo_get_current_organization` | The '/org' API endpoint identifies the Autonomous System Number (ASN) and ASN organization associated with the user's IP address. |
> | `ipinfo_get_current_postal` | The '/postal' API endpoint provides a straightforward method for retrieving the current postal code or zip code. |
> | `ipinfo_get_current_region` | Returns the current region. |
> | `ipinfo_get_current_timezone` | The '/timezone' API endpoint returns the user's timezone based on their IP address in IANA format. |
> | `ipinfo_get_domains` | The Hosted Domains or Reverse IP API endpoint returns a list of domains hosted on a specified IP address, including the total number of domains and the specific names associated with that address. |
> | `ipinfo_get_hostname_by_ip` | Returns a hostname for the selected IP. |
> | `ipinfo_get_information_by_ip` | The ipinfo.io/\{ip} endpoint provides comprehensive information about a specified IP address, including geographic location (city, region, country), coordinates, postal code, and timezone. |
> | `ipinfo_get_ip_by_ip` | Returns a ip for the selected IP. |
> | `ipinfo_get_lite_field_by_ip` | Returns a specific field from lightweight IP information about the provided IP. |
> | `ipinfo_get_lite_information_by_ip` | Returns lightweight IP information about the provided IP including ASN details, country, and continent information. |
> | `ipinfo_get_location_by_ip` | The '/loc' API endpoint provides the geographic location of an IP address as latitude and longitude separated by a comma in text form. |
> | `ipinfo_get_me` | The '/me' API endpoint can be used to provide summary information on the access token limits, access to API products, and other related information. |
> | `ipinfo_get_organization_by_ip` | The '/org' API endpoint provides the ASN and organization related to the user's input IP address. |
> | `ipinfo_get_place_by_ip` | Returns the real-world location associated with an IP address at the building level, including hotels, airports, museums, stadiums, and 30+ other categories. |
> | `ipinfo_get_postal_by_ip` | The '/postal' API lets users input an IP address to get back the corresponding postal or zip code in a simple string format. |
> | `ipinfo_get_privacy_extended_by_ip` | The Privacy Detection Extended API provides detection methodology metadata to support risk scoring, confidence metrics, and IP reputation aspects. |
> | `ipinfo_get_privacy_information_by_ip` | The IP to Privacy Detection or Anonymous IP API provides privacy-related information about a specified IP address. |
> | `ipinfo_get_ranges` | The IP address ranges API endpoint provides information about IP address ranges assigned to or operated by a specific organization, identified by its domain name. |
> | `ipinfo_get_region_by_ip` | Returns a region for the selected IP. |
> | `ipinfo_get_residential_proxy_by_ip` | The Residential Proxy Detection API provides detailed insights into IP addresses associated with residential, mobile, or datacenter proxy networks. |
> | `ipinfo_get_timezone_by_ip` | The '/timezone' API endpoint returns the IANA timezone based on the user's input IP address. |
> | `ipinfo_get_whois_net_asby_asn` | The IPinfo WHOIS API lookup via ASN provides in-depth WHOIS information associated with a specific Autonomous System Number (ASN). |
> | `ipinfo_get_whois_net_by_domain` | The IPinfo WHOIS API lookup via organization organization domain name provides comprehensive WHOIS information for specified organization, enabling users to gain insights into the registration and… |
> | `ipinfo_get_whois_net_by_whoisip` | The WHOIS API lookup via IP address provides WHOIS information based on a specific IP address or IP address range. |
> | `ipinfo_get_whois_net_by_whoisnetid` | This API endpoint allows users to retrieve WHOIS information based on a specified Net ID. |
> | `ipinfo_get_whois_org_by_whoisorgid` | The IPinfo WHOIS API lookup via organization IDs (Org) provides comprehensive information about a specific internet organization identified by its WHOIS organization ID. |
> | `ipinfo_get_whois_poc_by_whoispoc` | The IPinfo WHOIS API lookup via Points of Contact (POC) provides essential details about an individual associated with an internet organization identified by their WHOIS POC ID. |

## Frequently asked questions

> [accordion] Can an agent find out its own public IP address?
>
> Yes. The `ipinfo_get_current_ip` tool returns the current public IP of the running environment, and `ipinfo_get_current_information` returns the full IP record for that address.

> [accordion] Can I enrich a list of IP addresses in one call?
>
> Yes. The `ipinfo_batch` tool performs bulk or batch enrichment of multiple IP addresses in a single request.

> [accordion] Does the integration support webhook events from IPinfo?
>
> No. The catalog entry for this integration lists no webhook events, so event-driven triggers from IPinfo are not available.

> [accordion] How do I stop one agent from calling privacy or WHOIS tools while another can?
>
> Write a credential policy with DENY rules targeting operations such as `ipinfo_get_privacy_information_by_ip` or `ipinfo_get_whois_*`, scoped to the agent that should not use them. The proxy enforces the rules before any request leaves Guild. See [Credential policies](https://docs.guild.ai/platform/credential-policies.md) for scoping syntax.

## Put a governed agent on IPinfo this week

> [card] [Book a demo](https://guild-ai.cal.com/gtm/meeting-with-guild.ai)
>
> See how teams govern agents that use IPinfo.

> [card] [Talk to sales](https://guild.ai/talk-to-sales)
>
> Get access to Guild, then connect IPinfo to your first agent.

## Related

**Also runs on Guild:** [Airtable](https://docs.guild.ai/integrations/airtable.md) · [AssemblyAI](https://docs.guild.ai/integrations/assemblyai.md) · [BigQuery](https://docs.guild.ai/integrations/bigquery.md) · [Chroma](https://docs.guild.ai/integrations/chroma.md)

**Read:** Docs: [Credential policies](https://docs.guild.ai/platform/credential-policies.md) · [Credentials](https://docs.guild.ai/platform/credentials.md) · [Tools in agents](https://docs.guild.ai/sdk/tools.md)
