# IPGeolocation — Pipedream Connect

> Enterprise-grade IP Geolocation and threat intelligence — trusted worldwide for real-time, scalable decisions.

- API slug: `ipgeolocation` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Developer Tools
- Website: https://ipgeolocation.io
- This page (HTML): https://pipedream.com/apps/ipgeolocation
- Tools: 12 actions · 0 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: ipgeolocation`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "ipgeolocation",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Convert Timezone:
const result = await mcp.callTool({
  name: "ipgeolocation-convert-timezone",
  arguments: {
    tzFrom: "From Timezone",
    tzTo: "To Timezone",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a IPGeolocation endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.ipgeolocation.io/v3/ipgeo

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuaXBnZW9sb2NhdGlvbi5pby92My9pcGdlbw?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "ipgeolocation-convert-timezone",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    ipgeolocation: { authProvisionId: "apn_xxxxxxx" },
    tzFrom: "From Timezone",
    tzTo: "To Timezone",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (12)

### `ipgeolocation-convert-timezone` — Convert Timezone (Read-only)

Convert a time between two timezones using timezone names, coordinates, city, IATA, ICAO, or UN/LOCODE. See the documentation

Full schema: https://pipedream.com/apps/ipgeolocation/actions/convert-timezone.md

### `ipgeolocation-get-abuse-contact` — Get Abuse Contact (Read-only)

Retrieve abuse contact information for an IPv4 or IPv6 address, including abuse emails, phone numbers, organization, and network route. Only available on paid plans. See the documentation

Full schema: https://pipedream.com/apps/ipgeolocation/actions/get-abuse-contact.md

### `ipgeolocation-get-asn` — Get ASN Details (Read-only)

Retrieve detailed ASN information including peers, upstreams, downstreams, routes, and WHOIS data for an ASN number or IP address. Only available on paid plans. See the documentation

Full schema: https://pipedream.com/apps/ipgeolocation/actions/get-asn.md

### `ipgeolocation-get-astronomy` — Get Astronomy Data (Read-only)

Retrieve sunrise, sunset, moonrise, moonset, moon phase, and sun/moon position data for a location by IP address, coordinates, or location string. See the documentation

Full schema: https://pipedream.com/apps/ipgeolocation/actions/get-astronomy.md

### `ipgeolocation-get-astronomy-time-series` — Get Astronomy Time Series (Read-only)

Retrieve astronomical data (sunrise, sunset, moonrise, moonset, moon phase, and more) for a date range up to 90 days for a location by IP address, coordinates, or address. See the documentation

Full schema: https://pipedream.com/apps/ipgeolocation/actions/get-astronomy-time-series.md

### `ipgeolocation-get-bulk-geolocation` — Get Bulk IP Geolocation (Read-only)

Retrieve geolocation data for multiple IPv4/IPv6 addresses or domain names in a single request. Maximum 50,000 IPs per request. Only available on paid plans. See the documentation

Full schema: https://pipedream.com/apps/ipgeolocation/actions/get-bulk-geolocation.md

### `ipgeolocation-get-bulk-ip-security` — Get Bulk IP Security (Read-only)

Retrieve real-time threat intelligence for multiple IPv4 or IPv6 addresses in a single request, including VPN, proxy, Tor, bot, spam detection, and threat scores. Maximum 50,000 IPs per request. Only available on paid plans. See the documentation

Full schema: https://pipedream.com/apps/ipgeolocation/actions/get-bulk-ip-security.md

### `ipgeolocation-get-geolocation` — Get IP Geolocation (Read-only)

Retrieve geolocation data for an IPv4/IPv6 address or domain name, including location, country metadata, timezone, currency, ASN, security insights and more. See the documentation

Full schema: https://pipedream.com/apps/ipgeolocation/actions/get-geolocation.md

### `ipgeolocation-get-ip-security` — Get IP Security (Read-only)

Retrieve real-time threat intelligence for an IPv4 or IPv6 address, including VPN, proxy, Tor, bot, spam detection, and a threat score. Only available on paid plans. See the documentation

Full schema: https://pipedream.com/apps/ipgeolocation/actions/get-ip-security.md

### `ipgeolocation-get-timezone` — Get Timezone (Read-only)

Retrieve timezone information using a timezone name, IP address, coordinates, city, IATA code, ICAO code, or UN/LOCODE. See the documentation

Full schema: https://pipedream.com/apps/ipgeolocation/actions/get-timezone.md

### `ipgeolocation-parse-bulk-user-agents` — Parse Bulk User Agents (Read-only)

Extract browser, device, operating system, and engine details from multiple user agent strings in a single request. Maximum 50,000 strings per request. Only available on paid plans. See the documentation

Full schema: https://pipedream.com/apps/ipgeolocation/actions/parse-bulk-user-agents.md

### `ipgeolocation-parse-user-agent` — Parse User Agent (Read-only)

Extract browser, device, operating system, and engine details from a user agent string. Only available on paid plans. See the documentation

Full schema: https://pipedream.com/apps/ipgeolocation/actions/parse-user-agent.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
