API 测试工具
使用高级功能测试 REST API
Collections
History
🔗Query Parameters
No query parameters yet
Add parameters to append to your URL
📊Response
No response yet - Click Send to make your first request
Powerful API Testing Features
Everything you need for comprehensive API testing, from basic requests to advanced automation
Real API Testing
Test actual APIs with full HTTP method support including GET, POST, PUT, DELETE, PATCH, and more.
Multi-Auth Support
Supports Bearer tokens, Basic authentication, API keys, and custom authentication methods.
Smart History
Save and manage your test requests with a complete history of all API calls with search.
Code Generation
Generate code snippets in multiple programming languages for your API requests.
Auto Testing
Create assertions and test cases to validate your API responses automatically.
Environment Vars
Manage environment variables and switch between different API environments easily.
Common Use Cases
Discover how our API Tester can help you with different testing scenarios
REST API Testing
Test RESTful APIs with proper HTTP methods and headers
GET /api/usersAuthentication Testing
Test OAuth, JWT tokens, and API key authentication
Bearer Token AuthResponse Validation
Validate JSON responses and status codes
Assert status === 200Environment Variables
Use variables for different environments
{{BASE_URL}}/apiBatch Testing
Run multiple tests in sequence
Collection RunnerCode Export
Export requests as cURL, JavaScript, Python
curl -X POST...🚀欢迎使用 API 测试工具
此工具可帮助您轻松测试和调试 API 端点。让我们开始吧!
- 测试任何 HTTP 方法(GET、POST、PUT、DELETE 等)
- 添加自定义标头和身份验证
- 支持环境变量
- 请求历史记录和已保存的请求
- JSON 语法高亮显示
- 支持多种语言的代码生成
📝基本请求设置
首先输入 URL 并选择 HTTP 方法。
URL: https://jsonplaceholder.typicode.com/posts/1
描述: This will fetch a sample post from JSONPlaceholder API
🔑身份验证与标头
为您的请求添加身份验证和自定义标头。
- Bearer 令牌:用于 JWT 和 OAuth 令牌
- 基本身份验证:用于用户名/密码验证
- API 密钥:用于 API 密钥验证
- 自定义标头:添加您需要的任何自定义标头
📦请求正文与参数
为 POST/PUT 请求添加查询参数和请求正文。
{
"title": "My Post",
"body": "This is the content",
"userId": 1
}📊响应分析
使用增强功能查看和分析您的 API 响应。
- 状态码:颜色编码,易于识别
- 响应时间:跟踪 API 性能
- JSON 高亮显示:JSON 响应的语法高亮
- 响应标头:查看所有响应标头
- 复制/下载:保存响应以供将来使用
⚡️高级功能
探索环境变量和代码生成等高级功能。
- 环境变量:管理不同的环境(开发、测试、生产)
- 请求历史记录:查看和重放以前的请求
- 已保存的请求:保存常用请求
- 代码生成:生成 cURL、Axios、Fetch 代码
💡Pro Tips for Better API Testing
Use Environment Variables
Set up variables like {{API_URL}} for different environments
Save Frequent Requests
Use collections to organize and reuse your most common API calls
Add Response Tests
Create assertions to automatically validate status codes and response data
Export to Code
Generate ready-to-use code snippets for your applications