Automatically generate test data, code examples, documentation, and security tests from any OpenAPI/Swagger spec — works with or without AI.
Features • Quick Start • AI Providers • Usage Guide • Tech Stack • Contributing
|
📥 Total Downloads |
👁️ Watchers |
⭐ Stars |
|
🍴 Forks |
🐛 Open Issues |
🕒 Last Commit |
|
💾 Repo Size |
🔤 Top Language |
👥 Contributors |
Testing APIs shouldn't be tedious. Traditional tools require you to manually write test data, create code snippets, and build documentation from scratch.
API Genius changes that.
Simply paste any OpenAPI/Swagger spec URL and within seconds you'll have:
- 🧪 Intelligent test data — happy paths, edge cases, and security scenarios
- 💻 Code examples in 12+ programming languages
- 📝 Complete API documentation — auto-generated Markdown
- 🔒 Security vulnerability detection — SQL injection, XSS, auth bypass
- ⚡ Performance insights — response time tracking and analysis
API Genius includes a smart local generator that produces test data, code examples, documentation, and tests without any AI service. Add a free Gemini or Groq key to unlock AI-powered generation.
| Mode | Cost | Quality | Setup |
|---|---|---|---|
| ⚪ Local (No AI) | Free forever | Good | Zero config |
| 🟢 Google Gemini | Free tier | Excellent | 1 minute |
| 🟢 Groq | Free tier | Excellent | 1 minute |
| 🟡 OpenAI | Paid | Excellent | Requires billing |
Automatically parses all endpoints from any OpenAPI 2.0 / 3.0 or Swagger spec. Just paste a URL — API Genius discovers endpoints, parameters, request bodies, response schemas, and authentication requirements.
Generates contextually relevant test data for every endpoint:
| Category | Description |
|---|---|
| Happy Path | Valid requests that should succeed |
| Edge Cases | Boundary values, empty fields, special characters |
| Error Cases | Invalid data to test error handling |
| Security Tests | SQL injection, XSS, authentication bypass attempts |
| Boundary Values | Min/max integers, long strings, negative numbers |
Instantly generate production-ready code snippets:
| JavaScript (Fetch) | Python (Requests) | Java (HttpClient) | C# (HttpClient) |
| JavaScript (Axios) | Go (net/http) | Ruby (Net::HTTP) | PHP (Guzzle) |
| cURL | Swift (URLSession) | Kotlin (OkHttp) | Dart (http) |
Produce clean, comprehensive API documentation automatically — with parameter tables, response schemas, example payloads, and authentication details. Export as Markdown or copy to clipboard.
AI-powered security analysis that identifies potential vulnerabilities including injection attacks, broken authentication, and data exposure risks.
Real-time response inspection with status codes, headers, body parsing, response time tracking, and size calculation.
Run automated tests directly from the browser. Quick tests check endpoint availability, response time, and error handling. Generate full Jest, Mocha, and pytest test suites.
- Node.js 18+ — Download here
- AI Key (Optional) — Works without one! See AI Providers
git clone https://github.com/your-username/api-genius.git
cd api-genius