Network Data Labs Bulk API

Batch lookups (up to 100 IPs in v0)

GitHub OpenAPI

Operations 1

POST /v0/bulk Bulk IP 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/networkdatalabs-com:networkdatalabs-com-bulk-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

networkdatalabs-com-bulk-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Network Data Labs Bulk API
  version: 0.1.0
  summary: IP geolocation and IP intelligence API
  description: 'Developer-first IP intelligence API from Network Data Labs.


    Every geo response includes `accuracy_radius_km` and `confidence` — we do not publish

    single-number "99% city accuracy" claims.


    **Base URL:** `https://api.networkdatalabs.com`


    **Auth:** `Authorization: Bearer ` or `?api_key=`


    **Languages:** Docs and support in Spanish and English.


    The Free plan is for personal and non-commercial use. Commercial use requires a paid plan.'
  contact:
    name: Network Data Labs
    email: hello@networkdatalabs.com
    url: https://networkdatalabs.com
  license:
    name: Proprietary
    url: https://networkdatalabs.com
servers:
- url: https://api.networkdatalabs.com
  description: Production
security:
- BearerAuth: []
- ApiKeyQuery: []
tags:
- name: Bulk
  description: Batch lookups (up to 100 IPs in v0)
paths:
  /v0/bulk:
    post:
      tags:
      - Bulk
      operationId: postBulk
      summary: Bulk IP lookup
      description: 'Batch lookup up to **100 IPs** per request in v0.

        **Paid plans only** (Starter, Growth, Scale). Free keys receive `403 PLAN_REQUIRED`

        before the request body is read. Unauthenticated requests stay `401`.

        Returns a map of results keyed by IP; per-IP failures appear under `errors`

        (partial success — one bad IP does not fail the whole batch).


        **Quota:** counts as **1** request toward the per-second rate limit, but **N**

        (number of IPs in the body) toward the account quota (UTC calendar month on

        Free and paid plans). Free is a hard 1,000/month (no buffer). Paid plans

        allow a 10% buffer over the monthly quota, then `429 QUOTA_EXCEEDED`.

        Keys with origin/IP allowlists that do not match return `403 KEY_RESTRICTED`.'
      parameters:
      - $ref: '#/components/parameters/ApiKeyQueryOptional'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkRequest'
            examples:
              mixed:
                summary: Bulk lookup example
                value:
                  ips:
                  - 8.8.8.8
                  - 4.2.2.2
                  - 208.67.222.222
      responses:
        '200':
          description: Bulk results (partial success possible)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkResponse'
              examples:
                success:
                  summary: Three successful lookups
                  value:
                    results:
                      8.8.8.8:
                        ip: 8.8.8.8
                        location:
                          continent_code: NA
                          country_code: US
                          country: United States
                          is_eu: false
                          region: California
                          region_code: CA
                          city: Mountain View
                          postal: '94043'
                          latitude: 37.4056
                          longitude: -122.0775
                          timezone: America/Los_Angeles
                          accuracy_radius_km: 1000
                          confidence: low
                        network:
                          asn: 15169
                          as_org: Google LLC
                          isp: Google LLC
                          organization: Google LLC
                          network: 8.8.8.0/24
                        traits:
                          is_anycast: true
                          is_hosting: true
                          is_mobile: false
                          is_satellite: false
                          is_bogon: false
                          is_proxy: false
                          is_vpn: false
                          is_tor: false
                          is_relay: false
                      4.2.2.2:
                        ip: 4.2.2.2
                        location:
                          continent_code: NA
                          country_code: US
                          country: United States
                          is_eu: false
                          region: Kansas
                          region_code: null
                          city: Independence
                          postal: null
                          latitude: 37.2262
                          longitude: -95.7341
                          timezone: null
                          accuracy_radius_km: 50
                          confidence: medium
                        network:
                          asn: 3356
                          as_org: Level 3 Communications, Inc.
                          isp: Level 3 Communications, Inc.
                          organization: Level 3 Communications, Inc.
                          network: null
                          rir: null
                        traits:
                          is_anycast: false
                          is_hosting: false
                          is_mobile: false
                          is_satellite: false
                          is_bogon: false
                          is_proxy: false
                          is_vpn: false
                          is_tor: false
                          is_relay: false
                      208.67.222.222:
                        ip: 208.67.222.222
                        location:
                          continent_code: NA
                          country_code: US
                          country: United States
                          is_eu: false
                          region: California
                          region_code: null
                          city: San Jose (Tasman and Zanker)
                          postal: null
                          latitude: 37.4084
                          longitude: -121.954
                          timezone: null
                          accuracy_radius_km: 50
                          confidence: medium
                        network:
                          asn: 36692
                          as_org: Cisco OpenDNS, LLC
                          isp: Cisco OpenDNS, LLC
                          organization: Cisco OpenDNS, LLC
                          network: null
                          rir: null
                        traits:
                          is_anycast: true
                          is_hosting: false
                          is_mobile: false
                          is_satellite: false
                          is_bogon: false
                          is_proxy: false
                          is_vpn: false
                          is_tor: false
                          is_relay: false
                    errors: {}
        '400':
          description: Invalid request body
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error:
                  code: INVALID_IP
                  message: Request must include an 'ips' array with 1–100 IP addresses
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/PlanRequired'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Internal'
components:
  responses:
    PlanRequired:
      description: 'Endpoint requires a paid plan (Starter or higher). Free keys receive

        `403 PLAN_REQUIRED` before the request body is read. The error includes

        `plan` (current plan) and `upgrade_url` (public pricing page).

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: PLAN_REQUIRED
              message: Bulk lookups require a paid plan.
              plan: free
              suggested_plan: starter
              upgrade_url: https://networkdatalabs.com/pricing
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: UNAUTHORIZED
              message: Missing or invalid API key
    RateLimited:
      description: 'Rate limit or account quota exceeded.

        Free keys are limited to **1 request/second with no burst** (`RATE_LIMITED`).

        Paid keys use a strict per-second window with no burst (`RATE_LIMITED`):

        Starter 10/s, Growth 25/s, Scale 50/s. Quota (UTC calendar month

        on Free and paid) → `QUOTA_EXCEEDED`. Free is a hard 1,000/month

        (no buffer; resets on the 1st). Paid plans allow a 10% buffer over the monthly quota, then 429.

        Quotas are per account (all keys combined) and counted in memory on the API

        machine (a single Fly VM today), refreshed from stored usage every few minutes.

        Internal keys are unlimited. Error `limit` is the advertised cap; `reset_at`

        is ISO-8601 UTC. `plan` (current plan) and `upgrade_url` (`https://networkdatalabs.com/pricing`)

        are always present. `suggested_plan` is the next tier (omitted on Scale;

        contact us). After a downgrade, extra keys stay valid until revoked and

        existing origin/IP allowlists keep being enforced (Free may only clear them).

        '
      headers:
        Retry-After:
          description: Seconds until the rate window or quota period resets
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Request limit for the current 1-second rate window (Free 1/s; Starter 10/s; Growth 25/s; Scale 50/s)
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: Remaining requests in the current rate window
          schema:
            type: integer
        X-RateLimit-Reset:
          description: Unix timestamp when the current rate window (or, on quota 429, the quota period) resets
          schema:
            type: integer
        X-RateLimit-Limit-Day:
          description: Advertised daily quota when the plan period is a UTC day. Current Free and paid plans send X-RateLimit-Limit-Month instead.
          schema:
            type: integer
        X-RateLimit-Remaining-Day:
          description: Remaining advertised daily units when the plan period is a UTC day. Current plans report remaining on -Month.
          schema:
            type: integer
        X-RateLimit-Limit-Month:
          description: Advertised monthly quota (Free, Starter, Growth, Scale). Resets on the 1st of the UTC calendar month.
          schema:
            type: integer
        X-RateLimit-Remaining-Month:
          description: Remaining advertised monthly units (0 while in a paid plan's 10% buffer)
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            rate_limited:
              summary: Per-second window exceeded (paid)
              value:
                error:
                  code: RATE_LIMITED
                  message: 'Rate limit reached on the Starter plan (10 requests/second). Upgrade to Growth for 25 requests/second: https://networkdatalabs.com/pricing'
                  limit: 10
                  reset_at: '2026-10-12T12:00:01Z'
                  plan: starter
                  suggested_plan: growth
                  upgrade_url: https://networkdatalabs.com/pricing
            free_rate_limited:
              summary: Free plan 1 request/second exceeded
              value:
                error:
                  code: RATE_LIMITED
                  message: 'Rate limit reached on the Free plan (1 request/second). Upgrade to Starter for 10 requests/second: https://networkdatalabs.com/pricing'
                  limit: 1
                  reset_at: '2026-10-12T12:00:01Z'
                  plan: free
                  suggested_plan: starter
                  upgrade_url: https://networkdatalabs.com/pricing
            quota_exceeded:
              summary: Account quota exceeded (paid)
              value:
                error:
                  code: QUOTA_EXCEEDED
                  message: 'Monthly quota reached on the Starter plan (100,000 requests). Upgrade to Growth for 500,000/month: https://networkdatalabs.com/pricing'
                  limit: 100000
                  reset_at: '2026-11-01T00:00:00Z'
                  plan: starter
                  suggested_plan: growth
                  upgrade_url: https://networkdatalabs.com/pricing
            free_quota_exceeded:
              summary: Free plan monthly quota exceeded
              value:
                error:
                  code: QUOTA_EXCEEDED
                  message: 'Monthly quota reached on the Free plan (1,000 requests). Upgrade to Starter for 100,000/month: https://networkdatalabs.com/pricing'
                  limit: 1000
                  reset_at: '2026-11-01T00:00:00Z'
                  plan: free
                  suggested_plan: starter
                  upgrade_url: https://networkdatalabs.com/pricing
    Internal:
      description: Unexpected server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: INTERNAL
              message: Internal server error
  schemas:
    BulkResponse:
      type: object
      required:
      - results
      - errors
      properties:
        results:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/IpLookup'
          description: Map of IP → full lookup result
        errors:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ErrorBody'
          description: Map of IP → error for failed lookups (empty object if all succeeded)
    Traits:
      type: object
      required:
      - is_bogon
      - is_mobile
      - is_satellite
      properties:
        is_anycast:
          type: boolean
          description: True when the IP is a well-known anycast DNS resolver (e.g. 8.8.8.8, 1.1.1.1).
        is_hosting:
          type: boolean
          description: True when the IP belongs to a hosting, datacenter, cloud, or CDN network. Paid plans only (Starter, Growth, Scale). Omitted from Free-plan responses.
        is_mobile:
          type: boolean
          description: True when the IP is on a mobile carrier network.
        is_satellite:
          type: boolean
          description: True when the IP is on a satellite internet network.
        is_bogon:
          type: boolean
          description: True when the IP is in a private or special-use range (RFC1918 private, loopback, link-local, multicast, documentation/benchmark).
        is_proxy:
          type: boolean
          description: Paid plans only (Starter, Growth, Scale). Omitted from Free-plan responses.
        is_vpn:
          type: boolean
          description: True when the IP belongs to a known VPN network, including major commercial VPN providers. Privacy relay egress IPs are reported as is_relay, not is_vpn. Paid plans only (Starter, Growth, Scale). Omitted from Free-plan responses.
        is_tor:
          type: boolean
          description: True when the IP is a current Tor exit node. Paid plans only (Starter, Growth, Scale). Omitted from Free-plan responses.
        is_relay:
          type: boolean
          description: True when the IP is a privacy relay egress address. Paid plans only (Starter, Growth, Scale). Omitted from Free-plan responses.
    Error:
      type: object
      required:
      - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
    ErrorBody:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          enum:
          - INVALID_IP
          - INVALID_EMAIL
          - INVALID_REQUEST
          - UNAUTHORIZED
          - PLAN_REQUIRED
          - KEY_RESTRICTED
          - RATE_LIMITED
          - QUOTA_EXCEEDED
          - NOT_FOUND
          - SERVICE_UNAVAILABLE
          - INTERNAL
        message:
          type: string
        limit:
          type: integer
          description: Advertised cap that was exceeded (429 only)
        reset_at:
          type: string
          format: date-time
          description: When the 1-second rate window or quota period resets (429 only)
        plan:
          type: string
          description: Current account plan (429 and paid-only 403)
        suggested_plan:
          type:
          - string
          - 'null'
          description: Next plan that raises the cap. Omitted for Scale (contact us).
        upgrade_url:
          type: string
          description: Public pricing page (`https://networkdatalabs.com/pricing`)
    BulkRequest:
      type: object
      required:
      - ips
      properties:
        ips:
          type: array
          minItems: 1
          maxItems: 100
          items:
            type: string
          description: IPv4/IPv6 addresses to look up (max 100 in v0)
          examples:
          - - 8.8.8.8
            - 4.2.2.2
            - 208.67.222.222
    Location:
      type: object
      required:
      - continent_code
      - country_code
      - country
      - accuracy_radius_km
      - confidence
      properties:
        continent_code:
          type: string
          description: Continent code (e.g. NA, EU, AS)
          examples:
          - NA
          - EU
        country_code:
          type:
          - string
          - 'null'
          description: ISO-3166-1 alpha-2
          examples:
          - US
        country:
          type:
          - string
          - 'null'
          examples:
          - United States
        is_eu:
          type: boolean
          description: Whether the country is in the European Union
        region:
          type:
          - string
          - 'null'
          examples:
          - California
          - Kansas
        region_code:
          type:
          - string
          - 'null'
          examples:
          - CA
          - B
        city:
          type:
          - string
          - 'null'
          examples:
          - Mountain View
          - Independence
        postal:
          type:
          - string
          - 'null'
        latitude:
          type:
          - number
          - 'null'
          format: double
        longitude:
          type:
          - number
          - 'null'
          format: double
        timezone:
          type:
          - string
          - 'null'
          description: IANA timezone
          examples:
          - America/Los_Angeles
          - America/Chicago
        accuracy_radius_km:
          type:
          - number
          - 'null'
          description: 'Estimated accuracy radius in kilometers. Always present when geo is returned;

            it tells you how precise the location is. Wide radii (e.g. 1000) mean city is a best-effort guess.

            '
          examples:
          - 50
          - 1000
        confidence:
          type: string
          enum:
          - high
          - medium
          - low
          - unknown
          description: Qualitative confidence in the geo estimate
    Network:
      type: object
      properties:
        asn:
          type:
          - integer
          - 'null'
          examples:
          - 15169
          - 3356
        as_org:
          type:
          - string
          - 'null'
          examples:
          - Google LLC
          - Level 3 Communications, Inc.
        isp:
          type:
          - string
          - 'null'
        organization:
          type:
          - string
          - 'null'
        network:
          type:
          - string
          - 'null'
          description: Containing prefix (CIDR)
          examples:
          - 8.8.8.0/24
          - 4.0.0.0/12
        rir:
          type:
          - string
          - 'null'
          description: Regional Internet Registry
          examples:
          - ARIN
          - LACNIC
          - RIPE
          - APNIC
          - AFRINIC
    IpLookup:
      type: object
      required:
      - ip
      - location
      - network
      - traits
      properties:
        ip:
          type: string
        location:
          $ref: '#/components/schemas/Location'
        network:
          $ref: '#/components/schemas/Network'
        traits:
          $ref: '#/components/schemas/Traits'
  parameters:
    ApiKeyQueryOptional:
      name: api_key
      in: query
      required: false
      description: Optional API key (if not using Bearer header)
      schema:
        type: string
        example: YOUR_API_KEY
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key
      description: 'API keys are issued by Network Data Labs. Prefer

        `Authorization: Bearer YOUR_API_KEY` (or `ndl_live_…` style keys).

        Unknown or missing keys return `401 UNAUTHORIZED`. Any non-empty

        string is **not** accepted.

        '
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
      description: Optional alternative to Bearer — useful for quick curl tests. Prefer header in production.