Network & DNS

GET/api/v1/ip-info

PacketFlo IP Info API

Cost: 1 credit per request

Network owner, ISP, and country for any IP address. asn is the bare AS number as a string (for example "13335"), and source is "live" or "fallback" (an offline dataset used when the live lookup is unavailable). To find your own public IP, use My IP.

ParameterTypeRequiredDescription
targetstringYesIP address or domain (resolved to its first A record).

IP Address Target

Direct lookup of an IPv4 or IPv6 address.

Example request

curl "https://packetflo.io/api/v1/ip-info?target=1.1.1.1&api_key=YOUR_API_KEY"

Example response

{
  "ok": true,
  "data": {
    "ip": "1.1.1.1",
    "source": "live",
    "asn": "13335",
    "asName": "Cloudflare, Inc.",
    "asDomain": "cloudflare.com",
    "countryCode": "AU",
    "country": "Australia",
    "continentCode": "OC",
    "continent": "Oceania",
    "resolvedFrom": null
  },
  "meta": { "tool": "ip-info", "version": "v1" }
}

Domain Target

Resolves a hostname to its public IP and reports network ownership with resolvedFrom set.

Example request

curl "https://packetflo.io/api/v1/ip-info?target=one.one.one.one&api_key=YOUR_API_KEY"

Example response

{
  "ok": true,
  "data": {
    "ip": "1.1.1.1",
    "source": "live",
    "asn": "13335",
    "asName": "Cloudflare, Inc.",
    "asDomain": "cloudflare.com",
    "countryCode": "AU",
    "country": "Australia",
    "continentCode": "OC",
    "continent": "Oceania",
    "resolvedFrom": "one.one.one.one"
  },
  "meta": { "tool": "ip-info", "version": "v1" }
}

Reading the result

Returns country and network ownership data for one public IP. A hostname is resolved first; only the selected address is enriched.

Response fields

FieldWhat it tells you
ip / resolvedFromThe address looked up and the original hostname. resolvedFrom is null for an IP input.
sourcelive for the primary provider or fallback for the local database, which may contain older data.
asn / asName / asDomainNetwork ownership information; unavailable values are null. asDomain is inferred from the organization, not verified ownership.
country / countryCode / continent / continentCodeApproximate geographic information. Unknown fields are null.

Scope and limits

Uses IP2Location with a local DB-IP fallback. Country data does not locate a person or device precisely. VPNs, mobile networks and hosting providers can affect the reported location.

Authentication and errors

Send your key in the x-api-key header, or the supported api_key query parameter. Each request uses 1 credit from the key's shared 300-credit rolling 24-hour budget. Credits are charged before parameter validation. Successful responses and quota errors include usage headers; GET and OPTIONS support CORS.

API statusMeaning
200The diagnostic returned a result in data, with ok: true and version information in meta. Read the diagnostic fields to determine the target's condition.
400Invalid or blocked input, or a lookup/check failure that could not be returned as a diagnostic result. Read error for details.
401Missing, invalid or revoked API key.
429The request would exceed the key's available credit budget.
ASN Lookup