mitmproxy2swagger is a Python tool that converts captured HTTP traffic into OpenAPI 3.0 specifications. It can analyze mitmproxy flow files or HAR exports from browser developer tools. The first processing pass discovers candidate endpoints and path structures from observed requests. Users can review those paths before a second pass generates parameters, request bodies, responses, and endpoint descriptions. Existing schemas can be extended across multiple captures instead of being recreated from scratch. Optional flags can include examples and headers, although captured sensitive data must be handled carefully. The tool is useful for documenting undocumented APIs and authorized interoperability or testing workflows where observed traffic needs to become structured API documentation.

Features

  • mitmproxy traffic conversion
  • HAR file processing
  • OpenAPI 3.0 specification generation
  • Multi-pass endpoint refinement
  • Existing schema merging
  • Optional request and response examples

Project Samples

Project Activity

See All Activity >

Categories

Proxy Servers

License

MIT License

Follow mitmproxy2swagger

mitmproxy2swagger Web Site

Other Useful Business Software
Ship Agents Faster Icon
Ship Agents Faster

Transform your applications and workflows into powerful agentic systems at global scale.

Gemini Enterprise Agent Platform lets you rapidly build, scale, govern and optimize production-ready agents grounded in your organization's data. The platform enables developers to build custom or pre-built agents for virtually any use case. New customers get $300 in free credits.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of mitmproxy2swagger!

Additional Project Details

Programming Language

Python

Related Categories

Python Proxy Servers

Registered

36 minutes ago