Skip to content

devgotomarket/API-Tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

API Tester for ChatGPT

A simple API testing tool that integrates with ChatGPT using OpenAI's Apps SDK. Test APIs directly in your ChatGPT conversations.

Project Structure

API_TESTER/
├── static/
│   ├── api-tester.css      # Widget styles
│   └── api-tester.js       # Widget JavaScript  
├── server.py               # MCP server
├── pyproject.toml          # Dependencies
└── README.md

What it does

Ask ChatGPT to test any API and get instant results with a beautiful interface showing:

  • Response status and timing
  • Headers and JSON responses
  • Error handling for failed requests

Quick Start

1. Run Locally

# Clone and install
git clone https://github.com/Sridevi17j/API_TESTER.git
cd API_TESTER
pip install -e .

# Start server
python server.py

Server runs on http://localhost:8000

2. Get HTTPS URL (Required for ChatGPT)

# Install ngrok: https://ngrok.com/
ngrok http 8000

Use the HTTPS URL from ngrok (like https://abc123.ngrok.app)

3. Connect to ChatGPT

  1. Enable Developer Mode:

    • ChatGPT Settings → Apps & Connectors → Advanced Settings
    • Turn on "Developer Mode"
  2. Create Connector:

    • Apps & Connectors → "Create new connector"
    • Enter your URL: https://your-ngrok-url.ngrok.app/mcp
    • Save
  3. Test It: Ask ChatGPT: "Test the GitHub API for user openai"

Production Deployment

Deploy to any platform that supports Python. Popular options:

Render

  1. Go to Render Dashboard
  2. Click "New" → "Web Service"
  3. Connect your GitHub repo: Sridevi17j/API_TESTER
  4. Configure:
    Environment: Python 3
    Build Command: pip install -e .
    Start Command: python server.py
    

Your service will be at: https://your-service-name.onrender.com

Connect to ChatGPT

Use your production URL: https://your-service-name.onrender.com/mcp

  1. Enable Developer Mode in ChatGPT Settings
  2. Create Connector with your production URL
  3. Start testing APIs in ChatGPT

Example Usage

Ask ChatGPT:

ChatGPT will call your API Tester and display results in an interactive widget.

About

API Testing tool for ChatGPT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published