Requestly – 免费的 API 测试与模拟工具
使用场景
Requestly是一款功能强大的API客户端和HTTP拦截器,旨在帮助开发者快速测试和模拟API请求,提高开发效率和体验。
核心功能
- 美丽且隐私友好的API客户端
- 模拟API响应,快速构建前端
- HTTP拦截和修改请求
- 团队协作和环境变量管理
- 插入脚本和模拟API服务器
插件截图
插件简介
Open-Source API Client & HTTP Interceptor. API Collections, Environments, JS Redirects, API Mocks, Modify Headers and Insert Scripts
🚀 Best Chrome extension to Test & Mock API Requests. Trusted by 200,000+ developers.
👉 Requestly works directly in Chrome with beautiful, modern UI and team collaboration features. Popular features – API Client, API Mocking & HTTP Interceptor.
⭐️ Open Source – https://github.com/requestly/requestly/
🌟 Top Use Cases
→ A beautiful & privacy-friendly API-Client (Full LocalStorage Support)
→ Mock API Responses to build frontend when backend isn’t ready
→ Test local JavaScript changes directly on production site.
→ Use HTTP Redirect Rule to load scripts from local or staging environments on production sites.
→ Modify and Mock API Request payload, Response body, & Status Code.
→ Override GraphQL Requests
📌 https://requestly.com/blog/what-is-requestly
Requestly doesn’t set up a proxy in your browser, and hence, developers don’t face VPN issues or lags while using it. Requestly leverages Chrome Extension APIs under the hood to hit API endpoints and intercept & modify requests.
======== Top Features ========
👉 Beautiful & Privacy-Friendly API Client
→ Test API Responses
→ API Collections
→ Environments (Variables & Secrets)
→ Pre-Request & Post-Response Scripts
→ Team Workspaces
📌 Demo Video – https://www.youtube.com/watch?v=xrqmAffe86k
👉 Mock XHR & Fetch API requests (Stub API Responses or API Mocking)
→ Helps in building frontend faster when backend (or APIs) don’t exist
→ Define Custom API Responses triggered by XHR/fetch
→ Modify/Override API responses
→ Mock GraphQL API responses
→ Simulate fake HTTP Status Code (400s or 500s)
📌 Demo Video – https://www.youtube.com/watch?v=KIPbxUGUYq8
👉 HTTP Interceptor Features
→ HTTP Redirects (API or JS Redirects from one env to another)
→ Swap Host/Domain of HTTP Requests
→ Modify HTTP Request & Response Headers
→ Override XHR Request Body & Response Body
→ Insert Scripts
→ Block Network Requests
→ Add/Simulate Delay in HTTP Requests
📌 Demo Video – https://www.youtube.com/watch?v=vfcGy2666us
======== HTTP Interceptor Features & their Use-Cases ========
👉 Redirect URLs, Change Host, Modify Query Params (Map Remote or Map Local)
→ Use dev/staging APIs in production sites & test local changes without code changes
→ Debug remote Javascript by loading locally running JS in production sites
→ Switch Hosts (e.g. abc.com/* to xyz.com/*) using Replace Rule
→ Debug Ad Tracking Pixels, Debug A/B Test Campaigns, etc
→ Remote Debugging with Requestly on Production sites
→ Swap Adobe Launch (Adobe DTM) scripts in production with staging script
📌 Demo Video — https://www.youtube.com/watch?v=85GVaOWTnlE
👉 Insert Scripts to any Webpage
→ UserScripts are simple JavaScript/CSS code that can change the layout of a page, add or remove new functionality and content, or automate actions.
→ Use File Server to upload long scripts and Inject them using Script Rule
→ Inject your JS tags on potential customers’ sites and test your features
→ The sales/product team can use this to demo the product directly on the prospect’s website (10x engaging demo)
📌 Demo — https://www.youtube.com/watch?v=4dvucRjLwGY
👉 Cloud-based API Mock Server
→ Create API Mocks
→ Generate Mock data (random data) in the API response
→ Test Mock API endpoints using API client
→ Add delay to the API Mocks
→ Define custom HTTP status code & custom headers in the API Mock
→ CORS enabled. The mock endpoints work seamlessly without CORS errors.
📌 https://app.requestly.io/mocks
👉 Session Recording
→ Visual Bug Reporting Tool
→ Cut down your bug reporting time & debugging time
→ Automatically capture browsing video, Console logs, Network logs & env details
→ Get quality bug reports from QAs, Customer Support & other non-technical people
→ Easily Share Har files
📌 Demo Video – https://www.youtube.com/watch?v=g_qXQAzUQgU
👉 Additional Features
→ Enable/Disable rules with a single click
→ Export and import the rules and maintain a backup for your rules
→ Easy collaboration with others. Share Rules with other Users in one click
📌 Demo — https://www.youtube.com/watch?v=BM7kTFy-vdc
======== References =======
🏡 Website – https://requestly.com
📖 Docs – https://developers.requestly.com
🥷 Github – https://github.com/requestly/requestly
💻 Desktop App – https://requestly.com/desktop
📳 Issues – https://github.com/requestly/requestly/issues
🔓Privacy – https://requestly.com/privacy