Development & Code Intelligence Tool

The API Surface Extractor Tool

Scan a Python or JS/TS repository and extract its API route surface — every endpoint the service exposes — so an agent can document, test, or reason about the API without reading every handler, on infrastructure you control.

Explore VDF AI Agents
RoutesEndpoints extracted automatically
Py + JS/TSBoth major ecosystems
SurfaceThe full exposed API
100%On-prem analysis
The API Problem

Nobody knows the full API a service exposes

As a service grows, its real API surface — every route, across every file — drifts away from any spec. Without an accurate, current list of endpoints, documentation, testing, and security all suffer.

01

The spec lies

The documented API and the actual routes diverge over time.

02

Routes are scattered

Endpoints are defined across many files and patterns.

03

Untested surface

Endpoints nobody listed are endpoints nobody tests.

04

Manual extraction rots

A hand-maintained endpoint list is stale immediately.

How the Tool Works

The real route surface, extracted

Extraction

Find every route

Across the whole repo.

The tool scans a Python or JS/TS repository and extracts the API route surface — the endpoints the service actually exposes — recovering the real API as defined in code.

  • Python and JS/TS support
  • Whole-repository scan
  • Route surface inventory
  • Per-ref analysis
API
Routes

Extracted from code

EndpointsPythonJS/TSSurface

Downstream

Feeds docs, tests, and security

A list everything depends on.

An accurate endpoint inventory is the input for API documentation, test coverage, and security review — so an agent can generate docs or flag untested routes from a trustworthy surface.

Input
For Docs & Tests

Accurate surface

DocsTestsSecurityCoverage

Governance

On-premise analysis

Source stays internal.

Extraction runs against a snapshot inside your perimeter with audit logging, so API discovery never exposes code.

100%
On-Prem

IP-safe, logged

On-premIP-safeAudit logPrivate
Inputs

Parameters

The api_surface_extractor tool accepts these inputs when an agent calls it. Required inputs are flagged.

Name Type Required Description
owner string Optional GitHub repository owner.
repo string Optional GitHub repository name.
ref string Optional Branch, tag, or commit SHA. Defaults to the default branch.
user_id integer Optional User ID for resolving a stored GitHub token.
Where it pays back

Where surface extraction pays back

API documentation

Feed the real route list into generated API docs.

Coverage audits

Find endpoints with no tests.

Security review

Make sure every exposed route is accounted for.

Spec reconciliation

Compare the real surface against the documented spec.

Onboarding

Show a new engineer what the service exposes.

Agent workflows

Ground a documentation or QA agent in the real API.

How VDF AI connects it

Assigned to agents, orchestrated as networks

On VDF AI, an industry’s use cases map to agents, and you assign tools like this one to those agents. Compose multiple agents into a governed, on-premise network.

ROI Snapshot

What changes after you assign it

Complete
Every route accounted for
Current
Surface matches the code
Ready
Input for docs and tests
100%
Analyzed on-prem
FAQ

Questions about the API Surface Extractor tool

What does the API surface extractor do?

It scans a Python or JS/TS repository and extracts the API route surface — the endpoints the service exposes — recovering the real, current API as defined in code.

Which languages does it support?

Python and JavaScript/TypeScript, the two most common ecosystems for web services and APIs.

What do I do with the output?

The endpoint inventory feeds API documentation generation, test-coverage audits, and security review — anywhere an accurate route list matters.

Is our code exposed?

No. Extraction runs on-premise against a snapshot with audit logging.

How does it pair with other tools?

It feeds the API docs generator directly and is often assigned with the repository map and security scan.

Recover your real API surface

See the API surface extractor feed documentation and testing for an agent — on-premise.