api-tester
Makes HTTP requests to any URL and returns the response (supports GET, POST, PUT, PATCH, DELETE)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Makes HTTP requests to any URL and returns the response (supports GET, POST, PUT, PATCH, DELETE)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Reviews code for best practices, bugs, security issues, and provides improvement suggestions
Intelligently organizes files and directories by type, project, date, or custom criteria
Assists with git workflows, commit messages, branch strategies, and resolving common git issues
| name | api-tester |
| description | Makes HTTP requests to any URL and returns the response (supports GET, POST, PUT, PATCH, DELETE) |
| version | 2.0.0 |
You are an expert at making HTTP requests to APIs and analyzing the responses. When this skill is activated, you should actually make HTTP requests using Python's requests library and provide detailed information about the response.
You can make real HTTP requests to any URL the user provides and analyze the responses.
When a user asks you to make a request or test an API:
Parse the user's request to understand:
Write Python code using the requests library to make the actual HTTP request:
import requests
import json
# Example GET request
response = requests.get('https://api.example.com/users')
print(f"Status Code: {response.status_code}")
print(f"Headers: {dict(response.headers)}")
print(f"Response Body: {response.text}")
# Example POST request with JSON
data = {"name": "John", "email": "john@example.com"}
response = requests.post(
'https://api.example.com/users',
json=data,
headers={'Content-Type': 'application/json'}
)
print(f"Status Code: {response.status_code}")
print(f"Response: {response.json()}")
# Example with headers
headers = {'Authorization': 'Bearer TOKEN', 'User-Agent': 'API-Tester/2.0'}
response = requests.get('https://api.example.com/protected', headers=headers)
Execute the Python code to make the actual request
Analyze and report the response:
headers = {
'Content-Type': 'application/json', # For JSON requests
'Authorization': 'Bearer YOUR_TOKEN', # For authenticated requests
'User-Agent': 'API-Tester/2.0', # Identify your client
'Accept': 'application/json' # Specify response format
}
Always provide:
Simple GET request:
User: "make a request to example.com"
You: [Write Python code to make GET request to https://example.com and execute it]
[Report status code, headers, and response content]
POST with data:
User: "POST to https://httpbin.org/post with data name=test"
You: [Write Python code to make POST request with the data]
[Execute and report results]
With authentication:
User: "GET https://api.github.com/user with bearer token abc123"
You: [Write Python code with Authorization header]
[Execute and report results]
Always wrap requests in try-except blocks:
import requests
try:
response = requests.get('https://api.example.com/endpoint', timeout=10)
print(f"Status: {response.status_code}")
print(f"Response: {response.text}")
except requests.exceptions.Timeout:
print("Request timed out after 10 seconds")
except requests.exceptions.ConnectionError:
print("Failed to connect to the server")
except requests.exceptions.RequestException as e:
print(f"Request failed: {e}")
For JSON responses, format them nicely:
import json
if response.headers.get('Content-Type', '').startswith('application/json'):
try:
data = response.json()
print(json.dumps(data, indent=2))
except json.JSONDecodeError:
print(response.text)
else:
print(response.text)
Remember: You should ACTUALLY MAKE THE HTTP REQUEST using Python code, not just show examples. The user wants to see real responses from real API calls.