API Explorer
API Explorer is a Visual Studio Code extension to test and document APIs directly from your editor.
Features
- Send HTTP requests (GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD)
- Manage query params, headers, auth, and raw body
- Save request history and reusable saved requests
- Define environment variables with
{{variableName}} substitution
- Import Postman collections (
.json)
- Import Swagger/OpenAPI files (
.json, .yaml, .yml)
- Generate ready-to-run code snippets:
- cURL
- JavaScript (Fetch)
- JavaScript (Axios)
- Python (
requests)
- Node.js (
undici)
- PHP (
Guzzle)
- Go (
net/http)
- Snippet selector in the code modal for quick copy/paste
Installation
Open Visual Studio Code.
Go to the Extensions tab (Ctrl+Shift+X).
Search for API Explorer.
Click Install.
Or via the command line:
code --install-extension api-explorer-vscode
Usage
After installation, open the command palette (Ctrl+Shift+P).
Run API Explorer: Open.
Build and send requests from the editor UI.
Import Postman or Swagger/OpenAPI
- Click Import in the top bar.
- Select a Postman collection or Swagger/OpenAPI file.
- The first imported request is loaded in the editor.
- All imported requests are added to Saved.
Generate code snippets
- Click Code in the top bar.
- Select a snippet type in Snippet Type.
- Click Copy and paste into your project.
Support
For any questions or issues, email to exaland@gmail.com
License
This project is licensed under the MIT License. See the LICENSE file for more information.
| |