IPFly Geolocation API

IP address lookup, location, network ownership and threat intelligence.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /api Look up an IP address #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/ipfly-world:ipfly-world-geolocation-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

ipfly-world-geolocation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: IPFly Geolocation API
  version: 1.0.0
  description: 'IP geolocation and threat intelligence for any IPv4 or IPv6 address, in a single HTTP GET.


    Every lookup returns the location of the address — country, region, city, postal code, coordinates, timezone and currency — plus the autonomous system and company that own it. The optional `security` group adds VPN, proxy, Tor, datacenter and threat flags.


    **Authentication** — the API token travels in the `token` query parameter. There is no OAuth handshake and no request signing. Keep the token on your server and proxy calls through your own backend: a token embedded in a browser or mobile bundle is a token you will lose.


    **Quota** — every plan carries a daily and a monthly request quota. Successful answers carry the current counters in the `X-RateLimit-Daily-Used` and `X-RateLimit-Monthly-Used` response headers, so you never need a second request to track usage.


    **Caching** — an address rarely changes location. Caching answers for 12-24 hours cuts request volume dramatically.'
  termsOfService: https://ipfly.world/terms
  contact:
    name: IPFly Support
    url: https://ipfly.world
    email: support@ipfly.world
  license:
    name: Proprietary
    url: https://ipfly.world/terms
  x-logo:
    url: https://ipfly.world/favicon.svg
    backgroundColor: '#0B0E14'
servers:
- url: https://ipfly.world
  description: Production
tags:
- name: Geolocation
  description: IP address lookup, location, network ownership and threat intelligence.
paths:
  /api:
    get:
      tags:
      - Geolocation
      summary: Look up an IP address
      description: 'Resolves a single IPv4 or IPv6 address.


        Omit the `ip` parameter to geolocate the caller''s own address, as seen by the API.


        The response contains the `geo` fields (location, timezone, currency) and, on plans that unlock them, the `asn` and `company` objects. The `security` object is never included by default — request it with `include=security`.'
      operationId: lookupIp
      security:
      - tokenAuth: []
      parameters:
      - name: ip
        in: query
        required: false
        description: The address to look up. Accepts IPv4 and IPv6. Omit to detect the caller's own IP.
        schema:
          type: string
          example: 8.8.8.8
        example: 8.8.8.8
      - name: include
        in: query
        required: false
        description: Adds an extra field group to the answer. Currently `security` only — the threat-intelligence block, which is plan-dependent and costs an additional upstream lookup. It is never returned unless you ask for it.
        schema:
          type: string
          enum:
          - security
        example: security
      responses:
        '200':
          description: The address was resolved.
          headers:
            X-RateLimit-Daily-Used:
              description: Requests used today, after this one.
              schema:
                type: integer
            X-RateLimit-Monthly-Used:
              description: Requests used this month, after this one.
              schema:
                type: integer
            X-User-Plan:
              description: The plan the token is currently on.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeoRecord'
              examples:
                usHostingIp:
                  summary: 8.8.8.8 with the security group
                  value:
                    ip: 8.8.8.8
                    hostname: dns.google
                    country_code2: US
                    country_code3: USA
                    country_name: United States
                    country_capital: Washington
                    state_prov: California
                    city: Mountain View
                    zipcode: '94043'
                    latitude: '37.4056'
                    longitude: '-122.0775'
                    is_eu: false
                    country_emoji: 🇺🇸
                    calling_code: '+1'
                    country_tld: .us
                    languages: en
                    currency:
                      code: USD
                      name: Dollar
                      symbol: $
                    time_zone:
                      name: America/New_York
                      offset: -4
                      offset_with_dst: -3
                      current_time: 2026-08-21 03:12:46.964685-0400
                      current_time_unix: 1787296366.9647
                      current_tz_abbreviation: EDT
                      current_tz_full_name: Eastern Daylight Time
                      is_dst: true
                    asn:
                      asn: AS15169
                      name: Google LLC
                      domain: google.com
                      route: 8.8.8.0/24
                      type: hosting
                    company:
                      name: AS15169 Google LLC
                      domain: google.com
                      type: isp
                    security:
                      is_tor: false
                      is_vpn: false
                      is_icloud_relay: false
                      is_proxy: false
                      is_datacenter: true
                      is_anonymous: false
                      is_known_attacker: false
                      is_known_abuser: false
                      is_threat: false
                      is_bogon: false
                      blocklists: []
                      scores:
                        vpn_score: 100
                        proxy_score: 1
                        threat_score: 100
                        trust_score: 33
                withoutSecurity:
                  summary: The same lookup without include=security
                  value:
                    ip: 8.8.8.8
                    hostname: dns.google
                    country_code2: US
                    country_code3: USA
                    country_name: United States
                    city: Mountain View
                    latitude: '37.4056'
                    longitude: '-122.0775'
                    is_eu: false
                    currency:
                      code: USD
                      name: Dollar
                      symbol: $
        '400':
          description: The `ip` parameter is not a valid IP address.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Invalid IP address
        '402':
          description: The subscription has expired. Renew it to restore access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionError'
              example:
                error: Subscription expired. Please renew your plan
                plan: pro_monthly
                billing_end: '2026-08-01'
        '403':
          description: The token is missing or invalid, the subscription is inactive, the token is not allowed from this origin, or the plan does not include the requested field group.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Invalid API token! Please recheck your token or sign up at https://ipfly.world/billing
        '429':
          description: The daily or monthly request quota has been used up.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuotaError'
              example:
                error: You've exceeded your daily request quota. Please upgrade your plan at https://ipfly.world/billing
                limit: 1000
                used: 1000
                remaining: 0
                plan: free
        '500':
          description: The lookup service could not produce an answer. Safe to retry with backoff.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Failed to fetch geolocation data. Please recheck your code or request syntax.
components:
  schemas:
    Blocklist:
      type: object
      description: A blocklist the address appears on.
      properties:
        name:
          type: string
          description: Name of the list.
          example: spamhaus-drop
        site:
          type: string
          description: Site publishing the list.
          example: https://www.spamhaus.org
    SecurityScores:
      type: object
      description: Reputation scores for the address.
      properties:
        vpn_score:
          type: number
          description: VPN score.
          example: 100
        proxy_score:
          type: number
          description: Proxy score.
          example: 1
        threat_score:
          type: number
          description: Threat score.
          example: 100
        trust_score:
          type: number
          description: Trust score.
          example: 33
    TimeZone:
      type: object
      description: Current time and timezone data for the location of the address.
      properties:
        name:
          type: string
          description: IANA timezone name.
          example: America/New_York
        offset:
          type: number
          description: UTC offset in hours, without daylight saving time.
          example: -4
        offset_with_dst:
          type: number
          description: UTC offset in hours, including daylight saving time.
          example: -3
        current_time:
          type: string
          description: Current local time.
          example: 2026-08-21 03:12:46.964685-0400
        current_time_unix:
          type: number
          description: Current local time as a Unix timestamp.
          example: 1787296366.9647
        current_tz_abbreviation:
          type: string
          description: Timezone abbreviation.
          example: EDT
        current_tz_full_name:
          type: string
          description: Full timezone name.
          example: Eastern Daylight Time
        is_dst:
          type: boolean
          description: Whether daylight saving time is currently active.
          example: true
    Security:
      type: object
      description: Threat intelligence and anonymisation flags. Returned only when `include=security` is sent and the plan unlocks the group. Treat these as signals, not verdicts — false positives on shared corporate NATs and mobile carrier gateways are common.
      properties:
        is_tor:
          type: boolean
          description: Whether the address is a Tor exit node.
          example: false
        is_vpn:
          type: boolean
          description: Whether the address is used for a VPN.
          example: false
        is_icloud_relay:
          type: boolean
          description: Whether the address is an iCloud Apple relay.
          example: false
        is_proxy:
          type: boolean
          description: Whether the address is a known proxy.
          example: false
        is_datacenter:
          type: boolean
          description: Whether the address belongs to a datacenter allocation.
          example: true
        is_anonymous:
          type: boolean
          description: Whether the address is used for anonymisation.
          example: false
        is_known_attacker:
          type: boolean
          description: Whether the address is used for DoS attacks or floods.
          example: false
        is_known_abuser:
          type: boolean
          description: Whether the address is used for abuse such as hijacking or malware.
          example: false
        is_threat:
          type: boolean
          description: Whether the address belongs to a high-risk threat network.
          example: false
        is_bogon:
          type: boolean
          description: Whether the address belongs to a bogon CIDR range.
          example: false
        blocklists:
          type: array
          description: Lists the address appears on.
          items:
            $ref: '#/components/schemas/Blocklist'
        scores:
          $ref: '#/components/schemas/SecurityScores'
    Currency:
      type: object
      description: Local currency of the country the address is located in.
      properties:
        code:
          type: string
          description: ISO 4217 currency code.
          example: USD
        name:
          type: string
          description: Currency name.
          example: Dollar
        symbol:
          type: string
          description: Currency symbol.
          example: $
    Error:
      type: object
      description: Every error is returned as JSON with a human-readable message. Branch on the HTTP status rather than on the message text — the wording is meant for logs and may change.
      required:
      - error
      properties:
        error:
          type: string
          description: What went wrong.
          example: Invalid IP address
    SubscriptionError:
      type: object
      description: Returned when the subscription has expired.
      required:
      - error
      properties:
        error:
          type: string
          description: What went wrong.
          example: Subscription expired. Please renew your plan
        plan:
          type: string
          description: The plan the token is on.
          example: pro_monthly
        billing_end:
          type: string
          description: When the paid period ended.
          example: '2026-08-01'
    GeoRecord:
      type: object
      description: The resolved address. Which fields are present depends on the plan and on the `include` parameter. A plan that unlocks no field group at all returns an empty object.
      required:
      - ip
      properties:
        ip:
          type: string
          description: The queried IP address.
          example: 8.8.8.8
        hostname:
          type: string
          description: Reverse DNS hostname of the address.
          example: dns.google
        country_code2:
          type: string
          description: ISO 3166-1 alpha-2 country code.
          example: US
        country_code3:
          type: string
          description: ISO 3166-1 alpha-3 country code.
          example: USA
        country_name:
          type: string
          description: Common name of the country.
          example: United States
        country_capital:
          type: string
          description: Capital city of the country.
          example: Washington
        state_prov:
          type: string
          description: State, province or region name.
          example: California
        state_code:
          type: string
          description: State or province code.
          example: CA
        district:
          type: string
          description: District or sub-region.
          example: Santa Clara County
        city:
          type: string
          description: City name.
          example: Mountain View
        zipcode:
          type: string
          description: ZIP or postal code.
          example: '94043'
        latitude:
          type: string
          description: Latitude coordinate.
          example: '37.4056'
        longitude:
          type: string
          description: Longitude coordinate.
          example: '-122.0775'
        is_eu:
          type: boolean
          description: Whether the country is a member of the European Union.
          example: false
        country_emoji:
          type: string
          description: Country flag emoji.
          example: 🇺🇸
        calling_code:
          type: string
          description: International dialing code.
          example: '+1'
        country_tld:
          type: string
          description: Country code top-level domain.
          example: .us
        languages:
          type: string
          description: Official language or languages of the country.
          example: en
        currency:
          $ref: '#/components/schemas/Currency'
        time_zone:
          $ref: '#/components/schemas/TimeZone'
        asn:
          $ref: '#/components/schemas/Asn'
        company:
          $ref: '#/components/schemas/Company'
        security:
          $ref: '#/components/schemas/Security'
    Asn:
      type: object
      description: Autonomous system the address is routed through. Returned on plans that include ASN data.
      properties:
        asn:
          type: string
          description: AS number.
          example: AS15169
        name:
          type: string
          description: Organization name.
          example: Google LLC
        domain:
          type: string
          description: Organization's domain.
          example: google.com
        route:
          type: string
          description: IP route or prefix in CIDR notation.
          example: 8.8.8.0/24
        type:
          type: string
          description: Network type. Usually one of isp, hosting, business or education.
          example: hosting
    QuotaError:
      type: object
      description: Returned when the daily or monthly quota is exhausted.
      required:
      - error
      properties:
        error:
          type: string
          description: What went wrong.
          example: You've exceeded your daily request quota. Please upgrade your plan at https://ipfly.world/billing
        limit:
          type: integer
          description: The quota that was hit.
        used:
          type: integer
          description: How much of the quota is used.
        remaining:
          type: integer
          description: How much of the quota is left.
        plan:
          type: string
          description: The plan the token is on.
          example: free
    Company:
      type: object
      description: Organisation that owns or operates the address. Returned on plans that include company data.
      properties:
        name:
          type: string
          description: Company name.
          example: AS15169 Google LLC
        domain:
          type: string
          description: Company domain.
          example: google.com
        type:
          type: string
          description: Company type. Usually one of isp, hosting, business or education.
          example: isp
  securitySchemes:
    tokenAuth:
      type: apiKey
      in: query
      name: token
      description: Your API token, sent as the `token` query parameter (for example `https://ipfly.world/api?token=YOUR_TOKEN&ip=8.8.8.8`). Tokens can be restricted to a set of IPs and domains in the dashboard.
externalDocs:
  description: IPFly documentation
  url: https://ipfly.world/documentation
x-provenance:
  method: harvested
  publisher: IPFly
  source: https://ipfly.world/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)