fourzerotwo-si Ip Geolocation API

IP Geolocation & ASN: IP address to country, continent, network owner (ASN) and a hosting/cloud flag, for IPv4 and IPv6.

Operations 4

GET /v1/ip-geolocation/lookup IP Geolocation & ASN: IP lookup #
GET /v1/ip-geolocation/country IP Geolocation & ASN: IP to country #
GET /v1/ip-geolocation/asn IP Geolocation & ASN: IP to network owner #
GET /v1/ip-geolocation/batch IP Geolocation & ASN: Batch lookup #

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/fourzerotwo-si:fourzerotwo-si-ip-geolocation-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

fourzerotwo-si-ip-geolocation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fourzerotwo Si Ip Geolocation API
  version: 1.1.0
  contact:
    url: https://fourzerotwo.si
  description: 'Operations tagged ip-geolocation across 2 of this provider''s published API definitions: openapi.json, fourzerotwo-si-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://fourzerotwo.si
tags:
- name: ip-geolocation
  description: 'IP Geolocation & ASN: IP address to country, continent, network owner (ASN) and a hosting/cloud flag, for IPv4 and IPv6.'
paths:
  /v1/ip-geolocation/lookup:
    get:
      operationId: ip_geolocation__lookup
      summary: 'IP Geolocation & ASN: IP lookup'
      description: 'Country, continent, EU membership, network block, ASN, organisation and hosting flag for one IP. Price: $0.001 USDC per call via x402. Free within the daily allowance with a free key.'
      tags:
      - ip-geolocation
      externalDocs:
        url: https://fourzerotwo.si/apis/ip-geolocation/lookup
      parameters:
      - name: ip
        in: query
        required: true
        description: IPv4 or IPv6 address
        schema:
          type: string
          maxLength: 45
        example: 81.2.69.142
      responses:
        '200':
          description: The data (paid, or free tier).
          content:
            application/json: {}
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
      - {}
      - freeKey: []
      x-price-usd: '0.001000'
      x-free-tier: free
      x-mcp-tool: ip-geolocation__lookup
    servers:
    - url: https://fourzerotwo.si
  /v1/ip-geolocation/country:
    get:
      operationId: ip_geolocation__country
      summary: 'IP Geolocation & ASN: IP to country'
      description: 'Country and continent for one IP. Price: $0.0005 USDC per call via x402. Free within the daily allowance with a free key.'
      tags:
      - ip-geolocation
      externalDocs:
        url: https://fourzerotwo.si/apis/ip-geolocation/country
      parameters:
      - name: ip
        in: query
        required: true
        description: IPv4 or IPv6 address
        schema:
          type: string
          maxLength: 45
        example: 81.2.69.142
      responses:
        '200':
          description: The data (paid, or free tier).
          content:
            application/json: {}
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
      - {}
      - freeKey: []
      x-price-usd: '0.000500'
      x-free-tier: free
      x-mcp-tool: ip-geolocation__country
    servers:
    - url: https://fourzerotwo.si
  /v1/ip-geolocation/asn:
    get:
      operationId: ip_geolocation__asn
      summary: 'IP Geolocation & ASN: IP to network owner'
      description: 'ASN, organisation and hosting flag for one IP. Price: $0.0005 USDC per call via x402. Free within the daily allowance with a free key.'
      tags:
      - ip-geolocation
      externalDocs:
        url: https://fourzerotwo.si/apis/ip-geolocation/asn
      parameters:
      - name: ip
        in: query
        required: true
        description: IPv4 or IPv6 address
        schema:
          type: string
          maxLength: 45
        example: 81.2.69.142
      responses:
        '200':
          description: The data (paid, or free tier).
          content:
            application/json: {}
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
      - {}
      - freeKey: []
      x-price-usd: '0.000500'
      x-free-tier: free
      x-mcp-tool: ip-geolocation__asn
    servers:
    - url: https://fourzerotwo.si
  /v1/ip-geolocation/batch:
    get:
      operationId: ip_geolocation__batch
      summary: 'IP Geolocation & ASN: Batch lookup'
      description: 'Full lookup for up to 100 IPs in one call. Price: $0.02 USDC per call via x402. 3 free calls/day with a free key.'
      tags:
      - ip-geolocation
      externalDocs:
        url: https://fourzerotwo.si/apis/ip-geolocation/batch
      parameters:
      - name: ips
        in: query
        required: true
        description: Comma-separated IPs (max 100)
        schema:
          type: string
          maxLength: 4600
        example: 8.8.8.8,1.1.1.1,2a00:1450:4009:81a::200e
      responses:
        '200':
          description: The data (paid, or free tier).
          content:
            application/json: {}
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
      - {}
      - freeKey: []
      x-price-usd: '0.020000'
      x-free-tier: sample
      x-mcp-tool: ip-geolocation__batch
    servers:
    - url: https://fourzerotwo.si
components:
  responses:
    PaymentRequired:
      description: x402 payment required. The body (also base64 in the PAYMENT-REQUIRED header) lists accepted payments.
      headers:
        PAYMENT-REQUIRED:
          schema:
            type: string
          description: Base64 JSON x402 v2 PaymentRequired
      content:
        application/json:
          schema:
            type: object
            properties:
              x402Version:
                type: integer
              error:
                type: string
              accepts:
                type: array
                items:
                  type: object
    Error:
      description: 400 = invalid input, 404 = not found at the source, 502 = the source failed. Never charged.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
              charged:
                type: boolean
  securitySchemes:
    freeKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: Optional free key (fzt_…) for the free tier.
x-refined-from:
- openapi.json
- fourzerotwo-si-openapi.json