Skip to content

OsamaALHajj/API-Genius

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ API Genius

AI-Powered API Testing Tool

Automatically generate test data, code examples, documentation, and security tests from any OpenAPI/Swagger spec — works with or without AI.

License: MIT Node.js TypeScript React PRs Welcome

FeaturesQuick StartAI ProvidersUsage GuideTech StackContributing

📊 Project Statistics


📥 Total Downloads

👁️ Watchers

⭐ Stars

🍴 Forks

🐛 Open Issues

🕒 Last Commit

💾 Repo Size

🔤 Top Language

👥 Contributors

🎯 Why API Genius?

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

🆓 Works Without Any API Key!

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

✨ Features

📡 Smart Endpoint Discovery

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.

🧪 AI-Generated Test Data

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

💻 Code Examples in 12 Languages

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)

📝 Documentation Generation

Produce clean, comprehensive API documentation automatically — with parameter tables, response schemas, example payloads, and authentication details. Export as Markdown or copy to clipboard.

🔒 Security Testing

AI-powered security analysis that identifies potential vulnerabilities including injection attacks, broken authentication, and data exposure risks.

⚡ Response Analysis

Real-time response inspection with status codes, headers, body parsing, response time tracking, and size calculation.

🧪 Test Runner

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.


🚀 Quick Start

Prerequisites

Installation

1. Clone the repository

git clone https://github.com/your-username/api-genius.git
cd api-genius

About

API Genius is an intelligent platform for API testing that relies on advanced artificial intelligence technologies. The tool automatically analyzes OpenAPI/Swagger specifications and generates smart test data, code examples in 14 languages, comprehensive documentation, and advanced security tests — all within a smooth and efficient environment.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages