OpenAPI Detection API
developer/v1/domain/openapiDiscovers OpenAPI (Swagger) specifications AND GraphQL introspection endpoints on a domain. Parses both JSON and YAML specs, extracts endpoint paths with their HTTP methods, and probes common GraphQL paths to surface schema metadata.
What It Does
Searches 22 common OpenAPI/Swagger locations, including /.well-known/openapi.json. Extracts paths and methods from JSON specifications and a limited subset of conventional YAML layouts; this is not a full YAML parser. Probes five common GraphQL paths with an introspection query. A blocked or failed probe does not prove that introspection is disabled or that no API exists. Returned paths are capped at 20; inspect pathsTruncated.
Why It's Useful
Locate publicly discoverable API descriptions for integration research and authorized exposure reviews. Discovery is bounded to common paths and does not inventory every API on a domain.
Use Cases
API Security Assessment
Discover API documentation to understand attack surface.
Review the discovered specification paths as one input to authorized API testing.
Integration Research
Find API documentation for third-party integration.
Quickly locate API specs without searching documentation sites.
Competitive Analysis
Analyze competitor API capabilities through their OpenAPI specs.
Understand competitor API features and structure.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | Required | The domain to search for OpenAPI specsExample: 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.
| Field | Type | Description |
|---|---|---|
domain | string | The queried domain |
detected | boolean | Whether an OpenAPI/Swagger spec was found |
specUrl | string|null | Discovered specification URL, or null when none is found |
version | string|null | Detected specification version, or null when unavailable |
info | object | API metadata: title, description, version (populated for both JSON and YAML specs) |
endpointCount | number | Number of endpoint paths defined |
paths | array | Discovered endpoint paths, each with the HTTP methods supported: { path: string, methods: string[] } — replaces the previous string[] shape so attack-surface mapping has methods inline |
pathsTruncated | boolean | Whether the paths array was truncated (max 20) |
servers | array | API server URLs |
graphql | object | GraphQL probe result: { detected, endpoint, queryType, mutationTypeCount, typeCount, introspectionDisabled }. `introspectionDisabled` is a probe interpretation; a blocked response alone does not establish the full endpoint configuration. |
recommendations | array | API documentation improvement suggestions |
Code Examples
Replace YOUR_API_KEY with your API key. This endpoint requires the developer plan or higher; see plans and usage limits.
curl --request GET 'https://api.edgedns.dev/v1/domain/openapi?domain=api.example.com' \
--header "Authorization: Bearer YOUR_API_KEY"const response = await fetch(
"https://api.edgedns.dev/v1/domain/openapi?domain=api.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);import requests
response = requests.request(
'GET',
"https://api.edgedns.dev/v1/domain/openapi?domain=api.example.com",
headers={'Authorization': 'Bearer YOUR_API_KEY'},
timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)Read the full OpenAPI Detection guide
Learn the concepts, choose a practical workflow, and interpret the observations from OpenAPI 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 OpenAPI Detection endpoint live in the playground.