VPNDetection Database API

List and download the licensed databases.

GitHub OpenAPI

Operations 5

GET /api/v1/database/list List #
GET /api/v1/database/download Download #
GET /api/v1/database/metadata Metadata #
GET /api/v1/database/checksum Checksums #
GET /api/v1/database/downloads History #

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/vpndetection-io:vpndetection-io-database-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

vpndetection-io-database-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: VPNDetection Database API
  description: 'The VPNDetection API: classify any IP address, and download the databases

    behind the answers.


    Lookups need no API key: Unlimited, the free plan, answers any address with

    no daily or monthly cap, with a key or without one. Every paid plan answers

    every field, and a free account tries them, 100 lookups a day. Unlimited''s

    answers may be used commercially, but not redistributed or used in a

    competing service (https://vpndetection.io/terms#no-key).


    See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io

    for the official client libraries.'
  contact:
    name: VPNDetection Support
    email: support@vpndetection.io
    url: https://vpndetection.io
  termsOfService: https://vpndetection.io/terms
  version: 2026.11.14
servers:
- url: https://api.vpndetection.io
  description: Production
tags:
- name: Database
  description: List and download the licensed databases.
  x-displayName: Database
paths:
  /api/v1/database/list:
    get:
      operationId: listDatabases
      tags:
      - Database
      summary: List
      description: 'Every database this organization can see, licensed or not. `standing`

        says where its license stands: `licensed`, `expired`, or `unlicensed`

        for one never bought.'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  databases:
                    type: array
                    items:
                      $ref: '#/components/schemas/Database'
                required:
                - databases
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
      - apiKeyQuery: []
      - apiKeyHeader: []
      - bearerAuth: []
  /api/v1/database/download:
    get:
      operationId: downloadDatabase
      tags:
      - Database
      summary: Download
      description: Redirects (`302`) to a time-limited link to the database file. The link only has to be valid when the download starts, so a long one isn't cut off when it expires.
      parameters:
      - in: query
        name: id
        required: true
        schema:
          type: string
        description: Dataset ID, e.g. vpn_ip_extended_v1
      - in: query
        name: format
        required: true
        schema:
          $ref: '#/components/schemas/DatabaseFormat'
        description: 'Not every database is built in every format. The `_provider`

          catalogs are keyed by provider ID rather than by IP range, so no

          MMDB exists for them.

          '
      - in: query
        name: build
        required: false
        schema:
          type: string
          pattern: ^[0-9]{8}\.[a-z0-9]{6}$
          example: 20261105.0t53s5
        description: 'One build of the database, by the name a `database.updated` webhook

          gives it, so the file is the one whose `sha256` the webhook carries.

          Without it, the build that is live.

          '
      responses:
        '302':
          description: Follow the Location header to object storage
          headers:
            Location:
              schema:
                type: string
        '400':
          description: The database is not built in the requested format (`INVALID_FORMAT`), or `build` is not a build's name (`INVALID_BUILD`)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          description: Your organization holds no license for this database, or its term has ended
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No such database
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          description: The build named in `build` is no longer kept (`BUILD_GONE`); builds are kept 7 days. Download without `build` for the live one
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Licensed, but today's copy has not been published yet
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
      - apiKeyQuery: []
      - apiKeyHeader: []
      - bearerAuth: []
  /api/v1/database/metadata:
    get:
      operationId: databaseMetadata
      tags:
      - Database
      summary: Metadata
      description: 'Poll this to decide whether today''s build is worth fetching: it carries

        `updated` and `entries` without downloading anything.


        No `format` parameter - one document describes every format the database

        is built in. Needs no license: it answers for every database `list`

        returns, whatever its `standing`.'
      parameters:
      - in: query
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatabaseMetadata'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/UnknownDataset'
        '503':
          $ref: '#/components/responses/NotAvailable'
      security:
      - apiKeyQuery: []
      - apiKeyHeader: []
      - bearerAuth: []
  /api/v1/database/checksum:
    get:
      operationId: databaseChecksum
      tags:
      - Database
      summary: Checksums
      description: Checksums for one published file, so a download can be verified after it lands.
      parameters:
      - in: query
        name: id
        required: true
        schema:
          type: string
      - in: query
        name: format
        required: true
        schema:
          $ref: '#/components/schemas/DatabaseFormat'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  format:
                    type: string
                  checksums:
                    $ref: '#/components/schemas/DbChecksums'
                required:
                - id
                - format
                - checksums
        '400':
          description: The database is not built in the requested format
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/NotLicensed'
        '404':
          $ref: '#/components/responses/UnknownDataset'
        '503':
          $ref: '#/components/responses/NotAvailable'
      security:
      - apiKeyQuery: []
      - apiKeyHeader: []
      - bearerAuth: []
  /api/v1/database/downloads:
    get:
      operationId: listDownloads
      tags:
      - Database
      summary: History
      description: Recent download attempts for this organization, newest first. Refusals are listed too, so a failed transfer can be accounted for.
      parameters:
      - in: query
        name: limit
        description: How many attempts to return. Clamped to 1 through 200.
        schema:
          type: integer
          default: 50
          minimum: 1
          maximum: 200
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  downloads:
                    type: array
                    items:
                      $ref: '#/components/schemas/Download'
                required:
                - downloads
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
      - apiKeyQuery: []
      - apiKeyHeader: []
      - bearerAuth: []
components:
  schemas:
    DatabaseFormatSize:
      type: object
      properties:
        format:
          $ref: '#/components/schemas/DatabaseFormat'
        bytes:
          type:
          - integer
          - 'null'
          format: int64
          description: 'Size of the published file, or null when it has not been published

            yet. int64 because it is not hypothetical: resproxy_ip_14d''s MMDB is

            4.58 GB, so a 32-bit field cannot carry the catalog and `list`

            throws for every caller rather than for that one entry.

            '
      required:
      - format
      - bytes
    DbChecksums:
      type: object
      description: The published digests for one database file.
      properties:
        md5:
          type: string
        sha1:
          type: string
        sha256:
          type: string
        sha512:
          type: string
      required:
      - md5
      - sha1
      - sha256
      - sha512
    DatabaseFormat:
      type: string
      description: A file format a database version is published in.
      enum:
      - csvgz
      - mmdb
    Database:
      type: object
      description: 'One database FAMILY, with your organization''s license beside it. A license covers

        the family, while a download names a specific version, so the IDs you

        pass to the download and checksum endpoints come from `versions`.

        '
      properties:
        base:
          type: string
          description: The database family, e.g. `vpn_ip`. What the license is held against.
          example: vpn_ip
        name:
          type: string
          example: VPN IP
        summary:
          type: string
        license_type:
          type:
          - string
          - 'null'
          enum:
          - evaluation
          - standard
          - redistribute
          - null
          description: 'What a license permits you to do with the data. Null for a family

            you hold no license for, which is every one with standing

            `unlicensed`.

            '
        starts:
          type:
          - string
          - 'null'
          format: date-time
        expires:
          type:
          - string
          - 'null'
          format: date-time
          description: A hard stop. Null when the license has no end date, which is the normal case for a rolling agreement, and when there is no license. A rolling license reports its turnover date in renews_at instead.
        renews_at:
          type:
          - string
          - 'null'
          format: date-time
          description: When a rolling license next renews. Null when the license has no defined term, when expires sets a hard stop instead, and when there is no license.
        notice_due_at:
          type:
          - string
          - 'null'
          format: date-time
          description: The last day notice of non-renewal can be given for the term ending at renews_at. Null whenever renews_at is, and when the agreement records no notice period.
        in_term:
          type: boolean
          description: False when the license has lapsed; downloads are refused.
        standing:
          $ref: '#/components/schemas/Standing'
        open:
          type: boolean
          description: 'An Open database: free under CC BY-SA 4.0 (credit VPNDetection,

            https://vpndetection.io, and share what you build from it under the

            same license). Every organization holds a `standard` license to it

            from the start, which `standing` and `license_type` report like any

            other.

            '
        versions:
          type: array
          description: 'Every published version of this family. The `id` here is what the

            download and checksum endpoints take.

            '
          items:
            $ref: '#/components/schemas/DatabaseVersion'
      required:
      - base
      - name
      - summary
      - license_type
      - starts
      - expires
      - renews_at
      - notice_due_at
      - in_term
      - standing
      - open
      - versions
    Error:
      type: object
      properties:
        rc:
          type: string
      required:
      - rc
    DatabaseMetadataColumn:
      type: object
      properties:
        name:
          type: string
        type:
          type: string
        description:
          type: string
      required:
      - name
      - type
    Download:
      type: object
      description: 'One download ATTEMPT, refusals included - a denial is what answers "it

        stopped working", so they are listed rather than dropped.

        '
      properties:
        dataset_id:
          type: string
        format:
          type: string
        outcome:
          type: string
          enum:
          - ok
          - unauthorized
          - denied
          - expired
          - unknown
          - unavailable
        sample:
          type: boolean
          description: The evaluation sample rather than the database itself.
        open:
          type: boolean
          description: A download of an Open database.
        bytes:
          type:
          - integer
          - 'null'
          format: int64
          description: 'Object size at redirect time, NOT bytes delivered: the transfer is a

            presigned redirect straight to object storage, so we never observe it.

            int64 for the same reason as DatabaseFormatSize.bytes - it is the

            size of the same object.

            '
        http_status:
          type:
          - integer
          - 'null'
        apikey_id:
          type:
          - string
          - 'null'
          description: 'The key that made the request. Null when the org acted through the

            console rather than through a key.

            '
        client_ip:
          type:
          - string
          - 'null'
        user_agent:
          type:
          - string
          - 'null'
        created:
          type: string
          format: date-time
      required:
      - dataset_id
      - format
      - outcome
      - sample
      - open
      - bytes
      - http_status
      - apikey_id
      - client_ip
      - user_agent
      - created
    Standing:
      type: string
      description: 'Where your license for a database family stands today. `licensed` is a

        live grant, `expired` one whose term has ended, and `unlicensed` a

        database published but never bought.

        '
      enum:
      - expired
      - licensed
      - unlicensed
    DatabaseMetadata:
      type: object
      properties:
        id:
          type: string
        update_freq:
          type: string
          description: How often a new build is published
        updated:
          type: string
          format: date
        entries:
          type: integer
          description: Row count in the current build
        schema:
          type: object
          additionalProperties:
            type: array
            items:
              $ref: '#/components/schemas/DatabaseMetadataColumn'
          description: Columns, keyed by format
        sample:
          type: object
          additionalProperties:
            type: array
            items:
              type: object
          description: A few real rows, keyed by format
        size:
          type: object
          additionalProperties:
            type: integer
            format: int64
          description: Bytes per format
        sample_size:
          type: object
          additionalProperties:
            type: integer
            format: int64
          description: Bytes per format of the evaluation sample, where one is published
        sample_entries:
          type: integer
          description: Row count in the evaluation sample
      required:
      - id
      - updated
      - entries
      - schema
    DatabaseVersion:
      type: object
      properties:
        id:
          type: string
          description: The versioned database ID, e.g. `vpn_ip_v1`. Pass this to download.
          example: vpn_ip_v1
        version:
          type: integer
          example: 1
        summary:
          type: string
        formats:
          type: array
          items:
            $ref: '#/components/schemas/DatabaseFormatSize'
        sample_formats:
          type: array
          description: The formats an evaluation sample is published in, if any.
          items:
            $ref: '#/components/schemas/DatabaseFormat'
      required:
      - id
      - version
      - formats
  responses:
    NotLicensed:
      description: Your organization holds no license for this database, or its term has ended
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UnknownDataset:
      description: No such database
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotAvailable:
      description: Today's copy has not been published yet
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid key, or the key lacks the db.download scope
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: '`Authorization: Bearer <key>`.'
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-Api-Key
      description: '`X-Api-Key: <key>`.'
    apiKeyQuery:
      type: apiKey
      in: query
      name: apikey
      description: '`?apikey=<key>`. Convenient in a browser; prefer a header elsewhere.'
x-tagGroups:
- name: VPNDetection IP API
  tags:
  - Lookup
- name: VPNDetection Database API
  tags:
  - Database
- name: VPNDetection Entitlement API
  tags:
  - Entitlement
- name: VPNDetection IAM API
  tags:
  - Account
  - Organization
  - API keys
- name: VPNDetection Authorization
  tags:
  - Authorization