Skip to main content
Guides/Tech Stack

API Version Detection: Understand and Use the Results

Detect API versioning strategy

EdgeDNS Team·Updated ·5 min read

API versioning: how APIs change without breaking everyone

API versioning is the practice of explicitly labeling each release of a public API with a version identifier — `v1`, `v2`, `2024-01-15`, or something similar — so that clients can pin themselves to a specific version and not break when the API evolves. Without versioning, every change to the API is a potential breaking change for every client using it; with versioning, the API can introduce new features, deprecate old ones, and even ship completely new contracts in parallel with the old ones, giving clients time to migrate. Versioning is one of those things that is invisible until it isn't, and the choice of versioning strategy says a lot about how seriously the API team takes their integrators.

You should care because the API versioning strategy is one of the strongest signals of API maturity. A v1-only API that has been live for years and never bumped to v2 is either extraordinarily well-designed or has been frozen out of fear of breaking customers. An API that bumps version numbers every six months is a fast-moving but volatile target. An API with date-based versioning (`2024-01-15`) like Stripe's is doing serious deprecation work and deserves trust. An API with no version number anywhere is a red flag for any integrator — every change is a breaking change waiting to happen.

The four major versioning strategies every check distinguishes:

  • URL path versioning. `/v1/users`, `/v2/users`. The most common, easiest to read, hardest to deprecate gracefully.

  • Header versioning. A custom header like `Accept: application/vnd.example.v2+json` or `X-API-Version: 2024-01-15`. More flexible but harder for clients to discover.

  • Date-based versioning. Each release of the API is identified by a date. Pioneered by Stripe and now widely copied. Very deprecation-friendly.

  • No versioning. The API is whatever it is right now, and breaking changes can happen at any time. Common in internal APIs and bad public ones.

Three questions an API version check answers:

  • What versioning strategy does this API actually use?

  • For an integration project, which version should I pin against, and how long is it likely to be supported?

  • For a vendor evaluation, does this team take backward compatibility seriously enough to trust them with a long-term integration?

The cost of integrating with a poorly-versioned API is breaking on every release, scrambling to update client code, and never being able to confidently ship to production. The fix is to choose API providers whose versioning strategy matches your tolerance for change — and to know the strategy before you start the integration, not after. Stripe's versioning documentation is the canonical practical example of date-based versioning done well.

What EdgeDNS specifically returns. Beyond URL-path probing (`/v1`, `/v2`, etc.), the check sweeps a known set of vendor-specific version headers — `Stripe-Version`, `X-GitHub-Api-Version`, `Anthropic-Version`, `X-Shopify-Api-Version`, `X-Databricks-Api-Version`, `X-Ms-Version` — and classifies date-format values as `date-based` rather than the generic `header`. The same response is inspected for RFC 9745 deprecation signals: `Deprecation: true`, `Sunset: <date>`, and `Link: <…>; rel="successor-version"`. When URL-path versioning is detected with multiple versions, `currentVersion` is set to the HIGHEST detected (e.g., `v3` when v1/v2/v3 all respond) so auto-generated examples default to the latest API instead of v1.

The API Version Detection endpoint, in plain language

Detect API (Application Programming Interface) versioning strategy

Understanding API (Application Programming Interface) versioning helps with integration planning, security assessment (older versions may have vulnerabilities), and competitive analysis of API maturity.

What is actually happening when you call it

Probes common URL-path versioning patterns (/v1/, /v2/, /API/v1/, etc.) and validates by content-type. Then performs a vendor header sweep on the root URL (web address) — `Stripe-Version`, `X-GitHub-Api-Version`, `Anthropic-Version`, `X-Shopify-Api-Version`, `X-Databricks-Api-Version`, `X-Ms-Version` — and classifies date-format values (YYYY-MM-DD) as `date-based` rather than the generic `header`. Inspects the same response for RFC (Request for Comments) 9745 deprecation signals: `Deprecation: true`, `Sunset: <date>`, `Link: <…>; rel="successor-version"`. Picks the HIGHEST URL-path version as `currentVersion` so integration developers default to the latest API (Application Programming Interface) instead of v1.

Why this specific tool matters

Choose a task: API Integration. Understand versioning strategy before integrating with an API (Application Programming Interface).

Run the API Version Detection request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the API Version Detection reference to check the field definitions and supported options.

Info:

Available on the developer plan. The technical details: `GET /v1/domain/api-version`.

When would I actually use this?

API Integration

Understand versioning strategy before integrating with an API (Application Programming Interface).

Use the finding: Choose the right API (Application Programming Interface) version for integration.

Security Assessment

Discover older API (Application Programming Interface) versions that may have known vulnerabilities.

Use the finding: Identify deprecated API (Application Programming Interface) versions for security testing.

API Design Research

Study how other APIs implement versioning for best practices.

Use the finding: Learn from industry API (Application Programming Interface) versioning patterns.

The easiest way: just ask your AI assistant

Connect the MCP server. Just ask in plain English:

Use domain_api_version with domain=https://api.example.com. Show the returned findings, identify unavailable evidence, and explain a useful next check.

Confirm the tool and inputs in the client before accepting its summary. For API Version Detection, use the response fields below to separate observations from recommendations.

Tip:

The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.

The technical way: call it from code

This API Version Detection request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the developer plan or higher; adapt the target to your task.

bash
curl --request GET 'https://api.edgedns.dev/v1/domain/api-version?domain=https%3A%2F%2Fapi.example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"

Prepare inputs for API Version Detection

Start with the inputs below. Keep the same hostname, path, and options when comparing API Version Detection observations. The API reference contains the complete parameter contract, optional settings, and access requirements.

FieldTypeRequired?What it meansExample

domain

string

Yes

Domain or full URL (web address) — accepts `example.com` or `HTTPS://example.com/path`.

https://api.example.com

Interpret API Version Detection findings

Read these fields alongside the full response from your API Version Detection check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.

FieldTypeWhat you'll see in it

domain

string

The queried domain (bare hostname).

url

string

Full URL (web address) that was fetched, echoing the protocol used in the request.

detected

boolean

Whether API (Application Programming Interface) versioning was detected

Words you might be wondering about

API (Application Programming Interface) — A way for one program to ask another program for something — like a waiter taking your order to the kitchen.

URL (web address) — The full address of a page, like https://example.com/about.

RFC (Request for Comments) — The official internet standards documents. When someone says 'RFC 8484' they mean a specific numbered standards document — in that case, the one defining DNS over HTTPS.

Need Programmatic Access?

Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.

API Version Detection: Results Guide | EdgeDNS