CONNECT APP
Build with IPGeolocation
Developer Tools
- API key
MCP
Give your agent IPGeolocation tools
Every IPGeolocation action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's IPGeolocation account for each tool call — you store no tokens.
// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{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",
},
})# access_token: mint a short-lived token with the Connect SDK — see the MCP guide
headers = {
"Authorization": f"Bearer {access_token}",
"x-pd-project-id": "{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",
}
async with streamablehttp_client("https://remote.mcp.pipedream.net/v3", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
# e.g. run Convert Timezone:
result = await session.call_tool("ipgeolocation-convert-timezone", {
"tzFrom": "From Timezone",
"tzTo": "To Timezone",
})API PROXY
Call the IPGeolocation API directly
For an endpoint with no pre-built tool, the Connect proxy forwards your request to the IPGeolocation API with the connected user's credentials attached. You store no tokens and write no refresh logic.
const resp = await pd.proxy.get({
externalUserId: "{external_user_id}", // any stable ID for this user in your system
accountId: "apn_xxxxxxx",
url: "https://api.ipgeolocation.io/v3/ipgeo",
})
// Any allowed IPGeolocation endpoint works here. Pipedream attaches the
// connected account's credentials to the outgoing request.# 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"SDK
Run IPGeolocation actions from your backend
Connect a user's IPGeolocation account once, then run Convert Timezone on their behalf from your own code — TypeScript, Python, or plain HTTP.
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",
},
})from pipedream import Pipedream
pd = Pipedream(
client_id="{oauth_client_id}",
client_secret="{oauth_client_secret}",
project_id="{project_id}",
project_environment="production",
)
result = pd.actions.run(
id="ipgeolocation-convert-timezone",
external_user_id="{external_user_id}", # any stable ID for this user in your system
configured_props={
"ipgeolocation": {"authProvisionId": "apn_xxxxxxx"},
"tzFrom": "From Timezone",
"tzTo": "To Timezone",
},
)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "ipgeolocation-convert-timezone",
"configured_props": {
"ipgeolocation": { "authProvisionId": "apn_xxxxxxx" },
"tzFrom": "From Timezone",
"tzTo": "To Timezone"
}
}'TOOLS
IPGeolocation actions
On-demand operations your product or agent can configure and run on behalf of a connected user.
-
Convert Timezone
actionConvert a time between two timezones using timezone names, coordinates, city, IATA, ICAO, or UN/LOCODE. See the documentationRead-onlyv0.0.2 -
Get Abuse Contact
actionRetrieve 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 documentationRead-onlyv0.0.2 -
Get ASN Details
actionRetrieve 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 documentationRead-onlyv0.0.2 -
Get Astronomy Data
actionRetrieve sunrise, sunset, moonrise, moonset, moon phase, and sun/moon position data for a location by IP address, coordinates, or location string. See the documentationRead-onlyv0.0.2 -
Get Astronomy Time Series
actionRetrieve 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 documentationRead-onlyv0.0.2 -
Get Bulk IP Geolocation
actionRetrieve 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 documentationRead-onlyv0.0.2 -
Get Bulk IP Security
actionRetrieve 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 documentationRead-onlyv0.0.2 -
Get IP Geolocation
actionRetrieve geolocation data for an IPv4/IPv6 address or domain name, including location, country metadata, timezone, currency, ASN, security insights and more. See the documentationRead-onlyv0.0.2 -
Get IP Security
actionRetrieve 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 documentationRead-onlyv0.0.2 -
Get Timezone
actionRetrieve timezone information using a timezone name, IP address, coordinates, city, IATA code, ICAO code, or UN/LOCODE. See the documentationRead-onlyv0.0.2 -
Parse Bulk User Agents
actionExtract 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 documentationRead-onlyv0.0.2 -
Parse User Agent
actionExtract browser, device, operating system, and engine details from a user agent string. Only available on paid plans. See the documentationRead-onlyv0.0.2
EVENTS
IPGeolocation triggers
Event sources your backend can deploy for users and receive through a webhook.
No IPGeolocation triggers are available yet.
- App slug
- ipgeolocation
- Authentication
- API key
- Categories
- Developer Tools
- Actions
- 12
- Triggers
- 0
- API proxy
- Available