Skip to main content

API Version Detection API

developer
GET/v1/domain/api-version

Analyzes how an API implements versioning. Detects URL-path versioning, generic header versioning, and date-based versioning (Stripe, GitHub, Anthropic, Shopify convention). Also surfaces RFC 9745 Deprecation / Sunset / successor-version signals when present.

What It Does

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 — `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 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 instead of v1.

Why It's Useful

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

Use Cases

Developer

API Integration

Understand versioning strategy before integrating with an API.

Choose the right API version for integration.

Security Analyst

Security Assessment

Discover older API versions that may have known vulnerabilities.

Identify deprecated API versions for security testing.

API Architect

API Design Research

Study how other APIs implement versioning for best practices.

Learn from industry API versioning patterns.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredDomain or full URL — accepts `example.com` or `https://example.com/path`.Example: https://api.example.com

Response Fields

Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.

FieldTypeDescription
domainstringThe queried domain (bare hostname).
urlstringFull URL that was fetched, echoing the protocol used in the request.
detectedbooleanWhether API versioning was detected
versioningMethodstringDetected strategy: "url-path", "header", "date-based" (Stripe/GitHub/Anthropic convention), or "none"
currentVersionstringDefault/current API version. For URL-path versioning, set to the HIGHEST detected version (e.g., "v3" when v1/v2/v3 all respond) so integration developers default to the latest API.
supportedVersionsarrayAvailable URL-path API versions discovered (deduplicated)
vendorstringDetected vendor when a vendor-specific version header fired: "stripe", "github", "anthropic", "shopify", "databricks", "azure", or null
headersobjectVersion-related headers: apiVersion, acceptVersionSupported
deprecationobjectRFC 9745 deprecation signal: { deprecated: boolean, sunsetDate: string | null, successorUrl: string | null }
recommendationsarrayAPI versioning improvement suggestions, including deprecation warnings when sunset dates are surfaced

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the developer plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/domain/api-version?domain=https%3A%2F%2Fapi.example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/domain/api-version?domain=https%3A%2F%2Fapi.example.com",
  {
    "method": "GET",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
);

if (!response.ok) {
  throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    'GET',
    "https://api.edgedns.dev/v1/domain/api-version?domain=https%3A%2F%2Fapi.example.com",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full API Version Detection guide

Learn the concepts, choose a practical workflow, and interpret the observations from API Version Detection before acting on them. Run supported checks via MCP or through REST.

Read the guide →

    Related Endpoints

    External References

    Learn more about the standards and protocols behind this endpoint.

    Try This Endpoint

    Test the API Version Detection endpoint live in the playground.

    API Version Detection API Reference | EdgeDNS