# VPNDetection Documentation > API and database reference, and the official integrations, for VPNDetection. Every page is also markdown: its URL with `.mdx` appended, as linked below. The product: https://vpndetection.io, with its own summary at https://vpndetection.io/llms.txt. ## API Reference - [Overview](https://docs.vpndetection.io/api.mdx): HTTP API reference for VPNDetection services. - [Identity](https://docs.vpndetection.io/api/account/accountIdentity.mdx): The identity behind this credential: what it is, the organization it is scoped to, and the scopes it currently holds. `user` is present for an OAuth token and absent for an API key, which has an organization but no person behind it. `credential.kind` says which you are holding, so a client can branch without guessing from a missing field. `scopes` is what the credential may do now, so a client can check before it calls. - [Create](https://docs.vpndetection.io/api/api-keys/accountCreateApikey.mdx): Creates a key and returns its secret. Store the secret now. Reading it back later takes `reveal` and the `apikeys.reveal` scope. - [List](https://docs.vpndetection.io/api/api-keys/accountListApikeys.mdx): Each key's metadata. A list never carries a secret, here or in the console: `reveal` reads one. `retrievable` says whether the secret could still be read back at all. A key issued before this product stored secrets recoverably was never kept, so `reveal` will refuse it permanently; rotating produces one that can be read. - [Reveal](https://docs.vpndetection.io/api/api-keys/accountRevealApikey.mdx): Returns an existing key's secret. It needs the `apikeys.reveal` scope, which `apikeys.manage` doesn't include. Refused with `NOT_RETRIEVABLE` for a key issued before we kept secrets. Rotate that key instead. - [Revoke](https://docs.vpndetection.io/api/api-keys/accountRevokeApikey.mdx): Stops the key working. Revocation is soft: the key stays listed with a `revoked_at`, because the organization still owns whatever it did while it was alive. - [Rotate](https://docs.vpndetection.io/api/api-keys/accountRotateApikey.mdx): Replaces the secret behind a key, keeping its ID, name and settings. The previous secret stops working immediately. The new secret comes back in the answer, so this needs `apikeys.reveal` as well as `apikeys.manage`. - [Authentication](https://docs.vpndetection.io/api/auth.mdx): How to authenticate with the VPNDetection HTTP API. - [Authorize](https://docs.vpndetection.io/api/authorization/oauthAuthorize.mdx): The browser entry point for the authorization-code flow. This is a redirect target, not something to call from code. Any client may sign in without registering first by using a Client ID Metadata Document: make `client_id` an https URL that serves your client's metadata as JSON, naming that same URL as its `client_id`, with `token_endpoint_auth_method` `none` and your `redirect_uris`. An https redirect URI must be on the same origin as the `client_id`; a loopback one (`http://127.0.0.1`, `http://[::1]`, `http://localhost`) matches on any port. Such a client is granted `apikeys.use` at most. A client registered at `/oauth/register` uses the `client_id` it was given and one of the `redirect_uris` it registered. An unknown `client_id` or an unregistered `redirect_uri` is shown to the person and never redirected, because sending an error to an address we have not verified belongs to you is how an open redirector works. Any other error in the request is shown to the person too: anyone can make a client, so its `redirect_uri` is verified only as its own (RFC 9700 section 4.11.2). Only the person's answer comes back to your `redirect_uri`: a `code`, or `error` `access_denied`, each with your `state` and `iss`. - [Device authorization](https://docs.vpndetection.io/api/authorization/oauthDeviceAuthorization.mdx): Starts the device flow. Show the `user_code` to the person and send them to `verification_uri`; `verification_uri_complete` has the code already embedded, which is what to open if you can open a browser at all. Then poll `/oauth/token`, no faster than `interval` seconds. - [Discovery](https://docs.vpndetection.io/api/authorization/oauthMetadata.mdx): RFC 8414 authorization server metadata: the endpoints, the grant types and the scopes this server supports. Read this rather than hardcoding endpoints. It is also served at `/.well-known/openid-configuration`, identically, because several clients probe that path first. - [Register](https://docs.vpndetection.io/api/authorization/oauthRegister.mdx): RFC 7591 dynamic client registration, for a client that cannot use a Client ID Metadata Document. Post your client's metadata as JSON, then use the `client_id` in the answer at `/oauth/authorize` and `/oauth/token`. Nothing is kept until a person approves your client, so registering again costs nothing and leaves nothing to clean up. Each redirect URI must be https on a public host name, or http on a loopback address (`127.0.0.1`, `[::1]`, `localhost`), which then matches on any port. A custom URI scheme is refused: use a loopback redirect instead. So is a host on one of our own domains. `client_name` is shown to the person as your client's own claim, with where its redirect goes beside it. A name that renders blank, or mixes Latin letters with Cyrillic or Greek ones, is shown as an unnamed application. The client is public whatever you ask for: `token_endpoint_auth_method` comes back `none`, there is no client secret, and every authorization proves itself with PKCE. It may be granted `apikeys.use` at most. - [Revoke](https://docs.vpndetection.io/api/authorization/oauthRevoke.mdx): RFC 7009. Always answers 200, even for a token that was never valid, so it can't be used to test whether a token is live. Revoking a refresh token ends the whole authorization and takes its access tokens with it. Revoking an access token affects only that token. - [Token](https://docs.vpndetection.io/api/authorization/oauthToken.mdx): Issues tokens for three grant types: a device code, an authorization code and a refresh token. `urn:ietf:params:oauth:grant-type:device_code` polls a device authorization. Until the person approves it answers `authorization_pending`; poll faster than `interval` and it answers `slow_down`, which means widen your interval and keep it widened. `authorization_code` exchanges a code from `/oauth/authorize`, with the `code_verifier` matching the challenge you sent and the same `redirect_uri`. A code works once: presenting it again also revokes what the first exchange issued. `refresh_token` exchanges a refresh token. The presented token is consumed whatever happens next, so store the new one before using it. Presenting a consumed refresh token again ends the whole authorization, since it means the token was copied. - [Checksums](https://docs.vpndetection.io/api/database/databaseChecksum.mdx): Checksums for one published file, so a download can be verified after it lands. - [Metadata](https://docs.vpndetection.io/api/database/databaseMetadata.mdx): 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`. - [Download](https://docs.vpndetection.io/api/database/downloadDatabase.mdx): 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. - [List](https://docs.vpndetection.io/api/database/listDatabases.mdx): Every database this organization can see, licensed or not. `standing` says where its license stands: `licensed`, `expired`, or `unlicensed` for one never bought. - [History](https://docs.vpndetection.io/api/database/listDownloads.mdx): Recent download attempts for this organization, newest first. Refusals are listed too, so a failed transfer can be accounted for. - [Plan and usage](https://docs.vpndetection.io/api/entitlement/myEntitlement.mdx): Answers what the presented key is, what plan is behind it, and what has been spent against that plan's allowance in the current window. - [Batch](https://docs.vpndetection.io/api/lookup/lookupBatch.mdx): Answers up to 1000 addresses in one call. Each distinct string in `ips` is one lookup: it costs exactly what `GET /{ip}` costs for that address and comes back with exactly the fields that call would carry for your plan. Exact duplicates collapse to one entry and one lookup. Both maps in the answer are keyed by the string you sent, so nothing has to be lined up by position; the `ip` inside each result is the normalized form. An address that could not be answered sits in `errors` with the status and message the single lookup would have given, and never disturbs the others: a string that is not an address is a `400` there, and an overage cap reached part way through leaves the remaining entries as `429`s. The call itself fails only for the reasons below, and a `429` on the call always carries `Retry-After`: the batch is admitted or refused whole by the rate limit, so a per-entry `429` is always the overage cap and never a throttle. A batch needs a paid plan: without a key the call is refused with `401`, and with a key on the free plan with `402`, unless it names one address, which is answered as `GET /{ip}` would answer it, under the same rate limit. Unlimited looks up one address at a time. - [Lookup](https://docs.vpndetection.io/api/lookup/lookupIp.mdx): Answers what is known about a single IPv4 or IPv6 address. Which fields come back is decided by the presented key; with no key, on Unlimited, the free plan, the answer is `ip`, `is_vpn`, the Tor and relay members, `location` and `asn`. - [My IP](https://docs.vpndetection.io/api/lookup/lookupMyIp.mdx): Answers what is known about the address this request came from, which is the same answer `GET /{ip}` gives for that address: the presented key decides which fields come back, and the request counts against the same limits. The address is the one our edge observed, so a request through a proxy or a VPN reports the exit it left through rather than the machine that made it. That is usually the point of asking. - [Organization](https://docs.vpndetection.io/api/organization/accountOrg.mdx): The organization this credential is scoped to. A credential belongs to one organization, so this takes no ID. - [Members](https://docs.vpndetection.io/api/organization/accountOrgMembers.mdx): The members of the organization this credential is scoped to. Read-only. Members are invited by email from the console. - [Rate Limits](https://docs.vpndetection.io/api/rate-limits.mdx): Quota and throttling behavior for the VPNDetection HTTP API. ## Database Reference - [Overview](https://docs.vpndetection.io/database.mdx): Every VPNDetection dataset you can download through the Database API, each with its schema, a small sample, the update cadence and file metadata. - [CDN IP](https://docs.vpndetection.io/database/cdn-ip/cdn-ip.mdx): IP ranges operated by content delivery networks. - [CDN Provider](https://docs.vpndetection.io/database/cdn-ip/cdn-provider.mdx): The catalog of CDN providers referenced by the CDN IP dataset. - [Datacenter Proxy IP 14d](https://docs.vpndetection.io/database/dcproxy-ip/dcproxy-ip-14d.mdx): Datacenter-hosted proxy IPs seen in the last 14 days, with provider attribution. - [Datacenter Proxy IP 1d](https://docs.vpndetection.io/database/dcproxy-ip/dcproxy-ip-1d.mdx): Datacenter-hosted proxy IPs seen in the last 24 hours, with provider attribution. - [Datacenter Proxy IP 30d](https://docs.vpndetection.io/database/dcproxy-ip/dcproxy-ip-30d.mdx): Datacenter-hosted proxy IPs seen in the last 30 days, with provider attribution. - [Datacenter Proxy IP 60d](https://docs.vpndetection.io/database/dcproxy-ip/dcproxy-ip-60d.mdx): Datacenter-hosted proxy IPs seen in the last 60 days, with provider attribution. - [Datacenter Proxy IP 7d](https://docs.vpndetection.io/database/dcproxy-ip/dcproxy-ip-7d.mdx): Datacenter-hosted proxy IPs seen in the last 7 days, with provider attribution. - [Datacenter Proxy IP 90d](https://docs.vpndetection.io/database/dcproxy-ip/dcproxy-ip-90d.mdx): Datacenter-hosted proxy IPs seen in the last 90 days, with provider attribution. - [Datacenter Proxy Provider](https://docs.vpndetection.io/database/dcproxy-ip/dcproxy-provider.mdx): Reference catalog of tracked datacenter proxy providers, with defunct status. - [Formats](https://docs.vpndetection.io/database/formats.mdx): File formats available for VPNDetection datasets and how to work with them. - [Hosting IP](https://docs.vpndetection.io/database/hosting-ip/hosting-ip.mdx): IP ranges belonging to hosting and cloud providers. - [Hosting Provider](https://docs.vpndetection.io/database/hosting-ip/hosting-provider.mdx): The catalog of hosting providers referenced by the Hosting IP dataset. - [Mobile Proxy IP 14d](https://docs.vpndetection.io/database/mobproxy-ip/mobproxy-ip-14d.mdx): Mobile-carrier proxy IPs seen in the last 14 days, with provider attribution. - [Mobile Proxy IP 1d](https://docs.vpndetection.io/database/mobproxy-ip/mobproxy-ip-1d.mdx): Mobile-carrier proxy IPs seen in the last 24 hours, with provider attribution. - [Mobile Proxy IP 30d](https://docs.vpndetection.io/database/mobproxy-ip/mobproxy-ip-30d.mdx): Mobile-carrier proxy IPs seen in the last 30 days, with provider attribution. - [Mobile Proxy IP 60d](https://docs.vpndetection.io/database/mobproxy-ip/mobproxy-ip-60d.mdx): Mobile-carrier proxy IPs seen in the last 60 days, with provider attribution. - [Mobile Proxy IP 7d](https://docs.vpndetection.io/database/mobproxy-ip/mobproxy-ip-7d.mdx): Mobile-carrier proxy IPs seen in the last 7 days, with provider attribution. - [Mobile Proxy IP 90d](https://docs.vpndetection.io/database/mobproxy-ip/mobproxy-ip-90d.mdx): Mobile-carrier proxy IPs seen in the last 90 days, with provider attribution. - [Mobile Proxy Provider](https://docs.vpndetection.io/database/mobproxy-ip/mobproxy-provider.mdx): Reference catalog of tracked mobile proxy providers, with defunct status. - [Public Proxy IP 14d](https://docs.vpndetection.io/database/pubproxy-ip/pubproxy-ip-14d.mdx): Addresses public proxies listened on or sent their traffic out from in the last 14 days, each flagged entry, exit or both. - [Public Proxy IP 1d](https://docs.vpndetection.io/database/pubproxy-ip/pubproxy-ip-1d.mdx): Addresses public proxies listened on or sent their traffic out from in the last 24 hours, each flagged entry, exit or both. - [Public Proxy IP 30d](https://docs.vpndetection.io/database/pubproxy-ip/pubproxy-ip-30d.mdx): Addresses public proxies listened on or sent their traffic out from in the last 30 days, each flagged entry, exit or both. - [Public Proxy IP 60d](https://docs.vpndetection.io/database/pubproxy-ip/pubproxy-ip-60d.mdx): Addresses public proxies listened on or sent their traffic out from in the last 60 days, each flagged entry, exit or both. - [Public Proxy IP 7d](https://docs.vpndetection.io/database/pubproxy-ip/pubproxy-ip-7d.mdx): Addresses public proxies listened on or sent their traffic out from in the last 7 days, each flagged entry, exit or both. - [Public Proxy IP 90d](https://docs.vpndetection.io/database/pubproxy-ip/pubproxy-ip-90d.mdx): Addresses public proxies listened on or sent their traffic out from in the last 90 days, each flagged entry, exit or both. - [Relay IP](https://docs.vpndetection.io/database/relay-ip/relay-ip.mdx): IP ranges of privacy relays, such as iCloud Private Relay, and of enterprise web gateways, such as Zscaler. - [Relay Provider](https://docs.vpndetection.io/database/relay-ip/relay-provider.mdx): The catalog of relay providers referenced by the Relay IP dataset. - [Residential Proxy IP 14d](https://docs.vpndetection.io/database/resproxy-ip/resproxy-ip-14d.mdx): Residential proxy IPs seen in the last 14 days, with provider attribution. - [Residential Proxy IP 1d](https://docs.vpndetection.io/database/resproxy-ip/resproxy-ip-1d.mdx): Residential proxy IPs seen in the last 24 hours, with provider attribution. - [Residential Proxy IP 30d](https://docs.vpndetection.io/database/resproxy-ip/resproxy-ip-30d.mdx): Residential proxy IPs seen in the last 30 days, with provider attribution. - [Residential Proxy IP 60d](https://docs.vpndetection.io/database/resproxy-ip/resproxy-ip-60d.mdx): Residential proxy IPs seen in the last 60 days, with provider attribution. - [Residential Proxy IP 7d](https://docs.vpndetection.io/database/resproxy-ip/resproxy-ip-7d.mdx): Residential proxy IPs seen in the last 7 days, with provider attribution. - [Residential Proxy IP 90d](https://docs.vpndetection.io/database/resproxy-ip/resproxy-ip-90d.mdx): Residential proxy IPs seen in the last 90 days, with provider attribution. - [Residential Proxy Provider](https://docs.vpndetection.io/database/resproxy-ip/resproxy-provider.mdx): Reference catalog of tracked residential proxy providers, with defunct status. - [Tor IP](https://docs.vpndetection.io/database/tor-ip.mdx): Tor node IP ranges. - [VPN IP](https://docs.vpndetection.io/database/vpn-ip/vpn-ip.mdx): IP ranges observed as VPN infrastructure. - [VPN IP Extended](https://docs.vpndetection.io/database/vpn-ip/vpn-ip-extended.mdx): VPN IP ranges with provider attribution, confidence and detection method. - [VPN Provider](https://docs.vpndetection.io/database/vpn-ip/vpn-provider.mdx): VPN provider catalog, with features and defunct status. ## Integrations - [Overview](https://docs.vpndetection.io/integrations.mdx): Every official way to plug VPNDetection into what you already run. - [AI Assistants](https://docs.vpndetection.io/integrations/ai-assistants.mdx): Check IP addresses and look into our databases from the AI assistant you already use. - [ASP.NET Core](https://docs.vpndetection.io/integrations/aspnet-core.mdx): The official ASP.NET Core middleware for the VPNDetection API. - [AWS S3](https://docs.vpndetection.io/integrations/aws-s3.mdx): Each new build written to your Amazon S3 bucket by an IAM role you let us assume, or to any S3-compatible storage. - [Rust Axum](https://docs.vpndetection.io/integrations/axum.mdx): The official axum middleware for the VPNDetection API. - [Azure Blob Storage](https://docs.vpndetection.io/integrations/azure-blob-storage.mdx): Each new build written to your container with a SAS token. - [BigQuery](https://docs.vpndetection.io/integrations/bigquery.mdx): Look up addresses in our databases from inside Google BigQuery, with nothing to download. - [Browser Extension](https://docs.vpndetection.io/integrations/browser-extension.mdx): Look up the IP addresses on any page in Chrome: whether each is a VPN, proxy, Tor exit or hosting, where it is and which network announces it. - [ChatGPT](https://docs.vpndetection.io/integrations/chatgpt.mdx): Add VPNDetection to ChatGPT from its plugin directory: check IP addresses and look into our databases, signed in with your account. - [Claude](https://docs.vpndetection.io/integrations/claude.mdx): Use VPNDetection in claude.ai, the Claude apps, Cowork and Claude Code. - [CLI](https://docs.vpndetection.io/integrations/cli.mdx): The official command line interface for the VPNDetection API. - [Codex](https://docs.vpndetection.io/integrations/codex.mdx): Use VPNDetection in Codex: the CLI, the IDE extension and the ChatGPT desktop app. - [Erlang Cowboy](https://docs.vpndetection.io/integrations/cowboy.mdx): The official Cowboy middleware for the VPNDetection API. - [API](https://docs.vpndetection.io/integrations/database-api.mdx): Download a database whenever you choose, with an API key. - [Database Delivery](https://docs.vpndetection.io/integrations/database-delivery.mdx): Every way to receive our databases: download them through the API, or have each new build announced to a webhook or written to your own storage. - [Python Django](https://docs.vpndetection.io/integrations/django.mdx): The official Django middleware for the VPNDetection API. - [.NET](https://docs.vpndetection.io/integrations/dotnet.mdx): The official .NET client library for the VPNDetection API. - [Erlang](https://docs.vpndetection.io/integrations/erlang.mdx): The official Erlang client library for the VPNDetection API. - [Node.js Express](https://docs.vpndetection.io/integrations/express.mdx): The official Express middleware for the VPNDetection API. - [Python FastAPI](https://docs.vpndetection.io/integrations/fastapi.mdx): The official FastAPI middleware for the VPNDetection API. - [Node.js Fastify](https://docs.vpndetection.io/integrations/fastify.mdx): The official Fastify plugin for the VPNDetection API. - [Python Flask](https://docs.vpndetection.io/integrations/flask.mdx): The official Flask extension for the VPNDetection API. - [Framework SDKs](https://docs.vpndetection.io/integrations/frameworks.mdx): Middleware that classifies the visitor behind every request your web app serves. - [Gemini CLI](https://docs.vpndetection.io/integrations/gemini-cli.mdx): Use VPNDetection in Gemini CLI: our MCP server as an extension, with your API key kept in the system keychain. - [Go Gin](https://docs.vpndetection.io/integrations/gin.mdx): The official Gin middleware for the VPNDetection API. - [Go](https://docs.vpndetection.io/integrations/golang.mdx): The official Go client library for the VPNDetection API. - [Google Cloud Storage](https://docs.vpndetection.io/integrations/google-cloud-storage.mdx): Each new build written to your bucket by a service account you grant. - [Java](https://docs.vpndetection.io/integrations/java.mdx): The official Java client library for the VPNDetection API. - [Programming SDKs](https://docs.vpndetection.io/integrations/languages.mdx): The official VPNDetection client libraries, one for each language. - [PHP Laravel](https://docs.vpndetection.io/integrations/laravel.mdx): The official Laravel middleware for the VPNDetection API. - [MCP Server](https://docs.vpndetection.io/integrations/mcp.mdx): The official Model Context Protocol server for the VPNDetection API. - [Minecraft](https://docs.vpndetection.io/integrations/minecraft.mdx): The official VPNDetection plugin for Minecraft servers. - [Go net/http](https://docs.vpndetection.io/integrations/net-http.mdx): The official net/http middleware for the VPNDetection API. - [Node.js Next.js](https://docs.vpndetection.io/integrations/nextjs.mdx): The official Next.js proxy middleware for the VPNDetection API. - [Node.js](https://docs.vpndetection.io/integrations/nodejs.mdx): The official Node.js client library for the VPNDetection API. - [Perl](https://docs.vpndetection.io/integrations/perl.mdx): The official Perl client library for the VPNDetection API. - [PHP](https://docs.vpndetection.io/integrations/php.mdx): The official PHP client library for the VPNDetection API. - [Platforms](https://docs.vpndetection.io/integrations/platforms.mdx): Our databases inside the data platforms you already query, with nothing to download. - [Plugins](https://docs.vpndetection.io/integrations/plugins.mdx): VPNDetection inside software you already run, checking each visitor as they arrive. - [Python](https://docs.vpndetection.io/integrations/python.mdx): The official Python client library for the VPNDetection API. - [Ruby on Rails](https://docs.vpndetection.io/integrations/rails.mdx): The official Rails middleware for the VPNDetection API. - [Ruby](https://docs.vpndetection.io/integrations/ruby.mdx): The official Ruby client library for the VPNDetection API. - [Rust](https://docs.vpndetection.io/integrations/rust.mdx): The official Rust client library for the VPNDetection API. - [SFTP](https://docs.vpndetection.io/integrations/sftp.mdx): Each new build uploaded to your server over SFTP, or FTPS. - [Java Spring Boot](https://docs.vpndetection.io/integrations/spring-boot.mdx): The official Spring Boot starter for the VPNDetection API. - [Swift](https://docs.vpndetection.io/integrations/swift.mdx): The official Swift client library for the VPNDetection API. - [PHP Symfony](https://docs.vpndetection.io/integrations/symfony.mdx): The official Symfony bundle for the VPNDetection API. - [Tools](https://docs.vpndetection.io/integrations/tools.mdx): Use VPNDetection from a terminal, a browser or an AI agent, with no code of your own. - [Web](https://docs.vpndetection.io/integrations/web.mdx): The official browser client library for the VPNDetection API, for a page's own scripts and for browser extensions. - [Webhooks](https://docs.vpndetection.io/integrations/webhooks.mdx): A signed call to your endpoint each time a database you chose is updated. - [WordPress](https://docs.vpndetection.io/integrations/wordpress.mdx): The official VPNDetection plugin for WordPress. - [Zig](https://docs.vpndetection.io/integrations/zig.mdx): The official Zig client library for the VPNDetection API.