API 测试工具(HTTP 请求) — Make HTTP requests from your browser. Pick a method, paste a URL, add headers and a body, and see the full response: status, headers, body, and how long it took. Useful for testing an API before you wire it into a real application, debugging a failing endpoint, or exploring a public API like GitHub, OpenWeather, or a custom backend.
Your request goes from your browser to the target server directly. Nothing is sent to a third party.
Was API 测试工具(HTTP 请求) useful?
API 测试工具(HTTP 请求)是什么?
Make HTTP requests from your browser. Pick a method, paste a URL, add headers and a body, and see the full response: status, headers, body, and how long it took. Useful for testing an API before you wire it into a real application, debugging a failing endpoint, or exploring a public API like GitHub, OpenWeather, or a custom backend.
Import a cURL command from the API docs and the form fills itself. The request goes from your browser to the target server directly — there is no proxy in between, so the response is the same as what a real client would see.
使用方法
-
Pick a method and enter a URL
GET is the default. The URL must start with http:// or https://.
-
Add headers (optional)
Most APIs need an Authorization header. Use the "Add header" button for each one.
-
Add a body (for POST / PUT / PATCH)
JSON, form-encoded, or plain text. The body kind auto-sets the Content-Type header.
-
Click Send
The request is made from your browser. The response shows status, headers, body, and timing.
示例
Test a public API
Make a GET to a public API and see the JSON response. No auth, no rate limits, no API key needed for the example APIs.
GET https://api.github.com/repos/sveltejs/kit
结果: A 200 response with the repository metadata, JSON-formatted, showing the full body in a few seconds.
POST a JSON body
Most modern APIs use JSON for both the request and the response. The form auto-sets Content-Type: application/json when you pick the JSON body kind.
POST https://httpbin.org/post
Authorization: Bearer x
Content-Type: application/json
{"name":"alice","age":30} 结果: A 200 response with the body echoed back, showing what the server received.
Import a cURL command
Most API docs give cURL examples. Paste the command into the import field and the form fills in method, URL, headers, and body.
curl -X POST -H "Authorization: Bearer x" -H "Content-Type: application/json" -d '{"query":"hello"}' https://api.example.com/v1/search 结果: The form shows: method POST, the URL, both headers, and the JSON body. One click to send.
常见问题
相关指南
The Anatomy of a Perfect API Request
A good API request has six parts: method, URL, headers, body, authentication, and a way to handle the response. Most failed requests fail because one of those parts is wrong. Here is a tour of what each part does, the common mistakes, and the order in which to debug a failing request.
The 6 Best Free API Testing Tools in 2026 (No Signup, No Install)
A curated list of the best free API testing tools: HTTP clients, request builders, response inspectors, and mock servers. All browser-based or self-hosted, all free, no signup required.
How to Test an API Without Postman (or Insomnia, or Hoppscotch)
You can make HTTP requests, inspect headers, send JSON bodies, and check response status without installing a desktop client. The browser is enough. Here is a practical workflow using only a free, browser-based tool that keeps your requests on your device.
相关工具
JSON 格式化工具与验证器
格式化、美化和验证 JSON。免费、在浏览器中运行,无需上传。
JSON 树形查看器
粘贴任意 JSON,以可折叠的树形结构浏览。点击即可复制任意值或完整路径。免费,浏览器内运行,无需上传。
JSON 验证器
检查 JSON 是否有效,并精确定位任何语法错误的行号和列号。
Base64 编码器 / 解码器
将文本或文件编码为 Base64,或将 Base64 解码回原始形式。免费、在浏览器中运行,无需上传。
JWT 解码器
解码 JSON Web Tokens 以查看标头、负载和签名。免费、在浏览器中运行,无需上传。
HTTP 状态码查询
查询 100 到 511 之间的任意 HTTP 状态码,提供通俗易懂的解释,可按类别搜索和筛选。
URL 编码器 / 解码器
对 URL 和查询字符串进行编码或解码,以便在 HTML、HTTP 和电子邮件中安全使用。免费、在浏览器中运行,无需上传。
URL 解码器
将百分号编码的 URL 和查询字符串解码回可读文本。
Last reviewed: 2026-11-21