Network Data Labs Account API

Caller identity and quota

GitHub OpenAPI

Operations 2

GET /v0/me Caller IP and account info #
GET /health Service health #

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-account-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-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Network Data Labs Account 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: Account
  description: Caller identity and quota
paths:
  /v0/me:
    get:
      tags:
      - Account
      operationId: getMe
      summary: Caller IP and account info
      description: 'Returns the caller''s apparent IP plus `plan`, current-period `usage`

        (used / limit / remaining / reset_at), and plan `limits` (per-second,

        quota, key cap, bulk). `requests_remaining_today` is remaining units in

        the current quota period (UTC calendar month on Free and paid).

        Internal/ops keys report `plan: internal` and unlimited limits.'
      parameters:
      - $ref: '#/components/parameters/ApiKeyQueryOptional'
      responses:
        '200':
          description: Caller context
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Me'
              examples:
                authenticated:
                  summary: Authenticated caller
                  value:
                    ip: 4.2.2.2
                    plan: free
                    requests_remaining_today: 847
                    usage:
                      used: 153
                      limit: 1000
                      remaining: 847
                      period: month
                      reset_at: '2026-11-01T00:00:00Z'
                    limits:
                      minute: null
                      rps: 1
                      quota: 1000
                      quota_period: month
                      keys: 1
                      bulk: false
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/KeyRestricted'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/Internal'
  /health:
    get:
      tags:
      - Account
      operationId: getHealth
      summary: Service health
      description: 'Liveness and data-freshness check. No authentication, rate limit or quota.

        `mode` is `live` when all data is loaded, `degraded` when only part of it is,

        and `stub` when none is. `data_updated` is the build date (UTC) of the

        geolocation/ASN data currently served.'
      security: []
      responses:
        '200':
          description: Service is up
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Health'
              example:
                status: ok
                mode: live
                data_updated: '2026-10-01'
                traits_loaded: true
components:
  schemas:
    MeLimits:
      type: object
      required:
      - quota_period
      - bulk
      properties:
        minute:
          type:
          - integer
          - 'null'
          description: Legacy per-minute cap; null on current plans (use `rps`) and when unlimited.
        rps:
          type:
          - integer
          - 'null'
          description: Strict requests-per-second cap with no burst. Free 1, Starter 10, Growth 25, Scale 50; null when unlimited.
        quota:
          type:
          - integer
          - 'null'
        quota_period:
          type: string
          enum:
          - day
          - month
          - unlimited
        keys:
          type:
          - integer
          - 'null'
          description: Max active API keys
        bulk:
          type: boolean
    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`)
    Me:
      type: object
      required:
      - ip
      - plan
      properties:
        ip:
          type: string
          description: Apparent client IP
        plan:
          type: string
          description: Account plan. Env/internal keys report `internal`.
          examples:
          - free
          - starter
          - growth
          - scale
          - internal
        requests_remaining_today:
          type:
          - integer
          - 'null'
          description: Remaining units in the current quota period (UTC calendar month on Free and paid)
        usage:
          $ref: '#/components/schemas/MeUsage'
        limits:
          $ref: '#/components/schemas/MeLimits'
        billing_enabled:
          type: boolean
          description: 'True when Stripe billing is configured. Signed-in users including Free can use Checkout. Dashboard hides Billing unless true.

            '
        billing:
          $ref: '#/components/schemas/MeBilling'
        trial_eligible:
          type: boolean
          description: 'True when a dashboard session can start the 14-day Growth trial (same lifecycle.growth_trial_eligible gate Checkout uses). API-key /v0/me returns false and does not look up eligibility. False when the user already trialed, cancelled after a trial, or is subscribed.

            '
    Health:
      type: object
      required:
      - status
      - mode
      - data_updated
      properties:
        status:
          type: string
          const: ok
        mode:
          type: string
          enum:
          - live
          - degraded
          - stub
          description: '`live` = all data loaded; `degraded` = partial; `stub` = no data loaded'
        data_updated:
          type:
          - string
          - 'null'
          format: date
          description: Build date (UTC) of the geolocation/ASN data currently served; null in stub mode
        traits_loaded:
          type: boolean
          description: True when every trait list (Tor, VPN, relay, hosting, mobile, satellite) is loaded
    MeBilling:
      type: object
      properties:
        status:
          type:
          - string
          - 'null'
        plan:
          type:
          - string
          - 'null'
        price:
          type:
          - string
          - 'null'
        interval:
          type:
          - string
          - 'null'
        current_period_end:
          type:
          - string
          - 'null'
        cancel_at_period_end:
          type: boolean
    MeUsage:
      type: object
      required:
      - used
      - period
      properties:
        used:
          type: integer
          description: Requests counted in the current quota period (account total)
        limit:
          type:
          - integer
          - 'null'
          description: Advertised quota; null if unlimited
        remaining:
          type:
          - integer
          - 'null'
          description: Remaining advertised units (0 in the 10% buffer); null if unlimited
        period:
          type: string
          enum:
          - day
          - month
          - unlimited
        reset_at:
          type:
          - string
          - 'null'
          format: date-time
          description: When the current period resets (UTC)
  responses:
    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
    KeyRestricted:
      description: 'The API key has an origin and/or IP allowlist, and this request matched neither.

        Empty allowlists are unrestricted. `X-Forwarded-For` is never used for the IP check

        (`Fly-Client-IP` on Fly, otherwise the socket peer).

        '
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: KEY_RESTRICTED
              message: This API key is not allowed from this origin or IP address.
  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.